{"openapi":"3.0.0","paths":{"/files/{id}":{"get":{"operationId":"Files_serve","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"signature","required":false,"in":"query","description":"Private files only.","schema":{}},{"name":"expires","required":false,"in":"query","description":"Private files only.","schema":{}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"The file, with its stored content type."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Download a file\n\nPublic files (logos, avatars) need nothing else. Private files (CVs,\nvideos) need the `expires` and `signature` from their URL; an invalid or\nexpired link answers 404. Supports `Range` for video seeking.","tags":["System"],"x-public":true,"security":[]}},"/health":{"get":{"operationId":"Health_check","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponseDto"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"503":{"description":"The database is down.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponseDto"}}}}},"summary":"Readiness: Postgres and Redis\n\n200 while the API can serve requests (`ok`, or `degraded` when only the\ncache is down), 503 when the database is unreachable. The Docker image's\nHEALTHCHECK calls this.","tags":["System"],"x-public":true,"security":[]}},"/health/live":{"get":{"operationId":"Health_live","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LivenessResponseDto"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Liveness: the process is up","tags":["System"],"x-public":true,"security":[]}},"/v1/employee/assistant":{"get":{"description":"Suggested questions (send one as a message) and how many messages are left today.","operationId":"Assistant_overview","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistantDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Assistant screen","tags":["Employee · Assistant"],"security":[{"employee":[]}]}},"/v1/employee/assistant/conversations":{"get":{"description":"The latest active first.","operationId":"Assistant_list","parameters":[{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"My chats","tags":["Employee · Assistant"],"security":[{"employee":[]}]},"post":{"description":"Sends the first question and returns it with the answer. The answer can take several seconds. Counts toward the daily limit; a failed answer (`AI_UNAVAILABLE`) does not.","operationId":"Assistant_start","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskAssistantDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewConversationDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"AI_LIMIT_REACHED, TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"AI_LIMIT_REACHED":{"value":{"code":"AI_LIMIT_REACHED","message":"You have reached today’s assistant message limit. You can continue tomorrow","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"TOO_MANY_REQUESTS":{"value":{"code":"TOO_MANY_REQUESTS","message":"Too many requests, please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"503":{"description":"AI_UNAVAILABLE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"AI_UNAVAILABLE":{"value":{"code":"AI_UNAVAILABLE","message":"The assistant is unavailable right now. Please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Start a chat","tags":["Employee · Assistant"],"security":[{"employee":[]}]}},"/v1/employee/assistant/conversations/{id}":{"get":{"description":"Every message, oldest first.","operationId":"Assistant_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Open a chat","tags":["Employee · Assistant"],"security":[{"employee":[]}]},"delete":{"operationId":"Assistant_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"Deleted."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Delete a chat","tags":["Employee · Assistant"],"security":[{"employee":[]}]}},"/v1/employee/assistant/conversations/{id}/messages":{"post":{"description":"Adds a question and returns it with the answer; the last 20 messages give the context.","operationId":"Assistant_send","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskAssistantDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"AI_LIMIT_REACHED, TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"AI_LIMIT_REACHED":{"value":{"code":"AI_LIMIT_REACHED","message":"You have reached today’s assistant message limit. You can continue tomorrow","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"TOO_MANY_REQUESTS":{"value":{"code":"TOO_MANY_REQUESTS","message":"Too many requests, please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"503":{"description":"AI_UNAVAILABLE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"AI_UNAVAILABLE":{"value":{"code":"AI_UNAVAILABLE","message":"The assistant is unavailable right now. Please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Ask in a chat","tags":["Employee · Assistant"],"security":[{"employee":[]}]}},"/v1/employee/profile":{"get":{"description":"Every section; empty ones are `[]` or `null`. `completion` says which are filled in. CV files come with signed, expiring URLs.","operationId":"EmployeeProfile_get","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CvDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"My profile and CV","tags":["Employee · Profile"],"security":[{"employee":[]}]},"patch":{"description":"Send only what changes; `null` clears a field. Upload files first with `POST /v1/employee/files?purpose=cv`, `purpose=intro_video` or `purpose=employee_avatar`.","operationId":"EmployeeProfile_update","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCvDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CvDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"CONFLICT","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"CONFLICT":{"value":{"code":"CONFLICT","message":"The request conflicts with existing data","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Edit personal details, summary and CV files","tags":["Employee · Profile"],"security":[{"employee":[]}]}},"/v1/employee/profile/skills":{"put":{"description":"The whole list, in order; repeats (ignoring case) are dropped.","operationId":"EmployeeProfile_setSkills","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CvDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Replace my skills","tags":["Employee · Profile"],"security":[{"employee":[]}]}},"/v1/employee/profile/experience":{"post":{"operationId":"CvSection_add","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceInput"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"CV_SECTION_FULL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"CV_SECTION_FULL":{"value":{"code":"CV_SECTION_FULL","message":"This section is full (20 entries). Remove one to add another","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Add to experience","tags":["Employee · Profile"],"security":[{"employee":[]}]}},"/v1/employee/profile/experience/{id}":{"put":{"description":"Send every field, as when adding.","operationId":"CvSection_replace","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceInput"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Replace a experience entry","tags":["Employee · Profile"],"security":[{"employee":[]}]},"delete":{"operationId":"CvSection_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"Removed."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Remove a experience entry","tags":["Employee · Profile"],"security":[{"employee":[]}]}},"/v1/employee/profile/education":{"post":{"operationId":"CvSection_add","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EducationInput"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EducationDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"CV_SECTION_FULL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"CV_SECTION_FULL":{"value":{"code":"CV_SECTION_FULL","message":"This section is full (20 entries). Remove one to add another","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Add to education","tags":["Employee · Profile"],"security":[{"employee":[]}]}},"/v1/employee/profile/education/{id}":{"put":{"description":"Send every field, as when adding.","operationId":"CvSection_replace","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EducationInput"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EducationDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Replace a education entry","tags":["Employee · Profile"],"security":[{"employee":[]}]},"delete":{"operationId":"CvSection_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"Removed."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Remove a education entry","tags":["Employee · Profile"],"security":[{"employee":[]}]}},"/v1/employee/profile/links":{"post":{"operationId":"CvSection_add","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkInput"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"CV_SECTION_FULL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"CV_SECTION_FULL":{"value":{"code":"CV_SECTION_FULL","message":"This section is full (20 entries). Remove one to add another","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Add to links","tags":["Employee · Profile"],"security":[{"employee":[]}]}},"/v1/employee/profile/links/{id}":{"put":{"description":"Send every field, as when adding.","operationId":"CvSection_replace","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkInput"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Replace a links entry","tags":["Employee · Profile"],"security":[{"employee":[]}]},"delete":{"operationId":"CvSection_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"Removed."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Remove a links entry","tags":["Employee · Profile"],"security":[{"employee":[]}]}},"/v1/employee/profile/certificates":{"post":{"operationId":"CvSection_add","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertificateInput"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertificateDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"CV_SECTION_FULL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"CV_SECTION_FULL":{"value":{"code":"CV_SECTION_FULL","message":"This section is full (20 entries). Remove one to add another","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Add to certificates","tags":["Employee · Profile"],"security":[{"employee":[]}]}},"/v1/employee/profile/certificates/{id}":{"put":{"description":"Send every field, as when adding.","operationId":"CvSection_replace","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertificateInput"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertificateDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Replace a certificates entry","tags":["Employee · Profile"],"security":[{"employee":[]}]},"delete":{"operationId":"CvSection_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"Removed."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Remove a certificates entry","tags":["Employee · Profile"],"security":[{"employee":[]}]}},"/v1/employee/profile/languages":{"post":{"operationId":"CvSection_add","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanguageInput"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanguageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"CV_SECTION_FULL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"CV_SECTION_FULL":{"value":{"code":"CV_SECTION_FULL","message":"This section is full (20 entries). Remove one to add another","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Add to languages","tags":["Employee · Profile"],"security":[{"employee":[]}]}},"/v1/employee/profile/languages/{id}":{"put":{"description":"Send every field, as when adding.","operationId":"CvSection_replace","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanguageInput"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanguageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Replace a languages entry","tags":["Employee · Profile"],"security":[{"employee":[]}]},"delete":{"operationId":"CvSection_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"Removed."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Remove a languages entry","tags":["Employee · Profile"],"security":[{"employee":[]}]}},"/v1/employee/profile/licenses":{"post":{"operationId":"CvSection_add","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseInput"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"CV_SECTION_FULL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"CV_SECTION_FULL":{"value":{"code":"CV_SECTION_FULL","message":"This section is full (20 entries). Remove one to add another","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Add to licenses","tags":["Employee · Profile"],"security":[{"employee":[]}]}},"/v1/employee/profile/licenses/{id}":{"put":{"description":"Send every field, as when adding.","operationId":"CvSection_replace","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseInput"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Replace a licenses entry","tags":["Employee · Profile"],"security":[{"employee":[]}]},"delete":{"operationId":"CvSection_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"Removed."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Remove a licenses entry","tags":["Employee · Profile"],"security":[{"employee":[]}]}},"/v1/employee/account":{"get":{"operationId":"Account_get","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"My account","tags":["Employee · Account"],"security":[{"employee":[]}]},"patch":{"description":"Requests without `Accept-Language` or `?lang=` are answered in it from the next request.","operationId":"Account_update","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Change my language","tags":["Employee · Account"],"security":[{"employee":[]}]}},"/v1/employee/account/mobile/otp":{"post":{"description":"Step 1 of changing the mobile number: the code goes to the new number. Employees only: establishments get `MOBILE_CHANGE_NOT_ALLOWED`.","operationId":"Account_requestCode","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeMobileOtpDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpSentDto"}}}},"400":{"description":"MOBILE_UNCHANGED, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_UNCHANGED":{"value":{"code":"MOBILE_UNCHANGED","message":"This is already your mobile number. Enter a new one","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"403":{"description":"MOBILE_CHANGE_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_CHANGE_NOT_ALLOWED":{"value":{"code":"MOBILE_CHANGE_NOT_ALLOWED","message":"Your mobile number can't be changed. Contact us if you need help","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"MOBILE_ALREADY_REGISTERED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_ALREADY_REGISTERED":{"value":{"code":"MOBILE_ALREADY_REGISTERED","message":"This mobile number is already registered. Sign in instead","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"OTP_RESEND_TOO_SOON, TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_RESEND_TOO_SOON":{"value":{"code":"OTP_RESEND_TOO_SOON","message":"You can request a new code in {seconds} seconds","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"TOO_MANY_REQUESTS":{"value":{"code":"TOO_MANY_REQUESTS","message":"Too many requests, please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"503":{"description":"SMS_UNAVAILABLE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"SMS_UNAVAILABLE":{"value":{"code":"SMS_UNAVAILABLE","message":"The message couldn't be sent. Please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Send a code to a new number","tags":["Employee · Account"],"security":[{"employee":[]}]}},"/v1/employee/account/mobile":{"post":{"description":"Step 2: checks the code sent to the new number and swaps it in. Every other device is signed out; this one stays signed in. Employees only: establishments get `MOBILE_CHANGE_NOT_ALLOWED`.","operationId":"Account_changeMobile","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeMobileDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDto"}}}},"400":{"description":"MOBILE_UNCHANGED, OTP_INVALID, OTP_EXPIRED, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_UNCHANGED":{"value":{"code":"MOBILE_UNCHANGED","message":"This is already your mobile number. Enter a new one","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"OTP_INVALID":{"value":{"code":"OTP_INVALID","message":"The verification code is incorrect. {remainingAttempts} attempts left","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"OTP_EXPIRED":{"value":{"code":"OTP_EXPIRED","message":"The verification code has expired. Request a new one","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"403":{"description":"MOBILE_CHANGE_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_CHANGE_NOT_ALLOWED":{"value":{"code":"MOBILE_CHANGE_NOT_ALLOWED","message":"Your mobile number can't be changed. Contact us if you need help","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"MOBILE_ALREADY_REGISTERED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_ALREADY_REGISTERED":{"value":{"code":"MOBILE_ALREADY_REGISTERED","message":"This mobile number is already registered. Sign in instead","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"OTP_TOO_MANY_ATTEMPTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_TOO_MANY_ATTEMPTS":{"value":{"code":"OTP_TOO_MANY_ATTEMPTS","message":"Too many incorrect attempts. Request a new code","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Change my mobile number","tags":["Employee · Account"],"security":[{"employee":[]}]}},"/v1/employee/account/delete/otp":{"post":{"deprecated":true,"description":"No longer needed: deleting takes no code since BUG-57. Kept for app versions that still ask for one.","operationId":"Account_requestDeleteCode","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpSentDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"OTP_RESEND_TOO_SOON, TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_RESEND_TOO_SOON":{"value":{"code":"OTP_RESEND_TOO_SOON","message":"You can request a new code in {seconds} seconds","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"TOO_MANY_REQUESTS":{"value":{"code":"TOO_MANY_REQUESTS","message":"Too many requests, please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"503":{"description":"SMS_UNAVAILABLE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"SMS_UNAVAILABLE":{"value":{"code":"SMS_UNAVAILABLE","message":"The message couldn't be sent. Please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Send the account deletion code (unused)","tags":["Employee · Account"],"security":[{"employee":[]}]}},"/v1/employee/account/delete":{"post":{"description":"Deletes the account at once, with no code (BUG-57; a `code` from older app versions is ignored). Your details and number are removed (the number can register a new, empty account), every device is signed out, this one included (its socket gets `session.ended` with `account_deleted`), and your jobs, applications and chats leave the other app. The dashboard keeps the records (subscriptions, payments, history).","operationId":"Account_delete","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountDto"}}}},"responses":{"204":{"description":"The account was deleted."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Delete my account","tags":["Employee · Account"],"security":[{"employee":[]}]}},"/v1/employee/contact":{"get":{"description":"The contact channels (a `null` one is hidden) and the message types, in the request language.","operationId":"EmployeeContact_screen","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppContactDto"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Contact screen","tags":["Employee · Contact"],"x-public":true,"security":[]}},"/v1/employee/contact/messages":{"post":{"description":"Guests can send. With a valid token of this app the message is linked to the account; an expired or missing token just sends as a guest. At most 3 per hour per mobile (or account) and 5 per hour per IP.","operationId":"EmployeeContact_send","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageSentDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"TOO_MANY_REQUESTS":{"value":{"code":"TOO_MANY_REQUESTS","message":"Too many requests, please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Send a message","tags":["Employee · Contact"],"x-public":true,"security":[]}},"/v1/employee/settings":{"get":{"description":"Contact channels (a `null` channel is hidden) and app store links. Public and cached; changes in the dashboard apply immediately.","operationId":"EmployeeSettings_read","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettingsDto"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Read app settings","tags":["Employee · Settings"],"x-public":true,"security":[]}},"/v1/employee/content/pages/{key}":{"get":{"description":"About, Terms, Privacy, or the text above the contact form, as rich text (HTML). Terms and Privacy are this app's own; About and the contact text are shared. When a text is empty in the request language, the other language is used.","operationId":"EmployeeContent_page","parameters":[{"name":"key","required":true,"in":"path","schema":{"enum":["about","terms","privacy"],"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Read a page","tags":["Employee · Content"],"x-public":true,"security":[]}},"/v1/employee/content/faqs":{"get":{"description":"Questions and rich-text answers, in display order.","operationId":"EmployeeContent_faqList","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppFaqListDto"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Read the FAQ","tags":["Employee · Content"],"x-public":true,"security":[]}},"/v1/employee/cities":{"get":{"description":"Saudi cities a job can be located in, each with its region, sorted by name in the request language. Public and cached.","operationId":"EmployeeCities_list","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CityListDto"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List cities","tags":["Employee · Cities"],"x-public":true,"security":[]}},"/v1/employee/auth/login/otp":{"post":{"description":"Sends a 4-digit code to a registered number. Call again to resend, once `resendAfterSeconds` have passed. `MOBILE_NOT_REGISTERED` means the app should offer registration.","operationId":"EmployeeSignIn_requestLogin","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestOtpDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpSentDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"403":{"description":"ACCOUNT_DISABLED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"ACCOUNT_DISABLED":{"value":{"code":"ACCOUNT_DISABLED","message":"This account has been deactivated. Contact support for help","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"MOBILE_NOT_REGISTERED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_NOT_REGISTERED":{"value":{"code":"MOBILE_NOT_REGISTERED","message":"This mobile number isn't registered. Create an account","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"OTP_RESEND_TOO_SOON, TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_RESEND_TOO_SOON":{"value":{"code":"OTP_RESEND_TOO_SOON","message":"You can request a new code in {seconds} seconds","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"TOO_MANY_REQUESTS":{"value":{"code":"TOO_MANY_REQUESTS","message":"Too many requests, please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"503":{"description":"SMS_UNAVAILABLE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"SMS_UNAVAILABLE":{"value":{"code":"SMS_UNAVAILABLE","message":"The message couldn't be sent. Please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Send a login code","tags":["Employee · Auth"],"x-public":true,"security":[]}},"/v1/employee/auth/login":{"post":{"description":"Checks the login code and starts a session.","operationId":"EmployeeSignIn_login","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyOtpDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeSessionDto"}}}},"400":{"description":"OTP_INVALID, OTP_EXPIRED, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_INVALID":{"value":{"code":"OTP_INVALID","message":"The verification code is incorrect. {remainingAttempts} attempts left","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"OTP_EXPIRED":{"value":{"code":"OTP_EXPIRED","message":"The verification code has expired. Request a new one","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"403":{"description":"ACCOUNT_DISABLED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"ACCOUNT_DISABLED":{"value":{"code":"ACCOUNT_DISABLED","message":"This account has been deactivated. Contact support for help","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"MOBILE_NOT_REGISTERED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_NOT_REGISTERED":{"value":{"code":"MOBILE_NOT_REGISTERED","message":"This mobile number isn't registered. Create an account","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"OTP_TOO_MANY_ATTEMPTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_TOO_MANY_ATTEMPTS":{"value":{"code":"OTP_TOO_MANY_ATTEMPTS","message":"Too many incorrect attempts. Request a new code","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Log in with the code","tags":["Employee · Auth"],"x-public":true,"x-session-token":{"namespace":"employee","field":"accessToken"},"security":[]}},"/v1/employee/auth/register/otp":{"post":{"description":"Sends a 4-digit code to a number with no account. `MOBILE_ALREADY_REGISTERED` means the app should offer login.","operationId":"EmployeeSignIn_requestRegister","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestOtpDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpSentDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"MOBILE_ALREADY_REGISTERED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_ALREADY_REGISTERED":{"value":{"code":"MOBILE_ALREADY_REGISTERED","message":"This mobile number is already registered. Sign in instead","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"OTP_RESEND_TOO_SOON, TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_RESEND_TOO_SOON":{"value":{"code":"OTP_RESEND_TOO_SOON","message":"You can request a new code in {seconds} seconds","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"TOO_MANY_REQUESTS":{"value":{"code":"TOO_MANY_REQUESTS","message":"Too many requests, please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"503":{"description":"SMS_UNAVAILABLE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"SMS_UNAVAILABLE":{"value":{"code":"SMS_UNAVAILABLE","message":"The message couldn't be sent. Please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Send a registration code","tags":["Employee · Auth"],"x-public":true,"security":[]}},"/v1/employee/auth/register":{"post":{"description":"Checks the registration code, creates the account and starts a session.","operationId":"EmployeeSignIn_register","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyOtpDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeSessionDto"}}}},"400":{"description":"OTP_INVALID, OTP_EXPIRED, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_INVALID":{"value":{"code":"OTP_INVALID","message":"The verification code is incorrect. {remainingAttempts} attempts left","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"OTP_EXPIRED":{"value":{"code":"OTP_EXPIRED","message":"The verification code has expired. Request a new one","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"MOBILE_ALREADY_REGISTERED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_ALREADY_REGISTERED":{"value":{"code":"MOBILE_ALREADY_REGISTERED","message":"This mobile number is already registered. Sign in instead","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"OTP_TOO_MANY_ATTEMPTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_TOO_MANY_ATTEMPTS":{"value":{"code":"OTP_TOO_MANY_ATTEMPTS","message":"Too many incorrect attempts. Request a new code","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Register with the code","tags":["Employee · Auth"],"x-public":true,"x-session-token":{"namespace":"employee","field":"accessToken"},"security":[]}},"/v1/employee/auth/logout":{"post":{"description":"Ends the session of the token sent. The token stops working immediately.","operationId":"EmployeeAuth_logout","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"Signed out."},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Sign out","tags":["Employee · Auth"],"security":[{"employee":[]}]}},"/v1/employee/auth/sessions":{"get":{"description":"Your live sessions, most recently used first. `current` marks this device.","operationId":"EmployeeAuth_list","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionListDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List signed-in devices","tags":["Employee · Auth"],"security":[{"employee":[]}]},"delete":{"description":"Ends every session except the one making this request.","operationId":"EmployeeAuth_revokeOthers","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokedCountDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Sign out all other devices","tags":["Employee · Auth"],"security":[{"employee":[]}]}},"/v1/employee/auth/sessions/{id}":{"delete":{"description":"Ends one of your sessions; that device is signed out on its next request. Using the current session id works like signing out.","operationId":"EmployeeAuth_revokeOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"The device was signed out."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Sign out one device","tags":["Employee · Auth"],"security":[{"employee":[]}]}},"/v1/employee/files":{"post":{"description":"Send the file as multipart/form-data in the `file` field. Its type is checked from its bytes. Then pass the returned `id` to the endpoint that uses it; files unused after 24 hours are deleted.\n\n- `cv`: PDF, DOCX, DOC, up to 10 MB, private\n- `intro_video`: MP4, MOV, WEBM, up to 100 MB, private\n- `employee_avatar`: PNG, JPG, WEBP, up to 2 MB, public\n- `chat_image`: PNG, JPG, WEBP, up to 5 MB, private\n- `chat_file`: PDF, DOCX, DOC, XLSX, XLS, up to 10 MB, private\n- `chat_voice`: M4A, AAC, up to 3 MB, private","operationId":"EmployeeFiles_upload","parameters":[{"name":"purpose","required":true,"in":"query","schema":{"enum":["cv","intro_video","employee_avatar","chat_image","chat_file","chat_voice"],"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDto"}}}},"400":{"description":"FILE_REQUIRED, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"FILE_REQUIRED":{"value":{"code":"FILE_REQUIRED","message":"No file was attached","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"413":{"description":"FILE_TOO_LARGE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"FILE_TOO_LARGE":{"value":{"code":"FILE_TOO_LARGE","message":"The file is larger than allowed ({maxMb} MB at most)","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"415":{"description":"FILE_TYPE_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"FILE_TYPE_NOT_ALLOWED":{"value":{"code":"FILE_TYPE_NOT_ALLOWED","message":"This file type isn't supported. Allowed: {allowed}","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Upload a file","tags":["Employee · Files"],"security":[{"employee":[]}]}},"/v1/employee/devices":{"put":{"description":"Call after signing in, whenever the messaging SDK gives a new token, and when the app's language changes. One device per sign-in: calling again replaces it. Signing out (or any other end of the session) removes it.","operationId":"EmployeeDevice_register","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterDeviceDto"}}}},"responses":{"204":{"description":""},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Register this device for push","tags":["Employee · Devices"],"security":[{"employee":[]}]},"delete":{"description":"Removes this sign-in's device; the session stays.","operationId":"EmployeeDevice_remove","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":""},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Stop push on this device","tags":["Employee · Devices"],"security":[{"employee":[]}]}},"/v1/employee/notifications":{"get":{"description":"Newest first, in the request language. Pages by cursor: pass the previous `nextCursor` as `cursor` (null means the last page). New ones also arrive live as `notification.new` on the realtime socket.","operationId":"EmployeeNotification_list","parameters":[{"name":"cursor","required":false,"in":"query","description":"From the previous page's `nextCursor`; omit for the first page.","schema":{"maxLength":200,"type":"string"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–50).","schema":{"minimum":1,"maximum":50,"default":20,"example":20,"type":"number"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"My notifications","tags":["Employee · Notifications"],"security":[{"employee":[]}]}},"/v1/employee/notifications/unread-count":{"get":{"description":"For the bell badge. Updates arrive live as `unread.counts` on the realtime socket.","operationId":"EmployeeNotification_unreadCount","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnreadCountDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Unread count","tags":["Employee · Notifications"],"security":[{"employee":[]}]}},"/v1/employee/notifications/{id}/read":{"post":{"description":"Idempotent. Other devices get the new count live.","operationId":"EmployeeNotification_markRead","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":""},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Mark one read","tags":["Employee · Notifications"],"security":[{"employee":[]}]}},"/v1/employee/notifications/read-all":{"post":{"operationId":"EmployeeNotification_markAllRead","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadAllDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Mark all read","tags":["Employee · Notifications"],"security":[{"employee":[]}]}},"/v1/employee/jobs/{id}/report":{"post":{"description":"With a reason from `GET /report-reasons` and optional notes (500 characters). Once per job (`ALREADY_REPORTED`); only open jobs (`JOB_NOT_AVAILABLE`). When enough employees report a job it is suspended automatically and leaves the feed.","operationId":"EmployeeJobs_report","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportJobDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobReportCreatedDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"JOB_NOT_AVAILABLE, ALREADY_REPORTED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"JOB_NOT_AVAILABLE":{"value":{"code":"JOB_NOT_AVAILABLE","message":"This job is no longer available","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"ALREADY_REPORTED":{"value":{"code":"ALREADY_REPORTED","message":"You've already reported this job. Thank you, our team will review it","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Report a job","tags":["Employee · Jobs"],"security":[{"employee":[]}]}},"/v1/employee/jobs/{id}/apply":{"post":{"description":"Needs a CV file in the profile (`CV_REQUIRED`, with `cvFile` in `details`: open the upload-CV sheet). Without a name, the establishment sees the mobile instead. The CV is copied, so later changes to it don't touch the application. Once per job (`ALREADY_APPLIED`); the job must be open (`JOB_NOT_AVAILABLE`). The establishment is notified.","operationId":"EmployeeJobs_apply","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyApplicationSummaryDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"JOB_NOT_AVAILABLE, ALREADY_APPLIED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"JOB_NOT_AVAILABLE":{"value":{"code":"JOB_NOT_AVAILABLE","message":"This job is no longer available","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"ALREADY_APPLIED":{"value":{"code":"ALREADY_APPLIED","message":"You've already applied for this job","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"422":{"description":"CV_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"CV_REQUIRED":{"value":{"code":"CV_REQUIRED","message":"Complete your CV to apply","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Apply for a job","tags":["Employee · Jobs"],"security":[{"employee":[]}]}},"/v1/employee/jobs/feed":{"get":{"description":"Open jobs only. Guests (no token, or one that is no longer valid) get the newest. A signed-in employee with a CV file or any CV section gets them ranked: jobs in their city (remote counts) first, then those whose title or requirements contain more of their skills and experience titles, then newest. With no CV at all, `needsCv` is true and there are no items. Pages are numbered; send back the first page's `asOf`.","operationId":"EmployeeJobs_feed","parameters":[{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"name":"asOf","required":false,"in":"query","description":"The `asOf` the first page returned: later pages only list jobs\npublished by then, so a new post can't shift them. Omit on the first\npage.","schema":{"example":"2026-10-01T09:00:00.000Z","type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobFeedPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Home feed","tags":["Employee · Jobs"],"x-public":true,"security":[]}},"/v1/employee/jobs/search":{"get":{"description":"Open jobs whose title, company name or requirements contain every word of `q` (Arabic spelling variants and letter case are ignored), filtered by workplace and employment type. Newest first, with `total` for the results count. Guests can search.","operationId":"EmployeeJobs_search","parameters":[{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"name":"q","required":false,"in":"query","description":"Words to find in the title, the company name or the requirements;\nevery word must match. Arabic spelling variants match each other.","schema":{"maxLength":100,"example":"محاسب","type":"string"}},{"name":"workplaceType","required":false,"in":"query","description":"One or more: `?workplaceType=remote&workplaceType=hybrid` or\n`remote,hybrid`.","schema":{"example":["remote"],"type":"array","items":{"type":"string","enum":["onsite","remote","hybrid"]}}},{"name":"employmentType","required":false,"in":"query","description":"One or more, like `workplaceType`.","schema":{"example":["full_time","part_time"],"type":"array","items":{"type":"string","enum":["hourly","full_time","part_time"]}}},{"name":"asOf","required":false,"in":"query","description":"The `asOf` the first page returned: later pages only list jobs\npublished by then, so a new post can't shift them. Omit on the first\npage.","schema":{"example":"2026-10-01T09:00:00.000Z","type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSearchPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Search jobs","tags":["Employee · Jobs"],"x-public":true,"security":[]}},"/v1/employee/jobs/{id}":{"get":{"description":"Guests can open it too; `saved` and `application` are then null. Jobs that are no longer open still show, with `available` and `canApply` false. Opening an open job counts a view: once a day per employee, every time for guests.","operationId":"EmployeeJobs_details","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeJobDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"One job","tags":["Employee · Jobs"],"x-public":true,"security":[]}},"/v1/employee/jobs/{id}/save":{"put":{"description":"Safe to repeat: saving again keeps the first save time. Works for jobs no longer open too (they show as unavailable in the list). Undoing an unsave is just this again.","operationId":"EmployeeJobs_save","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":""},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Save a job","tags":["Employee · Jobs"],"security":[{"employee":[]}]},"delete":{"description":"Safe to repeat: 204 whether or not it was saved.","operationId":"EmployeeJobs_unsave","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":""},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Unsave a job","tags":["Employee · Jobs"],"security":[{"employee":[]}]}},"/v1/employee/saved-jobs":{"get":{"description":"Newest save first, paged by cursor. Jobs that are no longer open stay listed with `available: false`.","operationId":"EmployeeSavedJobs_list","parameters":[{"name":"cursor","required":false,"in":"query","description":"From the previous page's `nextCursor`; omit for the first page.","schema":{"maxLength":200,"type":"string"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–50).","schema":{"minimum":1,"maximum":50,"default":20,"example":20,"type":"number"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedJobsPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"My saved jobs","tags":["Employee · Jobs"],"security":[{"employee":[]}]}},"/v1/employee/applications":{"get":{"description":"Newest first, paged by cursor, filtered by the group chip. Each card has the raw `status`, its `group` (for the badge) and the job, with `available` false once it is no longer open.","operationId":"EmployeeApplications_list","parameters":[{"name":"cursor","required":false,"in":"query","description":"From the previous page's `nextCursor`; omit for the first page.","schema":{"maxLength":200,"type":"string"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–50).","schema":{"minimum":1,"maximum":50,"default":20,"example":20,"type":"number"}},{"name":"group","required":true,"in":"query","description":"The chip: `under_review`, `accepted`, `rejected` or `cancelled`.","schema":{"default":"all","example":"under_review","type":"string","enum":["accepted","rejected","under_review","cancelled","all"]}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyApplicationsPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"My applications","tags":["Employee · Applications"],"security":[{"employee":[]}]}},"/v1/employee/applications/{id}":{"get":{"description":"The application (with the CV as sent, a signed link) and the job details. Opening it does not count a job view.","operationId":"EmployeeApplications_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyApplicationDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"One of my applications","tags":["Employee · Applications"],"security":[{"employee":[]}]}},"/v1/employee/applications/{id}/withdraw":{"post":{"description":"P1, no screen yet. Only while it is still open (`APPLICATION_ACTION_NOT_ALLOWED` otherwise).","operationId":"EmployeeApplications_withdraw","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyApplicationSummaryDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"APPLICATION_ACTION_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"APPLICATION_ACTION_NOT_ALLOWED":{"value":{"code":"APPLICATION_ACTION_NOT_ALLOWED","message":"This can't be done with the application in its current status","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Withdraw an application","tags":["Employee · Applications"],"security":[{"employee":[]}]}},"/v1/employee/conversations":{"get":{"description":"Most recent activity first, by cursor. Each has the other side (name and photo or logo), the `APP-` number, the last message, my unread count and `closed` (read-only). Updates arrive live as `conversation.updated`.","operationId":"EmployeeChat_list","parameters":[{"name":"cursor","required":false,"in":"query","description":"From the previous page's `nextCursor`; omit for the first page.","schema":{"maxLength":200,"type":"string"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–50).","schema":{"minimum":1,"maximum":50,"default":20,"example":20,"type":"number"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationsPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"My conversations","tags":["Employee · Chat"],"security":[{"employee":[]}]}},"/v1/employee/conversations/unread-count":{"get":{"description":"For the tab badge. Updates arrive live as `unread.counts` (`messages`).","operationId":"EmployeeChat_unreadCount","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatUnreadCountsDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Unread chats","tags":["Employee · Chat"],"security":[{"employee":[]}]}},"/v1/employee/conversations/{id}":{"get":{"description":"The chat header: who, the `APP-` number, and `closed`.","operationId":"EmployeeChat_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"One conversation","tags":["Employee · Chat"],"security":[{"employee":[]}]}},"/v1/employee/conversations/{id}/messages":{"get":{"description":"Newest first; `cursor` loads older ones. Attachments are signed links. `read` says the recipient has read it. New ones arrive live as `message.new`; tell the socket `conversation.open` while the chat is on screen, so no push is sent for it.","operationId":"EmployeeChat_messages","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"cursor","required":false,"in":"query","description":"From the previous page's `nextCursor`; omit for the first page.","schema":{"maxLength":200,"type":"string"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–50).","schema":{"minimum":1,"maximum":50,"default":20,"example":20,"type":"number"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagesPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Messages","tags":["Employee · Chat"],"security":[{"employee":[]}]},"post":{"description":"Text, or an image, file or voice note uploaded first (`POST /files` with purpose `chat_image`, `chat_file` or `chat_voice`); an upload is sent once, by its uploader (`NOT_FOUND` otherwise). Refused once the chat is read-only (`CONVERSATION_CLOSED`). The other side gets it live, and a push unless the chat is on their screen.","operationId":"EmployeeChat_send","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"CONVERSATION_CLOSED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"CONVERSATION_CLOSED":{"value":{"code":"CONVERSATION_CLOSED","message":"This conversation is closed; you can read it but not send messages","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Send a message","tags":["Employee · Chat"],"security":[{"employee":[]}]}},"/v1/employee/conversations/{id}/read":{"post":{"description":"Everything up to now. The other side gets `message.read` (read receipts).","operationId":"EmployeeChat_read","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":""},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Mark read","tags":["Employee · Chat"],"security":[{"employee":[]}]}},"/v1/employee/report-reasons":{"get":{"description":"Active reasons in display order, in the request language, for the report sheet. Public; reporting itself needs a session.","operationId":"EmployeeReportReasons_list","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppReportReasonListDto"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Report reasons","tags":["Employee · Report reasons"],"x-public":true,"security":[]}},"/v1/establishment/jobs/{jobId}/applicants":{"get":{"description":"Newest applied first, paged by cursor, filtered by the chip and the applied date (Saudi days, both inclusive). Cards carry no mobile, ID or email.","operationId":"EstablishmentApplicants_list","parameters":[{"name":"jobId","required":true,"in":"path","schema":{"type":"string"}},{"name":"cursor","required":false,"in":"query","description":"From the previous page's `nextCursor`; omit for the first page.","schema":{"maxLength":200,"type":"string"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–50).","schema":{"minimum":1,"maximum":50,"default":20,"example":20,"type":"number"}},{"name":"chip","required":true,"in":"query","description":"The chip: `new`, `reviewed`, `contacted`, `accepted`, `rejected` or\n`cancelled`.","schema":{"default":"all","example":"new","type":"string","enum":["accepted","new","contacted","rejected","cancelled","reviewed","all"]}},{"name":"appliedFrom","required":false,"in":"query","description":"Applied on or after this Saudi calendar day.","schema":{"example":"2026-09-03","type":"string"}},{"name":"appliedTo","required":false,"in":"query","description":"Applied on or before this Saudi calendar day (send the same day as\n`appliedFrom` for one day).","schema":{"example":"2026-09-03","type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicantsPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"A job's applicants","tags":["Establishment · Applicants"],"security":[{"establishment":[]}]}},"/v1/establishment/applicants/{id}":{"get":{"description":"The light CV summary with the CV as sent (a signed link). Opening a new application marks it `viewed` (Reviewed) and tells the employee.","operationId":"EstablishmentApplicants_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicantDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"One applicant","tags":["Establishment · Applicants"],"security":[{"establishment":[]}]}},"/v1/establishment/applicants/{id}/reject":{"post":{"description":"Only while the application is open (`APPLICATION_ACTION_NOT_ALLOWED`). The employee is told.","operationId":"EstablishmentApplicants_reject","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicantCardDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"APPLICATION_ACTION_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"APPLICATION_ACTION_NOT_ALLOWED":{"value":{"code":"APPLICATION_ACTION_NOT_ALLOWED","message":"This can't be done with the application in its current status","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Reject an applicant","tags":["Establishment · Applicants"],"security":[{"establishment":[]}]}},"/v1/establishment/applicants/{id}/contact":{"post":{"description":"Marks the application `contacted` (the employee is told, once) and returns its conversation, the same one every time. Not for a closed job (`JOB_CLOSED`) or a final application (`APPLICATION_ACTION_NOT_ALLOWED`).","operationId":"EstablishmentApplicants_contact","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResultDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"JOB_CLOSED, APPLICATION_ACTION_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"JOB_CLOSED":{"value":{"code":"JOB_CLOSED","message":"This job is closed, so its applicants can't be contacted","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"APPLICATION_ACTION_NOT_ALLOWED":{"value":{"code":"APPLICATION_ACTION_NOT_ALLOWED","message":"This can't be done with the application in its current status","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Contact an applicant","tags":["Establishment · Applicants"],"security":[{"establishment":[]}]}},"/v1/establishment/applicants/{id}/accept":{"post":{"description":"From any open status (BUG-62): the application becomes `accepted`, the employee is told, and one vacancy is taken. The last vacancy fills the job: the other open applications become `position_filled` and the job takes no more applicants until an acceptance is cancelled. Not for a closed job (`JOB_CLOSED`), a full one (`VACANCIES_FILLED`) or a final application (`APPLICATION_ACTION_NOT_ALLOWED`).","operationId":"EstablishmentApplicants_accept","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptResultDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"JOB_CLOSED, VACANCIES_FILLED, APPLICATION_ACTION_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"JOB_CLOSED":{"value":{"code":"JOB_CLOSED","message":"This job is closed, so its applicants can't be contacted","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VACANCIES_FILLED":{"value":{"code":"VACANCIES_FILLED","message":"All the vacancies for this job have been filled","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"APPLICATION_ACTION_NOT_ALLOWED":{"value":{"code":"APPLICATION_ACTION_NOT_ALLOWED","message":"This can't be done with the application in its current status","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Accept an applicant","tags":["Establishment · Applicants"],"security":[{"establishment":[]}]}},"/v1/establishment/applicants/{id}/cancel-acceptance":{"post":{"description":"Before contracting (BUG-62): an `accepted` application goes back to the status it was accepted from (Reviewed if it was new), its vacancy is free again and the employee is told. Applications already `position_filled` stay so. Not for a closed job (`JOB_CLOSED`) or an application that isn't accepted (`APPLICATION_ACTION_NOT_ALLOWED`).","operationId":"EstablishmentApplicants_cancelAcceptance","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptResultDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"JOB_CLOSED, APPLICATION_ACTION_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"JOB_CLOSED":{"value":{"code":"JOB_CLOSED","message":"This job is closed, so its applicants can't be contacted","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"APPLICATION_ACTION_NOT_ALLOWED":{"value":{"code":"APPLICATION_ACTION_NOT_ALLOWED","message":"This can't be done with the application in its current status","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Cancel an applicant's acceptance","tags":["Establishment · Applicants"],"security":[{"establishment":[]}]}},"/v1/establishment/applicants/{id}/rating":{"post":{"description":"Once the job has ended (closed, expired or past its end date), an `accepted` application can be rated once: 1 to 5 `stars` and an optional `comment` (up to 500 characters). Final: a second rating is `ALREADY_RATED`. Otherwise `APPLICATION_ACTION_NOT_ALLOWED`. Returns the card, with `myRating` set and `rate` gone from `actions`.","operationId":"EstablishmentApplicants_rate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateApplicantDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicantCardDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"APPLICATION_ACTION_NOT_ALLOWED, ALREADY_RATED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"APPLICATION_ACTION_NOT_ALLOWED":{"value":{"code":"APPLICATION_ACTION_NOT_ALLOWED","message":"This can't be done with the application in its current status","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"ALREADY_RATED":{"value":{"code":"ALREADY_RATED","message":"You've already rated this employee for this job","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Rate an accepted employee","tags":["Establishment · Applicants"],"security":[{"establishment":[]}]}},"/v1/establishment/conversations":{"get":{"description":"Most recent activity first, by cursor. Each has the other side (name and photo or logo), the `APP-` number, the last message, my unread count and `closed` (read-only). Updates arrive live as `conversation.updated`.","operationId":"EstablishmentChat_list","parameters":[{"name":"cursor","required":false,"in":"query","description":"From the previous page's `nextCursor`; omit for the first page.","schema":{"maxLength":200,"type":"string"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–50).","schema":{"minimum":1,"maximum":50,"default":20,"example":20,"type":"number"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationsPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"My conversations","tags":["Establishment · Chat"],"security":[{"establishment":[]}]}},"/v1/establishment/conversations/unread-count":{"get":{"description":"For the tab badge. Updates arrive live as `unread.counts` (`messages`).","operationId":"EstablishmentChat_unreadCount","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatUnreadCountsDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Unread chats","tags":["Establishment · Chat"],"security":[{"establishment":[]}]}},"/v1/establishment/conversations/{id}":{"get":{"description":"The chat header: who, the `APP-` number, and `closed`.","operationId":"EstablishmentChat_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"One conversation","tags":["Establishment · Chat"],"security":[{"establishment":[]}]}},"/v1/establishment/conversations/{id}/messages":{"get":{"description":"Newest first; `cursor` loads older ones. Attachments are signed links. `read` says the recipient has read it. New ones arrive live as `message.new`; tell the socket `conversation.open` while the chat is on screen, so no push is sent for it.","operationId":"EstablishmentChat_messages","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"cursor","required":false,"in":"query","description":"From the previous page's `nextCursor`; omit for the first page.","schema":{"maxLength":200,"type":"string"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–50).","schema":{"minimum":1,"maximum":50,"default":20,"example":20,"type":"number"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagesPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Messages","tags":["Establishment · Chat"],"security":[{"establishment":[]}]},"post":{"description":"Text, or an image, file or voice note uploaded first (`POST /files` with purpose `chat_image`, `chat_file` or `chat_voice`); an upload is sent once, by its uploader (`NOT_FOUND` otherwise). Refused once the chat is read-only (`CONVERSATION_CLOSED`). The other side gets it live, and a push unless the chat is on their screen.","operationId":"EstablishmentChat_send","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"CONVERSATION_CLOSED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"CONVERSATION_CLOSED":{"value":{"code":"CONVERSATION_CLOSED","message":"This conversation is closed; you can read it but not send messages","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Send a message","tags":["Establishment · Chat"],"security":[{"establishment":[]}]}},"/v1/establishment/conversations/{id}/read":{"post":{"description":"Everything up to now. The other side gets `message.read` (read receipts).","operationId":"EstablishmentChat_read","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":""},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Mark read","tags":["Establishment · Chat"],"security":[{"establishment":[]}]}},"/v1/establishment/home":{"get":{"description":"The header (from the profile), the three summary counts, the latest published jobs and the running subscription. Jobs arrive in Sprint 2: until then the counts are 0 and the list is empty, in the shape documented here.","operationId":"Home_get","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Home screen","tags":["Establishment · Home"],"security":[{"establishment":[]}]}},"/v1/establishment/jobs":{"post":{"description":"Publishes at once. Needs a running subscription (`SUBSCRIPTION_REQUIRED`) with posts left in it (`JOB_POST_QUOTA_REACHED`, saying when it ends; the count covers the whole subscription). The response carries the updated `quota` for the post button. Listed until the Saudi midnight after `endDate`, or 30 days when open-ended.","operationId":"EstablishmentJobs_create","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateJobDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedJobDto"}}}},"400":{"description":"VALIDATION_FAILED, CITY_NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"CITY_NOT_FOUND":{"value":{"code":"CITY_NOT_FOUND","message":"Choose a city from the list","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"403":{"description":"SUBSCRIPTION_REQUIRED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"SUBSCRIPTION_REQUIRED":{"value":{"code":"SUBSCRIPTION_REQUIRED","message":"Subscribe to a package to post jobs","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"JOB_POST_QUOTA_REACHED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"JOB_POST_QUOTA_REACHED":{"value":{"code":"JOB_POST_QUOTA_REACHED","message":"You've used all the job posts in your package. It ends on {date}; subscribe to a new package to post more","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Post a job","tags":["Establishment · Jobs"],"security":[{"establishment":[]}]},"get":{"description":"Newest published first, filtered by the status chip (`group`). An active job past its listing period shows as `expired` (Ended). Pages by cursor. `quota` drives the post button (null without a running subscription).","operationId":"EstablishmentJobs_list","parameters":[{"name":"cursor","required":false,"in":"query","description":"From the previous page's `nextCursor`; omit for the first page.","schema":{"maxLength":200,"type":"string"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–50).","schema":{"minimum":1,"maximum":50,"default":20,"example":20,"type":"number"}},{"name":"group","required":true,"in":"query","description":"The status chip: `ended` is expired, `suspended` is paused or blocked.","schema":{"default":"all","example":"active","type":"string","enum":["closed","active","ended","suspended","all"]}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyJobsPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"My jobs","tags":["Establishment · Jobs"],"security":[{"establishment":[]}]}},"/v1/establishment/jobs/{id}":{"get":{"description":"With its stats, the block reason when an admin or reports blocked it, and `allowedActions` (the buttons to show).","operationId":"EstablishmentJobs_details","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstablishmentJobDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"One of my jobs","tags":["Establishment · Jobs"],"security":[{"establishment":[]}]},"put":{"description":"Takes the whole post form again. Not for closed jobs (`JOB_ACTION_NOT_ALLOWED`). A start date already behind the job may stay as it is; a new end date moves the listing period. Once anyone has applied, the title and salary are locked (`JOB_TERMS_LOCKED`; `termsLocked` in the details). The status and the subscription post count stay as they are.","operationId":"EstablishmentJobs_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateJobDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstablishmentJobDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED, CITY_NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"CITY_NOT_FOUND":{"value":{"code":"CITY_NOT_FOUND","message":"Choose a city from the list","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"JOB_ACTION_NOT_ALLOWED, JOB_TERMS_LOCKED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"JOB_ACTION_NOT_ALLOWED":{"value":{"code":"JOB_ACTION_NOT_ALLOWED","message":"This can't be done while the job is {status}","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"JOB_TERMS_LOCKED":{"value":{"code":"JOB_TERMS_LOCKED","message":"The title and salary can't change once people have applied","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Edit one of my jobs","tags":["Establishment · Jobs"],"security":[{"establishment":[]}]}},"/v1/establishment/jobs/{id}/pause":{"post":{"description":"Hides an active job from employees until it is resumed. Returns the job as `GET /jobs/:id` does.","operationId":"EstablishmentJobs_pause","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstablishmentJobDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"JOB_ACTION_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"JOB_ACTION_NOT_ALLOWED":{"value":{"code":"JOB_ACTION_NOT_ALLOWED","message":"This can't be done while the job is {status}","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Pause a job","tags":["Establishment · Jobs"],"security":[{"establishment":[]}]}},"/v1/establishment/jobs/{id}/resume":{"post":{"description":"Lists it again, or marks it `expired` when its listing period ended while paused (extend it then).","operationId":"EstablishmentJobs_resume","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstablishmentJobDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"JOB_ACTION_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"JOB_ACTION_NOT_ALLOWED":{"value":{"code":"JOB_ACTION_NOT_ALLOWED","message":"This can't be done while the job is {status}","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Resume a paused job","tags":["Establishment · Jobs"],"security":[{"establishment":[]}]}},"/v1/establishment/jobs/{id}/extend":{"post":{"description":"Adds 7, 14 or 30 days to the listing period, counted from now when it already ended. An ended job becomes active again; a paused one stays paused. The job dates (`endDate`) stay as they are.","operationId":"EstablishmentJobs_extend","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtendJobDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstablishmentJobDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"JOB_ACTION_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"JOB_ACTION_NOT_ALLOWED":{"value":{"code":"JOB_ACTION_NOT_ALLOWED","message":"This can't be done while the job is {status}","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Extend a job","tags":["Establishment · Jobs"],"security":[{"establishment":[]}]}},"/v1/establishment/jobs/{id}/close":{"post":{"description":"For good: it stops taking applications and cannot be reopened; applications still open are cancelled (`job_closed`) and their employees notified. Also works on a blocked job.","operationId":"EstablishmentJobs_close","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstablishmentJobDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"JOB_ACTION_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"JOB_ACTION_NOT_ALLOWED":{"value":{"code":"JOB_ACTION_NOT_ALLOWED","message":"This can't be done while the job is {status}","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Close a job","tags":["Establishment · Jobs"],"security":[{"establishment":[]}]}},"/v1/establishment/profile":{"get":{"operationId":"EstablishmentProfile_get","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstablishmentProfileDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"My establishment profile","tags":["Establishment · Profile"],"security":[{"establishment":[]}]},"patch":{"description":"Send only what changes; `null` clears a field. Upload the logo first with `POST /v1/establishment/files?purpose=establishment_logo`. Shown on the home at once.","operationId":"EstablishmentProfile_update","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEstablishmentProfileDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstablishmentProfileDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"CONFLICT","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"CONFLICT":{"value":{"code":"CONFLICT","message":"The request conflicts with existing data","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Edit my establishment profile","tags":["Establishment · Profile"],"security":[{"establishment":[]}]}},"/v1/establishment/account":{"get":{"operationId":"Account_get","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"My account","tags":["Establishment · Account"],"security":[{"establishment":[]}]},"patch":{"description":"Requests without `Accept-Language` or `?lang=` are answered in it from the next request.","operationId":"Account_update","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Change my language","tags":["Establishment · Account"],"security":[{"establishment":[]}]}},"/v1/establishment/account/mobile/otp":{"post":{"description":"Step 1 of changing the mobile number: the code goes to the new number. Employees only: establishments get `MOBILE_CHANGE_NOT_ALLOWED`.","operationId":"Account_requestCode","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeMobileOtpDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpSentDto"}}}},"400":{"description":"MOBILE_UNCHANGED, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_UNCHANGED":{"value":{"code":"MOBILE_UNCHANGED","message":"This is already your mobile number. Enter a new one","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"403":{"description":"MOBILE_CHANGE_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_CHANGE_NOT_ALLOWED":{"value":{"code":"MOBILE_CHANGE_NOT_ALLOWED","message":"Your mobile number can't be changed. Contact us if you need help","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"MOBILE_ALREADY_REGISTERED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_ALREADY_REGISTERED":{"value":{"code":"MOBILE_ALREADY_REGISTERED","message":"This mobile number is already registered. Sign in instead","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"OTP_RESEND_TOO_SOON, TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_RESEND_TOO_SOON":{"value":{"code":"OTP_RESEND_TOO_SOON","message":"You can request a new code in {seconds} seconds","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"TOO_MANY_REQUESTS":{"value":{"code":"TOO_MANY_REQUESTS","message":"Too many requests, please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"503":{"description":"SMS_UNAVAILABLE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"SMS_UNAVAILABLE":{"value":{"code":"SMS_UNAVAILABLE","message":"The message couldn't be sent. Please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Send a code to a new number","tags":["Establishment · Account"],"security":[{"establishment":[]}]}},"/v1/establishment/account/mobile":{"post":{"description":"Step 2: checks the code sent to the new number and swaps it in. Every other device is signed out; this one stays signed in. Employees only: establishments get `MOBILE_CHANGE_NOT_ALLOWED`.","operationId":"Account_changeMobile","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeMobileDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDto"}}}},"400":{"description":"MOBILE_UNCHANGED, OTP_INVALID, OTP_EXPIRED, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_UNCHANGED":{"value":{"code":"MOBILE_UNCHANGED","message":"This is already your mobile number. Enter a new one","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"OTP_INVALID":{"value":{"code":"OTP_INVALID","message":"The verification code is incorrect. {remainingAttempts} attempts left","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"OTP_EXPIRED":{"value":{"code":"OTP_EXPIRED","message":"The verification code has expired. Request a new one","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"403":{"description":"MOBILE_CHANGE_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_CHANGE_NOT_ALLOWED":{"value":{"code":"MOBILE_CHANGE_NOT_ALLOWED","message":"Your mobile number can't be changed. Contact us if you need help","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"MOBILE_ALREADY_REGISTERED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_ALREADY_REGISTERED":{"value":{"code":"MOBILE_ALREADY_REGISTERED","message":"This mobile number is already registered. Sign in instead","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"OTP_TOO_MANY_ATTEMPTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_TOO_MANY_ATTEMPTS":{"value":{"code":"OTP_TOO_MANY_ATTEMPTS","message":"Too many incorrect attempts. Request a new code","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Change my mobile number","tags":["Establishment · Account"],"security":[{"establishment":[]}]}},"/v1/establishment/account/delete/otp":{"post":{"deprecated":true,"description":"No longer needed: deleting takes no code since BUG-57. Kept for app versions that still ask for one.","operationId":"Account_requestDeleteCode","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpSentDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"OTP_RESEND_TOO_SOON, TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_RESEND_TOO_SOON":{"value":{"code":"OTP_RESEND_TOO_SOON","message":"You can request a new code in {seconds} seconds","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"TOO_MANY_REQUESTS":{"value":{"code":"TOO_MANY_REQUESTS","message":"Too many requests, please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"503":{"description":"SMS_UNAVAILABLE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"SMS_UNAVAILABLE":{"value":{"code":"SMS_UNAVAILABLE","message":"The message couldn't be sent. Please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Send the account deletion code (unused)","tags":["Establishment · Account"],"security":[{"establishment":[]}]}},"/v1/establishment/account/delete":{"post":{"description":"Deletes the account at once, with no code (BUG-57; a `code` from older app versions is ignored). Your details and number are removed (the number can register a new, empty account), every device is signed out, this one included (its socket gets `session.ended` with `account_deleted`), and your jobs, applications and chats leave the other app. The dashboard keeps the records (subscriptions, payments, history).","operationId":"Account_delete","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountDto"}}}},"responses":{"204":{"description":"The account was deleted."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Delete my account","tags":["Establishment · Account"],"security":[{"establishment":[]}]}},"/v1/establishment/subscriptions":{"post":{"description":"Active at once in Sprint 1 (no payment yet). While a subscription runs, the new one is queued to start when it ends (`state: upcoming`); only one can be queued.","operationId":"EstablishmentSubscriptions_subscribe","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscribeDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"SUBSCRIPTION_QUEUE_FULL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"SUBSCRIPTION_QUEUE_FULL":{"value":{"code":"SUBSCRIPTION_QUEUE_FULL","message":"You already have an upcoming subscription. You can subscribe again once it starts","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Subscribe to a package","tags":["Establishment · Subscriptions"],"security":[{"establishment":[]}]},"get":{"description":"Every subscription, newest start first, with its state.","operationId":"EstablishmentSubscriptions_list","parameters":[{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"My subscriptions","tags":["Establishment · Subscriptions"],"security":[{"establishment":[]}]}},"/v1/establishment/subscriptions/current":{"get":{"description":"The running subscription and the one queued after it; both are null when there is none.","operationId":"EstablishmentSubscriptions_current","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentSubscriptionDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Current subscription","tags":["Establishment · Subscriptions"],"security":[{"establishment":[]}]}},"/v1/establishment/packages":{"get":{"description":"Active packages in display order, in the request language. Prices are SAR with VAT included (`vat` and `net` show the split).","operationId":"EstablishmentPackages_list","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppPackageListDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List packages","tags":["Establishment · Packages"],"security":[{"establishment":[]}]}},"/v1/establishment/packages/{id}":{"get":{"operationId":"EstablishmentPackages_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppPackageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"View a package","tags":["Establishment · Packages"],"security":[{"establishment":[]}]}},"/v1/establishment/contact":{"get":{"description":"The contact channels (a `null` one is hidden) and the message types, in the request language.","operationId":"EstablishmentContact_screen","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppContactDto"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Contact screen","tags":["Establishment · Contact"],"x-public":true,"security":[]}},"/v1/establishment/contact/messages":{"post":{"description":"Guests can send. With a valid token of this app the message is linked to the account; an expired or missing token just sends as a guest. At most 3 per hour per mobile (or account) and 5 per hour per IP.","operationId":"EstablishmentContact_send","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageSentDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"TOO_MANY_REQUESTS":{"value":{"code":"TOO_MANY_REQUESTS","message":"Too many requests, please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Send a message","tags":["Establishment · Contact"],"x-public":true,"security":[]}},"/v1/establishment/settings":{"get":{"description":"Contact channels (a `null` channel is hidden) and app store links. Public and cached; changes in the dashboard apply immediately.","operationId":"EstablishmentSettings_read","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettingsDto"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Read app settings","tags":["Establishment · Settings"],"x-public":true,"security":[]}},"/v1/establishment/content/pages/{key}":{"get":{"description":"About, Terms, Privacy, or the text above the contact form, as rich text (HTML). Terms and Privacy are this app's own; About and the contact text are shared. When a text is empty in the request language, the other language is used.","operationId":"EstablishmentContent_page","parameters":[{"name":"key","required":true,"in":"path","schema":{"enum":["about","terms","privacy"],"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Read a page","tags":["Establishment · Content"],"x-public":true,"security":[]}},"/v1/establishment/content/faqs":{"get":{"description":"Questions and rich-text answers, in display order.","operationId":"EstablishmentContent_faqList","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppFaqListDto"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Read the FAQ","tags":["Establishment · Content"],"x-public":true,"security":[]}},"/v1/establishment/cities":{"get":{"description":"Saudi cities a job can be located in, each with its region, sorted by name in the request language. Public and cached.","operationId":"EstablishmentCities_list","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CityListDto"}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List cities","tags":["Establishment · Cities"],"x-public":true,"security":[]}},"/v1/establishment/auth/login/otp":{"post":{"description":"Sends a 4-digit code to a registered number. Call again to resend, once `resendAfterSeconds` have passed. `MOBILE_NOT_REGISTERED` means the app should offer registration.","operationId":"EstablishmentSignIn_requestLogin","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestOtpDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpSentDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"403":{"description":"ACCOUNT_DISABLED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"ACCOUNT_DISABLED":{"value":{"code":"ACCOUNT_DISABLED","message":"This account has been deactivated. Contact support for help","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"MOBILE_NOT_REGISTERED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_NOT_REGISTERED":{"value":{"code":"MOBILE_NOT_REGISTERED","message":"This mobile number isn't registered. Create an account","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"OTP_RESEND_TOO_SOON, TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_RESEND_TOO_SOON":{"value":{"code":"OTP_RESEND_TOO_SOON","message":"You can request a new code in {seconds} seconds","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"TOO_MANY_REQUESTS":{"value":{"code":"TOO_MANY_REQUESTS","message":"Too many requests, please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"503":{"description":"SMS_UNAVAILABLE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"SMS_UNAVAILABLE":{"value":{"code":"SMS_UNAVAILABLE","message":"The message couldn't be sent. Please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Send a login code","tags":["Establishment · Auth"],"x-public":true,"security":[]}},"/v1/establishment/auth/login":{"post":{"description":"Checks the login code and starts a session.","operationId":"EstablishmentSignIn_login","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyOtpDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstablishmentSessionDto"}}}},"400":{"description":"OTP_INVALID, OTP_EXPIRED, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_INVALID":{"value":{"code":"OTP_INVALID","message":"The verification code is incorrect. {remainingAttempts} attempts left","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"OTP_EXPIRED":{"value":{"code":"OTP_EXPIRED","message":"The verification code has expired. Request a new one","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"403":{"description":"ACCOUNT_DISABLED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"ACCOUNT_DISABLED":{"value":{"code":"ACCOUNT_DISABLED","message":"This account has been deactivated. Contact support for help","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"MOBILE_NOT_REGISTERED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_NOT_REGISTERED":{"value":{"code":"MOBILE_NOT_REGISTERED","message":"This mobile number isn't registered. Create an account","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"OTP_TOO_MANY_ATTEMPTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_TOO_MANY_ATTEMPTS":{"value":{"code":"OTP_TOO_MANY_ATTEMPTS","message":"Too many incorrect attempts. Request a new code","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Log in with the code","tags":["Establishment · Auth"],"x-public":true,"x-session-token":{"namespace":"establishment","field":"accessToken"},"security":[]}},"/v1/establishment/auth/register/otp":{"post":{"description":"Sends a 4-digit code to a number with no account. `MOBILE_ALREADY_REGISTERED` means the app should offer login.","operationId":"EstablishmentSignIn_requestRegister","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestOtpDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpSentDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"MOBILE_ALREADY_REGISTERED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_ALREADY_REGISTERED":{"value":{"code":"MOBILE_ALREADY_REGISTERED","message":"This mobile number is already registered. Sign in instead","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"OTP_RESEND_TOO_SOON, TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_RESEND_TOO_SOON":{"value":{"code":"OTP_RESEND_TOO_SOON","message":"You can request a new code in {seconds} seconds","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"TOO_MANY_REQUESTS":{"value":{"code":"TOO_MANY_REQUESTS","message":"Too many requests, please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"503":{"description":"SMS_UNAVAILABLE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"SMS_UNAVAILABLE":{"value":{"code":"SMS_UNAVAILABLE","message":"The message couldn't be sent. Please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Send a registration code","tags":["Establishment · Auth"],"x-public":true,"security":[]}},"/v1/establishment/auth/register":{"post":{"description":"Checks the registration code, creates the account and starts a session.","operationId":"EstablishmentSignIn_register","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyOtpDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstablishmentSessionDto"}}}},"400":{"description":"OTP_INVALID, OTP_EXPIRED, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_INVALID":{"value":{"code":"OTP_INVALID","message":"The verification code is incorrect. {remainingAttempts} attempts left","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"OTP_EXPIRED":{"value":{"code":"OTP_EXPIRED","message":"The verification code has expired. Request a new one","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"MOBILE_ALREADY_REGISTERED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MOBILE_ALREADY_REGISTERED":{"value":{"code":"MOBILE_ALREADY_REGISTERED","message":"This mobile number is already registered. Sign in instead","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"OTP_TOO_MANY_ATTEMPTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"OTP_TOO_MANY_ATTEMPTS":{"value":{"code":"OTP_TOO_MANY_ATTEMPTS","message":"Too many incorrect attempts. Request a new code","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Register with the code","tags":["Establishment · Auth"],"x-public":true,"x-session-token":{"namespace":"establishment","field":"accessToken"},"security":[]}},"/v1/establishment/auth/logout":{"post":{"description":"Ends the session of the token sent. The token stops working immediately.","operationId":"EstablishmentAuth_logout","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"Signed out."},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Sign out","tags":["Establishment · Auth"],"security":[{"establishment":[]}]}},"/v1/establishment/auth/sessions":{"get":{"description":"Your live sessions, most recently used first. `current` marks this device.","operationId":"EstablishmentAuth_list","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionListDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List signed-in devices","tags":["Establishment · Auth"],"security":[{"establishment":[]}]},"delete":{"description":"Ends every session except the one making this request.","operationId":"EstablishmentAuth_revokeOthers","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokedCountDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Sign out all other devices","tags":["Establishment · Auth"],"security":[{"establishment":[]}]}},"/v1/establishment/auth/sessions/{id}":{"delete":{"description":"Ends one of your sessions; that device is signed out on its next request. Using the current session id works like signing out.","operationId":"EstablishmentAuth_revokeOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"The device was signed out."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Sign out one device","tags":["Establishment · Auth"],"security":[{"establishment":[]}]}},"/v1/establishment/files":{"post":{"description":"Send the file as multipart/form-data in the `file` field. Its type is checked from its bytes. Then pass the returned `id` to the endpoint that uses it; files unused after 24 hours are deleted.\n\n- `establishment_logo`: PNG, JPG, WEBP, up to 2 MB, public\n- `chat_image`: PNG, JPG, WEBP, up to 5 MB, private\n- `chat_file`: PDF, DOCX, DOC, XLSX, XLS, up to 10 MB, private\n- `chat_voice`: M4A, AAC, up to 3 MB, private","operationId":"EstablishmentFiles_upload","parameters":[{"name":"purpose","required":true,"in":"query","schema":{"enum":["establishment_logo","chat_image","chat_file","chat_voice"],"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDto"}}}},"400":{"description":"FILE_REQUIRED, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"FILE_REQUIRED":{"value":{"code":"FILE_REQUIRED","message":"No file was attached","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"413":{"description":"FILE_TOO_LARGE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"FILE_TOO_LARGE":{"value":{"code":"FILE_TOO_LARGE","message":"The file is larger than allowed ({maxMb} MB at most)","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"415":{"description":"FILE_TYPE_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"FILE_TYPE_NOT_ALLOWED":{"value":{"code":"FILE_TYPE_NOT_ALLOWED","message":"This file type isn't supported. Allowed: {allowed}","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Upload a file","tags":["Establishment · Files"],"security":[{"establishment":[]}]}},"/v1/establishment/devices":{"put":{"description":"Call after signing in, whenever the messaging SDK gives a new token, and when the app's language changes. One device per sign-in: calling again replaces it. Signing out (or any other end of the session) removes it.","operationId":"EstablishmentDevice_register","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterDeviceDto"}}}},"responses":{"204":{"description":""},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Register this device for push","tags":["Establishment · Devices"],"security":[{"establishment":[]}]},"delete":{"description":"Removes this sign-in's device; the session stays.","operationId":"EstablishmentDevice_remove","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":""},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Stop push on this device","tags":["Establishment · Devices"],"security":[{"establishment":[]}]}},"/v1/establishment/notifications":{"get":{"description":"Newest first, in the request language. Pages by cursor: pass the previous `nextCursor` as `cursor` (null means the last page). New ones also arrive live as `notification.new` on the realtime socket.","operationId":"EstablishmentNotification_list","parameters":[{"name":"cursor","required":false,"in":"query","description":"From the previous page's `nextCursor`; omit for the first page.","schema":{"maxLength":200,"type":"string"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–50).","schema":{"minimum":1,"maximum":50,"default":20,"example":20,"type":"number"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"My notifications","tags":["Establishment · Notifications"],"security":[{"establishment":[]}]}},"/v1/establishment/notifications/unread-count":{"get":{"description":"For the bell badge. Updates arrive live as `unread.counts` on the realtime socket.","operationId":"EstablishmentNotification_unreadCount","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnreadCountDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Unread count","tags":["Establishment · Notifications"],"security":[{"establishment":[]}]}},"/v1/establishment/notifications/{id}/read":{"post":{"description":"Idempotent. Other devices get the new count live.","operationId":"EstablishmentNotification_markRead","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":""},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Mark one read","tags":["Establishment · Notifications"],"security":[{"establishment":[]}]}},"/v1/establishment/notifications/read-all":{"post":{"operationId":"EstablishmentNotification_markAllRead","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadAllDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Mark all read","tags":["Establishment · Notifications"],"security":[{"establishment":[]}]}},"/v1/admin/report-reasons":{"get":{"description":"In display order, inactive ones included, with how many reports use each.","operationId":"AdminReportReasons_list","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportReasonListDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List report reasons","tags":["Admin · Report reasons"],"security":[{"admin":[]}]},"post":{"description":"Added at the end. Names are unique in each language, ignoring case.","operationId":"AdminReportReasons_create","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReportReasonDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportReasonDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Add a report reason","tags":["Admin · Report reasons"],"security":[{"admin":[]}]}},"/v1/admin/report-reasons/order":{"put":{"description":"Send every id, each once, in the new order (`REPORT_REASON_ORDER_MISMATCH` otherwise).","operationId":"AdminReportReasons_reorder","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportReasonListDto"}}}},"400":{"description":"REPORT_REASON_ORDER_MISMATCH, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"REPORT_REASON_ORDER_MISMATCH":{"value":{"code":"REPORT_REASON_ORDER_MISMATCH","message":"The order must list every report reason exactly once","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Reorder report reasons","tags":["Admin · Report reasons"],"security":[{"admin":[]}]}},"/v1/admin/report-reasons/{id}":{"get":{"operationId":"AdminReportReasons_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportReasonDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"View a report reason","tags":["Admin · Report reasons"],"security":[{"admin":[]}]},"patch":{"description":"Names and/or `active`. An inactive reason leaves the app list but stays on old reports.","operationId":"AdminReportReasons_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateReportReasonDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportReasonDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Edit a report reason","tags":["Admin · Report reasons"],"security":[{"admin":[]}]},"delete":{"description":"Only when no report uses it (`REPORT_REASON_IN_USE`); deactivate it instead.","operationId":"AdminReportReasons_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"The reason was deleted."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"REPORT_REASON_IN_USE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"REPORT_REASON_IN_USE":{"value":{"code":"REPORT_REASON_IN_USE","message":"This reason is used by reports, so it can't be deleted. Deactivate it instead","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Delete a report reason","tags":["Admin · Report reasons"],"security":[{"admin":[]}]}},"/v1/admin/jobs":{"get":{"description":"Newest published first. `q` takes a job number (`123`, `JOB-000123`) or words in the title or the establishment name; `status` is as shown (a lapsed active job is `expired`); the dates are Saudi days, both inclusive. Each row has its applicant and report counts and the allowed `actions`.","operationId":"AdminJobs_list","parameters":[{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"name":"q","required":false,"in":"query","description":"A job number (`123`, `JOB-000123`), or words in the title or the\nestablishment's name.","schema":{"maxLength":100,"example":"JOB-000123","type":"string"}},{"name":"status","required":false,"in":"query","description":"As shown: an active job past its listing period counts as `expired`.","schema":{"example":"active","type":"string","enum":["closed","active","paused","blocked","expired"]}},{"name":"establishmentId","required":false,"in":"query","description":"One establishment's jobs.","schema":{"format":"uuid","type":"string"}},{"name":"publishedFrom","required":false,"in":"query","description":"Published on or after this Saudi day.","schema":{"example":"2026-09-01","type":"string"}},{"name":"publishedTo","required":false,"in":"query","description":"Published on or before this Saudi day.","schema":{"example":"2026-09-30","type":"string"}},{"name":"employmentType","required":false,"in":"query","description":"One or more work types (BUG-53): `?employmentType=full_time` or\n`full_time,part_time`.","schema":{"example":["full_time"],"type":"array","items":{"type":"string","enum":["hourly","full_time","part_time"]}}},{"name":"workplaceType","required":false,"in":"query","description":"One or more workplace types, like `employmentType`.","schema":{"example":["remote"],"type":"array","items":{"type":"string","enum":["onsite","remote","hybrid"]}}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminJobPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List jobs","tags":["Admin · Jobs"],"security":[{"admin":[]}]}},"/v1/admin/jobs/{id}":{"get":{"description":"The job with its establishment, counts, latest 20 reports, status history (newest first, with who did what) and the allowed `actions`.","operationId":"AdminJobs_details","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminJobDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"View a job","tags":["Admin · Jobs"],"security":[{"admin":[]}]},"patch":{"description":"P1. Title, description, responsibilities and requirements, with the posting form’s rules. The title can’t change once anyone has applied (`JOB_TERMS_LOCKED`).","operationId":"AdminJobs_edit","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminEditJobDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminJobDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"JOB_ACTION_NOT_ALLOWED, JOB_TERMS_LOCKED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"JOB_ACTION_NOT_ALLOWED":{"value":{"code":"JOB_ACTION_NOT_ALLOWED","message":"This can't be done while the job is {status}","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"JOB_TERMS_LOCKED":{"value":{"code":"JOB_TERMS_LOCKED","message":"The title and salary can't change once people have applied","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Edit a job’s text","tags":["Admin · Jobs"],"security":[{"admin":[]}]}},"/v1/admin/jobs/{id}/block":{"post":{"description":"Suspends an active, paused or ended job with a reason the establishment sees; it leaves the app. Returns the updated job.","operationId":"AdminJobs_block","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockJobDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminJobDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"JOB_ACTION_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"JOB_ACTION_NOT_ALLOWED":{"value":{"code":"JOB_ACTION_NOT_ALLOWED","message":"This can't be done while the job is {status}","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Block a job","tags":["Admin · Jobs"],"security":[{"admin":[]}]}},"/v1/admin/jobs/{id}/republish":{"post":{"description":"Lists a blocked job again, also after an automatic block (its report count starts afresh). The establishment is told.","operationId":"AdminJobs_republish","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminJobDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"JOB_ACTION_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"JOB_ACTION_NOT_ALLOWED":{"value":{"code":"JOB_ACTION_NOT_ALLOWED","message":"This can't be done while the job is {status}","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Republish a job","tags":["Admin · Jobs"],"security":[{"admin":[]}]}},"/v1/admin/jobs/{id}/close":{"post":{"description":"For good. Applications still open are cancelled and their employees told; the establishment is told.","operationId":"AdminJobs_close","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminJobDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"JOB_ACTION_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"JOB_ACTION_NOT_ALLOWED":{"value":{"code":"JOB_ACTION_NOT_ALLOWED","message":"This can't be done while the job is {status}","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Close a job","tags":["Admin · Jobs"],"security":[{"admin":[]}]}},"/v1/admin/reports":{"get":{"description":"One row per reported job, latest report first, with that report’s number and reporter, the job, its establishment and the report count. `reportNumber` (`45`, `REP-000045`), `reporter` (name or mobile of anyone who reported it), `jobNumber` and `establishment` combine with AND; `q` matches any of them. `jobActions` says whether `POST jobs/{id}/block` or `republish` applies; the establishment is (de)activated with `PATCH establishments/{id}/status`.","operationId":"AdminReports_list","parameters":[{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"name":"q","required":false,"in":"query","description":"Any of the four fields.","schema":{"maxLength":100,"example":"REP-000045","type":"string"}},{"name":"reportNumber","required":false,"in":"query","description":"A report on the job: `45` or `REP-000045`.","schema":{"maxLength":100,"example":"REP-000045","type":"string"}},{"name":"reporter","required":false,"in":"query","description":"The name or mobile (`05…` works) of anyone who reported the job.","schema":{"maxLength":100,"example":"أحمد","type":"string"}},{"name":"jobNumber","required":false,"in":"query","description":"`123` or `JOB-000123`.","schema":{"maxLength":100,"example":"JOB-000123","type":"string"}},{"name":"establishment","required":false,"in":"query","description":"Part of the establishment's name.","schema":{"maxLength":100,"example":"الحلول","type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminReportPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List reported jobs","tags":["Admin · Reports"],"security":[{"admin":[]}]}},"/v1/admin/reports/{jobId}":{"get":{"description":"The job, its establishment with the mobile number, and every report on it, newest first, with the reporter’s name and mobile, the reason, notes and date. 404 for a job nobody reported.","operationId":"AdminReports_details","parameters":[{"name":"jobId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminReportDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"View a reported job","tags":["Admin · Reports"],"security":[{"admin":[]}]}},"/v1/admin/finance/subscriptions":{"get":{"description":"One row per package with sales in the filter, in the packages’ order: its current price, the purchases and distinct subscribers, and what they brought in at the prices paid (`amount` with VAT, `net` = the app’s profit, `vat`, VAT rounded per subscription). `totals` covers the whole filter and equals the sum of the rows. Paid subscriptions count, and pending ones until payments are confirmed (Sprint 3). `package` matches part of the Arabic or English name; `from`/`to` are Saudi days of purchase, both inclusive.","operationId":"AdminFinance_subscriptions","parameters":[{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"name":"package","required":false,"in":"query","description":"Part of the package's Arabic or English name.","schema":{"maxLength":100,"example":"ذهبية","type":"string"}},{"name":"from","required":false,"in":"query","description":"Bought on or after this Saudi day.","schema":{"example":"2026-09-01","type":"string"}},{"name":"to","required":false,"in":"query","description":"Bought on or before this Saudi day.","schema":{"example":"2026-09-30","type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinancePageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Subscriptions report","tags":["Admin · Finance"],"security":[{"admin":[]}]}},"/v1/admin/broadcasts":{"get":{"description":"Newest first. `q` matches part of the Arabic or English title; `recipientType` keeps those sent to that type.","operationId":"AdminBroadcasts_list","parameters":[{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"name":"q","required":false,"in":"query","description":"Part of the Arabic or English title.","schema":{"maxLength":100,"example":"تحديث","type":"string"}},{"name":"recipientType","required":false,"in":"query","description":"Broadcasts that include this type.","schema":{"example":"employee","type":"string","enum":["employee","establishment"]}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List broadcasts","tags":["Admin · Notifications management"],"security":[{"admin":[]}]},"post":{"description":"Each chosen type goes to all its active accounts (`allEmployees`, `allEstablishments`) or to the picked IDs. Returns at once with `status: sending`; the `admin_broadcast` notifications go out in batches (in-app, socket and push) and the broadcast becomes `sent`.","operationId":"AdminBroadcasts_create","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBroadcastDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Send a broadcast","tags":["Admin · Notifications management"],"security":[{"admin":[]}]}},"/v1/admin/broadcasts/recipients":{"get":{"description":"Active accounts of `type` (deleted and deactivated ones are left out), newest first. `q` matches the name or the mobile (`05…` works).","operationId":"AdminBroadcasts_recipients","parameters":[{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"name":"type","required":true,"in":"query","schema":{"example":"employee","type":"string","enum":["employee","establishment"]}},{"name":"q","required":false,"in":"query","description":"The name, or the mobile (`05…` works).","schema":{"maxLength":100,"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipientPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Pick recipients","tags":["Admin · Notifications management"],"security":[{"admin":[]}]}},"/v1/admin/broadcasts/{id}":{"get":{"description":"Read-only, with the picked accounts per type (empty for a type sent to all).","operationId":"AdminBroadcasts_details","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastDetailsDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"View a broadcast","tags":["Admin · Notifications management"],"security":[{"admin":[]}]}},"/v1/admin/broadcasts/count":{"post":{"description":"How many active accounts the selection reaches now, for the confirmation before sending. Checked like a broadcast’s recipients.","operationId":"AdminBroadcasts_count","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastAudienceDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipientCountDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Count recipients","tags":["Admin · Notifications management"],"security":[{"admin":[]}]}},"/v1/admin/jobs/{id}/conversations":{"get":{"description":"Each contacted applicant’s chat for the job, latest activity first, with its message count and whether it is closed.","operationId":"AdminConversations_list","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminConversationPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"A job’s conversations","tags":["Admin · Conversations"],"security":[{"admin":[]}]}},"/v1/admin/conversations/{id}":{"get":{"description":"The header: the job, both participants, the application and whether it is closed. Read-only for admins.","operationId":"AdminConversations_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminConversationDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"View a conversation","tags":["Admin · Conversations"],"security":[{"admin":[]}]}},"/v1/admin/conversations/{id}/messages":{"get":{"description":"Both sides’ messages, newest first, by cursor. Attachments carry signed links. Reading here marks nothing as read.","operationId":"AdminConversations_messages","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"cursor","required":false,"in":"query","description":"From the previous page's `nextCursor`; omit for the first page.","schema":{"maxLength":200,"type":"string"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–50).","schema":{"minimum":1,"maximum":50,"default":20,"example":20,"type":"number"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminMessagesPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"A conversation’s messages","tags":["Admin · Conversations"],"security":[{"admin":[]}]}},"/v1/admin/employees":{"get":{"description":"Pages of accounts, newest first; deleted accounts are not listed. `q` matches the mobile number (`05…` works) or the name.","operationId":"AppAccounts_list","parameters":[{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"name":"q","required":false,"in":"query","description":"The mobile (numbers typed as `05…` work) or the name.","schema":{"maxLength":100,"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"example":"active","type":"string","enum":["active","disabled"]}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppAccountPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Search employees","tags":["Admin · Employees"],"security":[{"admin":[]}]}},"/v1/admin/employees/{id}":{"get":{"operationId":"AppAccounts_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppAccountDetailDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"View an account","tags":["Admin · Employees"],"security":[{"admin":[]}]},"delete":{"description":"Per the deletion policy: the details and number are removed (the number can register a new, empty account), records such as subscriptions are kept, and every device is signed out.","operationId":"AppAccounts_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"The account was deleted."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Delete an account","tags":["Admin · Employees"],"security":[{"admin":[]}]},"patch":{"description":"Name, email (`null` clears it) and mobile; send only what changes. A new mobile must be free among employees (`ACCOUNT_MOBILE_TAKEN`) and signs the employee out on every device: they sign in again with the new number. The CV and its files stay the employee's own.","operationId":"AdminEmployeeProfile_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEmployeeDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppAccountDetailDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"ACCOUNT_MOBILE_TAKEN","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"ACCOUNT_MOBILE_TAKEN":{"value":{"code":"ACCOUNT_MOBILE_TAKEN","message":"Another account already uses this mobile number","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Edit an employee's details","tags":["Admin · Employees"],"security":[{"admin":[]}]}},"/v1/admin/employees/{id}/status":{"patch":{"description":"Deactivating needs a `reason` (3+ letters, up to 250 characters) and signs the account out on every device at once; it can’t sign in until activated again, and its sign-in refusal (`ACCOUNT_DISABLED`) quotes the reason, as does the refusal of the sessions it ended. A change emails the user when an email is on file (employees).","operationId":"AppAccounts_setStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountStatusDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppAccountDetailDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Activate or deactivate an account","tags":["Admin · Employees"],"security":[{"admin":[]}]}},"/v1/admin/employees/{id}/sessions":{"get":{"operationId":"AppAccounts_sessions","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppAccountSessionListDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List an account's signed-in devices","tags":["Admin · Employees"],"security":[{"admin":[]}]},"delete":{"operationId":"AppAccounts_revokeSessions","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokedCountDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Sign out all its devices","tags":["Admin · Employees"],"security":[{"admin":[]}]}},"/v1/admin/employees/{id}/sessions/{sessionId}":{"delete":{"operationId":"AppAccounts_revokeSession","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"sessionId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"The device was signed out."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Sign out one of its devices","tags":["Admin · Employees"],"security":[{"admin":[]}]}},"/v1/admin/establishments":{"get":{"description":"Pages of accounts, newest first; deleted accounts are not listed. `q` matches the mobile number (`05…` works) or the name.","operationId":"AppAccounts_list","parameters":[{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"name":"q","required":false,"in":"query","description":"The mobile (numbers typed as `05…` work) or the name.","schema":{"maxLength":100,"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"example":"active","type":"string","enum":["active","disabled"]}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppAccountPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Search establishments","tags":["Admin · Establishments"],"security":[{"admin":[]}]}},"/v1/admin/establishments/{id}":{"get":{"operationId":"AppAccounts_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppAccountDetailDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"View an account","tags":["Admin · Establishments"],"security":[{"admin":[]}]},"delete":{"description":"Per the deletion policy: the details and number are removed (the number can register a new, empty account), records such as subscriptions are kept, and every device is signed out.","operationId":"AppAccounts_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"The account was deleted."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Delete an account","tags":["Admin · Establishments"],"security":[{"admin":[]}]},"patch":{"description":"Name, tagline and logo (`null` clears one), and the official contact email (BUG-16; unique among establishments, `ACCOUNT_EMAIL_TAKEN`). A new logo is an `establishment_logo` file you uploaded (`POST /v1/admin/files?purpose=establishment_logo`); the previous one is deleted. Shown on its home at once.","operationId":"AdminEstablishmentProfile_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUpdateEstablishmentDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstablishmentProfileDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"CONFLICT, ACCOUNT_EMAIL_TAKEN","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"CONFLICT":{"value":{"code":"CONFLICT","message":"The request conflicts with existing data","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"ACCOUNT_EMAIL_TAKEN":{"value":{"code":"ACCOUNT_EMAIL_TAKEN","message":"Another account already uses this email","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Edit an establishment's profile","tags":["Admin · Establishments"],"security":[{"admin":[]}]}},"/v1/admin/establishments/{id}/status":{"patch":{"description":"Deactivating needs a `reason` (3+ letters, up to 250 characters) and signs the account out on every device at once; it can’t sign in until activated again, and its sign-in refusal (`ACCOUNT_DISABLED`) quotes the reason, as does the refusal of the sessions it ended. A change emails the user when an email is on file (employees).","operationId":"AppAccounts_setStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountStatusDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppAccountDetailDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Activate or deactivate an account","tags":["Admin · Establishments"],"security":[{"admin":[]}]}},"/v1/admin/establishments/{id}/sessions":{"get":{"operationId":"AppAccounts_sessions","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppAccountSessionListDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List an account's signed-in devices","tags":["Admin · Establishments"],"security":[{"admin":[]}]},"delete":{"operationId":"AppAccounts_revokeSessions","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokedCountDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Sign out all its devices","tags":["Admin · Establishments"],"security":[{"admin":[]}]}},"/v1/admin/establishments/{id}/sessions/{sessionId}":{"delete":{"operationId":"AppAccounts_revokeSession","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"sessionId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"The device was signed out."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Sign out one of its devices","tags":["Admin · Establishments"],"security":[{"admin":[]}]}},"/v1/admin/employees/{id}/ratings":{"get":{"description":"Every rating establishments gave the employee after a job ended, newest first, with the establishment and the job (deleted employees are not found). The average and count are on the employee (`cv.rating`).","operationId":"AdminEmployeeProfile_ratings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeRatingPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"An employee's ratings","tags":["Admin · Employees"],"security":[{"admin":[]}]}},"/v1/admin/establishments/{id}/subscriptions":{"get":{"description":"Every subscription, current and past, newest start first (deleted establishments are not found).","operationId":"AdminEstablishmentProfile_subscriptions","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"An establishment's subscriptions","tags":["Admin · Establishments"],"security":[{"admin":[]}]}},"/v1/admin/statistics/overview":{"get":{"description":"Accounts, subscriptions, new contact messages, revenue, running subscriptions per package and job posts. \"This month\" is the Saudi calendar month. Cached for a minute.","operationId":"Statistics_overview","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverviewDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Dashboard numbers","tags":["Admin · Statistics"],"security":[{"admin":[]}]}},"/v1/admin/statistics/sign-ups":{"get":{"description":"Employee and establishment accounts that still exist (deleted ones leave the chart, as they leave the lists) per day, week (Sunday to Saturday) or month of their sign-up on the Saudi calendar, every bucket included. Up to 366 days, 104 weeks or 36 months. Cached for a minute.","operationId":"Statistics_signUps","parameters":[{"name":"interval","required":true,"in":"query","description":"Bucket size; weeks start on Sunday.","schema":{"default":"day","example":"day","type":"string","enum":["month","day","week"]}},{"name":"from","required":false,"in":"query","description":"First day, inclusive (Saudi date). Defaults to 29 days, 11 weeks or 11\nmonths before `to`.","schema":{"example":"2026-09-01","type":"string"}},{"name":"to","required":false,"in":"query","description":"Last day, inclusive (Saudi date). Defaults to today.","schema":{"example":"2026-09-30","type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignUpsDto"}}}},"400":{"description":"STATISTICS_RANGE_INVALID, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"STATISTICS_RANGE_INVALID":{"value":{"code":"STATISTICS_RANGE_INVALID","message":"Invalid range: the start must not be after the end, and it can cover at most 366 days, 104 weeks or 36 months","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Sign-ups over time","tags":["Admin · Statistics"],"security":[{"admin":[]}]}},"/v1/admin/statistics/jobs":{"get":{"description":"Jobs published per month of `year` (default: this Saudi year), or per day of `month` when given, on the Saudi calendar. Every bucket is included, zeros too. Cached for a minute.","operationId":"Statistics_jobs","parameters":[{"name":"year","required":false,"in":"query","description":"Defaults to this Saudi year.","schema":{"minimum":2020,"maximum":2100,"example":2026,"type":"number"}},{"name":"month","required":false,"in":"query","description":"One month's days instead of the year's months.","schema":{"minimum":1,"maximum":12,"example":9,"type":"number"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsSeriesDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Jobs over time","tags":["Admin · Statistics"],"security":[{"admin":[]}]}},"/v1/admin/packages":{"get":{"description":"Every package in display order (not paged, for reordering). `q` searches both names.","operationId":"AdminPackages_list","parameters":[{"name":"q","required":false,"in":"query","description":"Searches both names.","schema":{"maxLength":100,"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["active","disabled"]}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageListDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List packages","tags":["Admin · Packages"],"security":[{"admin":[]}]},"post":{"description":"Price in SAR with VAT included (at most 2 decimals; 0 for free). Added at the end and disabled until you activate it.","operationId":"AdminPackages_create","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePackageDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"PACKAGE_NAME_TAKEN","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"PACKAGE_NAME_TAKEN":{"value":{"code":"PACKAGE_NAME_TAKEN","message":"Another package already has this name","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Add a package","tags":["Admin · Packages"],"security":[{"admin":[]}]}},"/v1/admin/packages/order":{"put":{"description":"Send every package’s id once, in the new order.","operationId":"AdminPackages_reorder","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageListDto"}}}},"400":{"description":"PACKAGE_ORDER_MISMATCH, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"PACKAGE_ORDER_MISMATCH":{"value":{"code":"PACKAGE_ORDER_MISMATCH","message":"The new order must list every package exactly once. Refresh and try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Reorder packages","tags":["Admin · Packages"],"security":[{"admin":[]}]}},"/v1/admin/packages/{id}":{"get":{"operationId":"AdminPackages_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"View a package","tags":["Admin · Packages"],"security":[{"admin":[]}]},"patch":{"description":"The provider app shows the change immediately.","operationId":"AdminPackages_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePackageDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"PACKAGE_NAME_TAKEN","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"PACKAGE_NAME_TAKEN":{"value":{"code":"PACKAGE_NAME_TAKEN","message":"Another package already has this name","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Edit a package","tags":["Admin · Packages"],"security":[{"admin":[]}]},"delete":{"description":"Refused with `PACKAGE_IN_USE` once it has subscriptions; deactivate it instead.","operationId":"AdminPackages_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"The package was deleted."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"PACKAGE_IN_USE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"PACKAGE_IN_USE":{"value":{"code":"PACKAGE_IN_USE","message":"This package has subscriptions and can't be deleted. Deactivate it instead","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Delete a package","tags":["Admin · Packages"],"security":[{"admin":[]}]}},"/v1/admin/packages/{id}/status":{"patch":{"description":"Only active packages are listed in the provider app.","operationId":"AdminPackages_setStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeStatusDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Activate or deactivate a package","tags":["Admin · Packages"],"security":[{"admin":[]}]}},"/v1/admin/contact-messages":{"get":{"description":"Newest first. `q` searches name, email, mobile and text; `from`/`to` bound the sending date.","operationId":"AdminContact_list","parameters":[{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"name":"read","required":false,"in":"query","description":"Read status.","schema":{"type":"string","enum":["read","unread"]}},{"name":"reply","required":false,"in":"query","description":"Reply status.","schema":{"type":"string","enum":["replied","not_replied"]}},{"name":"type","required":false,"in":"query","schema":{"type":"string","enum":["other","request","suggestion","inquiry","complaint"]}},{"name":"app","required":false,"in":"query","description":"The app it was sent from.","schema":{"type":"string","enum":["employee","establishment"]}},{"name":"from","required":false,"in":"query","description":"Sent at or after (ISO date or date-time).","schema":{"format":"date-time","example":"2026-09-01","type":"string"}},{"name":"to","required":false,"in":"query","description":"Sent before (ISO date or date-time; a date means its start).","schema":{"format":"date-time","example":"2026-10-01","type":"string"}},{"name":"q","required":false,"in":"query","description":"Case-insensitive text to look for.","schema":{"maxLength":100,"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactMessagePageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Search messages","tags":["Admin · Contact messages"],"security":[{"admin":[]}]}},"/v1/admin/contact-messages/{id}":{"get":{"description":"With its replies, oldest first. A new message becomes read.","operationId":"AdminContact_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactMessageDetailDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Open a message","tags":["Admin · Contact messages"],"security":[{"admin":[]}]}},"/v1/admin/contact-messages/{id}/replies":{"post":{"description":"The one reply a message gets: emails it to the sender in the language they wrote in (with their message quoted) and marks the message replied. If the email fails nothing is saved and `MAIL_UNAVAILABLE` is returned, so it can be sent again.","operationId":"AdminContact_reply","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactReplyDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"CONTACT_MESSAGE_REPLIED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"CONTACT_MESSAGE_REPLIED":{"value":{"code":"CONTACT_MESSAGE_REPLIED","message":"This message has already been replied to","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"503":{"description":"MAIL_UNAVAILABLE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"MAIL_UNAVAILABLE":{"value":{"code":"MAIL_UNAVAILABLE","message":"The email couldn't be sent, so the reply wasn't saved. Try again later","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Reply by email","tags":["Admin · Contact messages"],"security":[{"admin":[]}]}},"/v1/admin/settings":{"get":{"description":"Every setting with its current value (or default).","operationId":"AdminSettings_list","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingListDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List settings","tags":["Admin · Settings"],"security":[{"admin":[]}]}},"/v1/admin/settings/contact-channels":{"put":{"description":"Replaces the whole value: send every channel; a missing or `null` one is hidden in the apps, which show the change immediately.","operationId":"AdminSettings_saveContactChannels","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactChannelsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Save contact channels","tags":["Admin · Settings"],"security":[{"admin":[]}]}},"/v1/admin/settings/app-links":{"put":{"description":"Replaces the whole value; missing links are cleared.","operationId":"AdminSettings_saveAppLinks","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppLinksDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Save app store links","tags":["Admin · Settings"],"security":[{"admin":[]}]}},"/v1/admin/settings/jobs":{"put":{"description":"How long an open-ended job is listed (`defaultPublicationDays`, 1–365) and how many reports block a job automatically (`autoBlockThreshold`, 1–1000). Replaces the whole value; a missing field goes back to its default. Applies to jobs posted from now on.","operationId":"AdminSettings_saveJobs","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSettingsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Save the jobs settings","tags":["Admin · Settings"],"security":[{"admin":[]}]}},"/v1/admin/auth/login":{"post":{"description":"Signs in with email and password. After 5 failed attempts for an email (or 20 from one IP) within 15 minutes, logins answer `TOO_MANY_REQUESTS` until the window ends.","operationId":"AdminSignIn_login","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminLoginDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSessionDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"INVALID_CREDENTIALS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INVALID_CREDENTIALS":{"value":{"code":"INVALID_CREDENTIALS","message":"The email or password is incorrect","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"403":{"description":"ACCOUNT_DISABLED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"ACCOUNT_DISABLED":{"value":{"code":"ACCOUNT_DISABLED","message":"This account has been deactivated. Contact support for help","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"TOO_MANY_REQUESTS":{"value":{"code":"TOO_MANY_REQUESTS","message":"Too many requests, please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Log in","tags":["Admin · Auth"],"x-public":true,"x-session-token":{"namespace":"admin","field":"accessToken"},"security":[]}},"/v1/admin/auth/forgot-password":{"post":{"description":"Emails a 4-digit code, valid for 10 minutes, to an active admin. A new code can be requested after `resendAfterSeconds`; it replaces the previous one. Always answers the same, whether or not the email belongs to an admin.","operationId":"AdminSignIn_forgotPassword","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordDto"}}}},"responses":{"202":{"description":"If the email is an active admin’s, a code is on its way.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordResponseDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Email a password reset code","tags":["Admin · Auth"],"x-public":true,"security":[]}},"/v1/admin/auth/verify-reset-code":{"post":{"description":"A right code returns a one-time `resetToken` for `POST /auth/reset-password`, valid for 10 minutes. Five wrong tries end the code.","operationId":"AdminSignIn_verifyResetCode","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyResetCodeDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetTokenDto"}}}},"400":{"description":"RESET_CODE_INVALID, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"RESET_CODE_INVALID":{"value":{"code":"RESET_CODE_INVALID","message":"The code is wrong or has expired. Request a new one if needed","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"TOO_MANY_REQUESTS":{"value":{"code":"TOO_MANY_REQUESTS","message":"Too many requests, please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Check a password reset code","tags":["Admin · Auth"],"x-public":true,"security":[]}},"/v1/admin/auth/reset-password":{"post":{"description":"Uses the `resetToken` from a verified code, once. Every session of the admin is signed out; they log in with the new password.","operationId":"AdminSignIn_resetPassword","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordDto"}}}},"responses":{"204":{"description":"The password was changed."},"400":{"description":"RESET_TOKEN_INVALID, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"RESET_TOKEN_INVALID":{"value":{"code":"RESET_TOKEN_INVALID","message":"This password reset has expired. Start again and request a new code","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Set a new password","tags":["Admin · Auth"],"x-public":true,"security":[]}},"/v1/admin/auth/me":{"get":{"description":"The signed-in admin with their role and permissions, for building the dashboard menu.","operationId":"AdminSignIn_me","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Current admin","tags":["Admin · Auth"],"security":[{"admin":[]}]}},"/v1/admin/auth/permissions":{"get":{"description":"Every permission a role can grant, grouped by dashboard area, with labels in the request language.","operationId":"AdminSignIn_permissions","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionCatalogueDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Permission catalogue","tags":["Admin · Auth"],"security":[{"admin":[]}]}},"/v1/admin/auth/logout":{"post":{"description":"Ends the session of the token sent. The token stops working immediately.","operationId":"AdminAuth_logout","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"Signed out."},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Sign out","tags":["Admin · Auth"],"security":[{"admin":[]}]}},"/v1/admin/auth/sessions":{"get":{"description":"Your live sessions, most recently used first. `current` marks this device.","operationId":"AdminAuth_list","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionListDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List signed-in devices","tags":["Admin · Auth"],"security":[{"admin":[]}]},"delete":{"description":"Ends every session except the one making this request.","operationId":"AdminAuth_revokeOthers","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokedCountDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Sign out all other devices","tags":["Admin · Auth"],"security":[{"admin":[]}]}},"/v1/admin/auth/sessions/{id}":{"delete":{"description":"Ends one of your sessions; that device is signed out on its next request. Using the current session id works like signing out.","operationId":"AdminAuth_revokeOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"The device was signed out."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Sign out one device","tags":["Admin · Auth"],"security":[{"admin":[]}]}},"/v1/admin/profile":{"get":{"operationId":"Profile_get","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Your profile","tags":["Admin · Profile"],"security":[{"admin":[]}]},"patch":{"description":"Name, language, avatar (an uploaded `admin_avatar` file, or `null`), and email: changing the email needs `currentPassword`. After 5 wrong passwords in 15 minutes, `TOO_MANY_REQUESTS`.","operationId":"Profile_update","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDto"}}}},"400":{"description":"PASSWORD_INCORRECT, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"PASSWORD_INCORRECT":{"value":{"code":"PASSWORD_INCORRECT","message":"Your current password is incorrect","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"EMAIL_TAKEN, MOBILE_TAKEN, CONFLICT","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"EMAIL_TAKEN":{"value":{"code":"EMAIL_TAKEN","message":"This email is already used by another admin","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"MOBILE_TAKEN":{"value":{"code":"MOBILE_TAKEN","message":"This mobile number is already used by another admin","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"CONFLICT":{"value":{"code":"CONFLICT","message":"The request conflicts with existing data","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"429":{"description":"TOO_MANY_REQUESTS","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"TOO_MANY_REQUESTS":{"value":{"code":"TOO_MANY_REQUESTS","message":"Too many requests, please try again shortly","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Edit your profile","tags":["Admin · Profile"],"security":[{"admin":[]}]}},"/v1/admin/profile/password":{"post":{"description":"No current password is needed (as in the BRD). Signs out all your other devices; this one stays signed in. Open reset codes stop working.","operationId":"Profile_changePassword","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordDto"}}}},"responses":{"204":{"description":"The password was changed."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Change your password","tags":["Admin · Profile"],"security":[{"admin":[]}]}},"/v1/admin/admins":{"get":{"description":"Pages of admins, newest first. `q` searches name and email.","operationId":"Admins_list","parameters":[{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"name":"status","required":false,"in":"query","description":"Only admins with this status.","schema":{"type":"string","enum":["active","disabled"]}},{"name":"roleId","required":false,"in":"query","description":"Only admins with this role.","schema":{"format":"uuid","type":"string"}},{"name":"q","required":false,"in":"query","description":"Case-insensitive text to look for.","schema":{"maxLength":100,"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Search admins","tags":["Admin · Admins"],"security":[{"admin":[]}]},"post":{"description":"Sets the first password, which you share with the new admin. The Super Admin role belongs to the one super admin and can’t be given; a role with every permission can.","operationId":"Admins_create","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdminDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"EMAIL_TAKEN, MOBILE_TAKEN, SUPER_ADMIN_ROLE_RESERVED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"EMAIL_TAKEN":{"value":{"code":"EMAIL_TAKEN","message":"This email is already used by another admin","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"MOBILE_TAKEN":{"value":{"code":"MOBILE_TAKEN","message":"This mobile number is already used by another admin","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"SUPER_ADMIN_ROLE_RESERVED":{"value":{"code":"SUPER_ADMIN_ROLE_RESERVED","message":"The Super Admin role belongs to one account. Choose another role; it can include every permission","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Add an admin","tags":["Admin · Admins"],"security":[{"admin":[]}]}},"/v1/admin/admins/{id}":{"get":{"operationId":"Admins_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"View an admin","tags":["Admin · Admins"],"security":[{"admin":[]}]},"patch":{"description":"A new password signs the admin out everywhere. You can’t change your own role, nobody can be given the Super Admin role, and only the super admin can edit their own account.","operationId":"Admins_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdminDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"EMAIL_TAKEN, MOBILE_TAKEN, SELF_CHANGE_NOT_ALLOWED, SUPER_ADMIN_PROTECTED, SUPER_ADMIN_ROLE_RESERVED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"EMAIL_TAKEN":{"value":{"code":"EMAIL_TAKEN","message":"This email is already used by another admin","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"MOBILE_TAKEN":{"value":{"code":"MOBILE_TAKEN","message":"This mobile number is already used by another admin","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"SELF_CHANGE_NOT_ALLOWED":{"value":{"code":"SELF_CHANGE_NOT_ALLOWED","message":"You can't do this to your own account or role","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"SUPER_ADMIN_PROTECTED":{"value":{"code":"SUPER_ADMIN_PROTECTED","message":"The super admin's account can't be edited, deactivated or deleted","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"SUPER_ADMIN_ROLE_RESERVED":{"value":{"code":"SUPER_ADMIN_ROLE_RESERVED","message":"The Super Admin role belongs to one account. Choose another role; it can include every permission","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Edit an admin","tags":["Admin · Admins"],"security":[{"admin":[]}]},"delete":{"description":"Signs the admin out and removes them from the dashboard; their email can be used again. The super admin can’t be deleted.","operationId":"Admins_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"The admin was deleted."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"SELF_CHANGE_NOT_ALLOWED, SUPER_ADMIN_PROTECTED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"SELF_CHANGE_NOT_ALLOWED":{"value":{"code":"SELF_CHANGE_NOT_ALLOWED","message":"You can't do this to your own account or role","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"SUPER_ADMIN_PROTECTED":{"value":{"code":"SUPER_ADMIN_PROTECTED","message":"The super admin's account can't be edited, deactivated or deleted","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Delete an admin","tags":["Admin · Admins"],"security":[{"admin":[]}]}},"/v1/admin/admins/{id}/status":{"patch":{"description":"Deactivating signs the admin out immediately. The super admin can’t be deactivated.","operationId":"Admins_setStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeStatusDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"SELF_CHANGE_NOT_ALLOWED, SUPER_ADMIN_PROTECTED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"SELF_CHANGE_NOT_ALLOWED":{"value":{"code":"SELF_CHANGE_NOT_ALLOWED","message":"You can't do this to your own account or role","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"SUPER_ADMIN_PROTECTED":{"value":{"code":"SUPER_ADMIN_PROTECTED","message":"The super admin's account can't be edited, deactivated or deleted","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Activate or deactivate an admin","tags":["Admin · Admins"],"security":[{"admin":[]}]}},"/v1/admin/roles":{"get":{"description":"Pages of roles, the Super Admin role first, then newest. `q` searches both names.","operationId":"Roles_list","parameters":[{"name":"page","required":true,"in":"query","description":"1-based page number.","schema":{"minimum":1,"default":1,"example":1,"type":"number"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–100).","schema":{"minimum":1,"maximum":100,"default":20,"example":20,"type":"number"}},{"name":"status","required":false,"in":"query","description":"Only roles with this status.","schema":{"type":"string","enum":["active","disabled"]}},{"name":"q","required":false,"in":"query","description":"Case-insensitive text to look for.","schema":{"maxLength":100,"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolePageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Search roles","tags":["Admin · Roles"],"security":[{"admin":[]}]},"post":{"description":"Permissions come from `GET /v1/admin/auth/permissions`. Only super admins can grant permissions they don’t have themselves.","operationId":"Roles_create","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRoleDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"403":{"description":"FORBIDDEN","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"FORBIDDEN":{"value":{"code":"FORBIDDEN","message":"You don't have permission to do this","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"ROLE_NAME_TAKEN","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"ROLE_NAME_TAKEN":{"value":{"code":"ROLE_NAME_TAKEN","message":"Another role already has this name","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Add a role","tags":["Admin · Roles"],"security":[{"admin":[]}]}},"/v1/admin/roles/{id}":{"get":{"operationId":"Roles_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"View a role","tags":["Admin · Roles"],"security":[{"admin":[]}]},"patch":{"description":"Its admins get the new permissions on their next request. The Super Admin role and your own role can’t be edited.","operationId":"Roles_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRoleDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"403":{"description":"FORBIDDEN","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"FORBIDDEN":{"value":{"code":"FORBIDDEN","message":"You don't have permission to do this","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"ROLE_NAME_TAKEN, SYSTEM_ROLE_LOCKED, SELF_CHANGE_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"ROLE_NAME_TAKEN":{"value":{"code":"ROLE_NAME_TAKEN","message":"Another role already has this name","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"SYSTEM_ROLE_LOCKED":{"value":{"code":"SYSTEM_ROLE_LOCKED","message":"The Super Admin role can't be changed or deleted","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"SELF_CHANGE_NOT_ALLOWED":{"value":{"code":"SELF_CHANGE_NOT_ALLOWED","message":"You can't do this to your own account or role","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Edit a role","tags":["Admin · Roles"],"security":[{"admin":[]}]},"delete":{"description":"Refused while admins use it: move them to another role first.","operationId":"Roles_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"The role was deleted."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"ROLE_IN_USE, SYSTEM_ROLE_LOCKED, SELF_CHANGE_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"ROLE_IN_USE":{"value":{"code":"ROLE_IN_USE","message":"This role can't be deleted: {count} admins use it. Move them to another role first","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"SYSTEM_ROLE_LOCKED":{"value":{"code":"SYSTEM_ROLE_LOCKED","message":"The Super Admin role can't be changed or deleted","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"SELF_CHANGE_NOT_ALLOWED":{"value":{"code":"SELF_CHANGE_NOT_ALLOWED","message":"You can't do this to your own account or role","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Delete a role","tags":["Admin · Roles"],"security":[{"admin":[]}]}},"/v1/admin/roles/{id}/status":{"patch":{"description":"A deactivated role grants nothing to its admins.","operationId":"Roles_setStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeStatusDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"409":{"description":"SYSTEM_ROLE_LOCKED, SELF_CHANGE_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"SYSTEM_ROLE_LOCKED":{"value":{"code":"SYSTEM_ROLE_LOCKED","message":"The Super Admin role can't be changed or deleted","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"SELF_CHANGE_NOT_ALLOWED":{"value":{"code":"SELF_CHANGE_NOT_ALLOWED","message":"You can't do this to your own account or role","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Activate or deactivate a role","tags":["Admin · Roles"],"security":[{"admin":[]}]}},"/v1/admin/content/pages":{"get":{"description":"About, Terms, Privacy and the contact text, in both languages.","operationId":"AdminContent_listPages","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageListDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List pages","tags":["Admin · Content"],"security":[{"admin":[]}]}},"/v1/admin/content/pages/{key}":{"get":{"operationId":"AdminContent_getPage","parameters":[{"name":"key","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"View a page","tags":["Admin · Content"],"security":[{"admin":[]}]},"put":{"description":"Content is rich text (HTML, e.g. Tiptap’s `getHTML()`), sanitized on save: see the README for what’s kept. The apps show the change immediately.","operationId":"AdminContent_savePage","parameters":[{"name":"key","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePageDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Save a page","tags":["Admin · Content"],"security":[{"admin":[]}]}},"/v1/admin/content/faqs":{"get":{"description":"Every entry in display order (not paged, for the reorder screen). `q` searches questions and answers.","operationId":"AdminContent_listFaqs","parameters":[{"name":"q","required":false,"in":"query","description":"Case-insensitive text to look for in questions and answers.","schema":{"maxLength":100,"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaqListDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List FAQ entries","tags":["Admin · Content"],"security":[{"admin":[]}]},"post":{"description":"Added at the end. Answers are sanitized rich text.","operationId":"AdminContent_createFaq","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFaqDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaqDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Add an FAQ entry","tags":["Admin · Content"],"security":[{"admin":[]}]}},"/v1/admin/content/faqs/order":{"put":{"description":"Send every entry’s id once, in the new order.","operationId":"AdminContent_reorderFaqs","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaqListDto"}}}},"400":{"description":"FAQ_ORDER_MISMATCH, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"FAQ_ORDER_MISMATCH":{"value":{"code":"FAQ_ORDER_MISMATCH","message":"The new order must list every FAQ exactly once. Refresh and try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Reorder the FAQ","tags":["Admin · Content"],"security":[{"admin":[]}]}},"/v1/admin/content/faqs/{id}":{"get":{"operationId":"AdminContent_getFaq","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaqDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"View an FAQ entry","tags":["Admin · Content"],"security":[{"admin":[]}]},"patch":{"operationId":"AdminContent_updateFaq","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFaqDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaqDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Edit an FAQ entry","tags":["Admin · Content"],"security":[{"admin":[]}]},"delete":{"operationId":"AdminContent_deleteFaq","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":"The entry was deleted."},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Delete an FAQ entry","tags":["Admin · Content"],"security":[{"admin":[]}]}},"/v1/admin/cities":{"get":{"description":"Saudi cities a job can be located in, each with its region, sorted by name in the request language.","operationId":"AdminCities_list","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CityListDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"List cities","tags":["Admin · Cities"],"security":[{"admin":[]}]}},"/v1/admin/files":{"post":{"description":"Send the file as multipart/form-data in the `file` field. Its type is checked from its bytes. Then pass the returned `id` to the endpoint that uses it; files unused after 24 hours are deleted.\n\n- `establishment_logo`: PNG, JPG, WEBP, up to 2 MB, public\n- `admin_avatar`: PNG, JPG, WEBP, up to 10 MB, public\n- `package_image`: PNG, JPG, WEBP, up to 10 MB, public","operationId":"AdminFiles_upload","parameters":[{"name":"purpose","required":true,"in":"query","schema":{"enum":["establishment_logo","admin_avatar","package_image"],"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDto"}}}},"400":{"description":"FILE_REQUIRED, VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"FILE_REQUIRED":{"value":{"code":"FILE_REQUIRED","message":"No file was attached","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"413":{"description":"FILE_TOO_LARGE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"FILE_TOO_LARGE":{"value":{"code":"FILE_TOO_LARGE","message":"The file is larger than allowed ({maxMb} MB at most)","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"415":{"description":"FILE_TYPE_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"FILE_TYPE_NOT_ALLOWED":{"value":{"code":"FILE_TYPE_NOT_ALLOWED","message":"This file type isn't supported. Allowed: {allowed}","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Upload a file","tags":["Admin · Files"],"security":[{"admin":[]}]}},"/v1/admin/realtime/ticket":{"post":{"description":"For the dashboard's server to call with its session: the browser connects to `/admin` on path `/realtime` with `auth: { ticket }`, so the session token never reaches it. Each ticket works once, within 60 seconds.","operationId":"AdminRealtime_issue","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RealtimeTicketDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"503":{"description":"REALTIME_UNAVAILABLE","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"REALTIME_UNAVAILABLE":{"value":{"code":"REALTIME_UNAVAILABLE","message":"Live updates are unavailable right now. Refresh to see changes","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Get a socket ticket","tags":["Admin · Realtime"],"security":[{"admin":[]}]}},"/v1/admin/notifications":{"get":{"description":"Newest first, in the request language. Pages by cursor: pass the previous `nextCursor` as `cursor` (null means the last page). New ones also arrive live as `notification.new` on the realtime socket.","operationId":"AdminNotification_list","parameters":[{"name":"cursor","required":false,"in":"query","description":"From the previous page's `nextCursor`; omit for the first page.","schema":{"maxLength":200,"type":"string"}},{"name":"limit","required":true,"in":"query","description":"Items per page (1–50).","schema":{"minimum":1,"maximum":50,"default":20,"example":20,"type":"number"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPageDto"}}}},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"My notifications","tags":["Admin · Notifications"],"security":[{"admin":[]}]}},"/v1/admin/notifications/unread-count":{"get":{"description":"For the bell badge. Updates arrive live as `unread.counts` on the realtime socket.","operationId":"AdminNotification_unreadCount","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnreadCountDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Unread count","tags":["Admin · Notifications"],"security":[{"admin":[]}]}},"/v1/admin/notifications/{id}/read":{"post":{"description":"Idempotent. Other devices get the new count live.","operationId":"AdminNotification_markRead","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"204":{"description":""},"400":{"description":"VALIDATION_FAILED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"VALIDATION_FAILED":{"value":{"code":"VALIDATION_FAILED","message":"The request data is invalid","details":[{"field":"name","message":"Must not be empty"}],"requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"404":{"description":"NOT_FOUND","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"NOT_FOUND":{"value":{"code":"NOT_FOUND","message":"The requested item was not found","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Mark one read","tags":["Admin · Notifications"],"security":[{"admin":[]}]}},"/v1/admin/notifications/read-all":{"post":{"operationId":"AdminNotification_markAllRead","parameters":[{"$ref":"#/components/parameters/AcceptLanguage"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadAllDto"}}}},"401":{"description":"UNAUTHORIZED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"UNAUTHORIZED":{"value":{"code":"UNAUTHORIZED","message":"Please sign in to continue","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}},"500":{"description":"INTERNAL_ERROR","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"INTERNAL_ERROR":{"value":{"code":"INTERNAL_ERROR","message":"Something went wrong, please try again","requestId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}}}}},"summary":"Mark all read","tags":["Admin · Notifications"],"security":[{"admin":[]}]}}},"info":{"title":"Motaah API","description":"One API for the three Motaah clients: the employee app (`/v1/employee`), the establishment app (`/v1/establishment`), and the admin dashboard (`/v1/admin`).\n\n**Authentication.** Each namespace has its own opaque session token, sent as `Authorization: Bearer <token>`. Tokens are revocable server-side; a token from one namespace is rejected by the others. A refused token gets `401 UNAUTHORIZED`, except an app token whose account an admin deactivated: it gets `403 ACCOUNT_DISABLED`, whose `message` quotes the admin's reason; sign the user out and show it.\n\n**Errors.** Every error has the same shape: `{ code, message, details?, requestId }`. Branch on `code`, which is stable; `message` is translated for display. `details` lists field problems for `VALIDATION_FAILED`.\n\n**Language.** Messages are Arabic by default. Send `Accept-Language: en` (or `?lang=en`) for English. Responses carry `Content-Language`.\n\n**Request IDs.** Every response has an `X-Request-Id` header; quote it when reporting a problem.\n\n**Realtime.** Live events come over Socket.IO, not REST: connect to the API host with `path: '/realtime'`, `transports: ['websocket']`, and the namespace as the Socket.IO namespace (`/employee`, `/establishment`, `/admin`). The apps send `auth: { token, lang? }` with their session token; the dashboard sends `auth: { ticket }` from `POST /v1/admin/realtime/ticket`, so its token never reaches the browser. A refused connection gets `connect_error` with `err.data = { code, message }` (`UNAUTHORIZED`, `ACCOUNT_DISABLED`). The employee app connects without a session as a guest with `auth: { guest: true }`: it only receives broadcasts (at most a few per address, then `TOO_MANY_REQUESTS`). Whenever something a screen may show changes, sockets that may show it receive `data.changed { resource, id? }` (`jobs`, `report-reasons`, `content`, `settings`, `packages`, `establishments`, `employees`, `applications`, `subscriptions`, and for admins `contact-messages`, `broadcasts`, `admins`, `roles`): refetch what shows it; the event carries no data. When a session ends, the socket receives `session.ended { reason }` and is closed; reconnect after signing in again. New notifications arrive as `notification.new` (in both languages; show your own), and badge numbers as `unread.counts { notifications }`. Events reach every device of the account; a client that was offline refetches on reconnect.","version":"0.0.1","contact":{}},"tags":[{"name":"Employee · Account"},{"name":"Employee · Applications"},{"name":"Employee · Assistant"},{"name":"Employee · Auth"},{"name":"Employee · Chat"},{"name":"Employee · Cities"},{"name":"Employee · Contact"},{"name":"Employee · Content"},{"name":"Employee · Devices"},{"name":"Employee · Files"},{"name":"Employee · Jobs"},{"name":"Employee · Notifications"},{"name":"Employee · Profile"},{"name":"Employee · Report reasons"},{"name":"Employee · Settings"},{"name":"Establishment · Account"},{"name":"Establishment · Applicants"},{"name":"Establishment · Auth"},{"name":"Establishment · Chat"},{"name":"Establishment · Cities"},{"name":"Establishment · Contact"},{"name":"Establishment · Content"},{"name":"Establishment · Devices"},{"name":"Establishment · Files"},{"name":"Establishment · Home"},{"name":"Establishment · Jobs"},{"name":"Establishment · Notifications"},{"name":"Establishment · Packages"},{"name":"Establishment · Profile"},{"name":"Establishment · Settings"},{"name":"Establishment · Subscriptions"},{"name":"Admin · Admins"},{"name":"Admin · Auth"},{"name":"Admin · Cities"},{"name":"Admin · Contact messages"},{"name":"Admin · Content"},{"name":"Admin · Conversations"},{"name":"Admin · Employees"},{"name":"Admin · Establishments"},{"name":"Admin · Files"},{"name":"Admin · Finance"},{"name":"Admin · Jobs"},{"name":"Admin · Notifications"},{"name":"Admin · Notifications management"},{"name":"Admin · Packages"},{"name":"Admin · Profile"},{"name":"Admin · Realtime"},{"name":"Admin · Report reasons"},{"name":"Admin · Reports"},{"name":"Admin · Roles"},{"name":"Admin · Settings"},{"name":"Admin · Statistics"},{"name":"System"}],"servers":[],"components":{"securitySchemes":{"employee":{"scheme":"bearer","bearerFormat":"opaque session token","type":"http","description":"Session token from the employee sign-in."},"establishment":{"scheme":"bearer","bearerFormat":"opaque session token","type":"http","description":"Session token from the establishment sign-in."},"admin":{"scheme":"bearer","bearerFormat":"opaque session token","type":"http","description":"Session token from the admin sign-in."}},"schemas":{"DependencyCheckDto":{"type":"object","properties":{"status":{"type":"string","description":"Whether the dependency answered within the timeout.","example":"up","enum":["up","down"]},"latencyMs":{"type":"number","description":"How long the check took, in milliseconds.","example":1.8}},"required":["status","latencyMs"]},"HealthChecksDto":{"type":"object","properties":{"database":{"description":"Postgres (`select 1`). The API can't serve requests without it.","allOf":[{"$ref":"#/components/schemas/DependencyCheckDto"}]},"cache":{"description":"Redis (`PING`). Without it the API still works, uncached.","allOf":[{"$ref":"#/components/schemas/DependencyCheckDto"}]}},"required":["database","cache"]},"HealthResponseDto":{"type":"object","properties":{"status":{"description":"`ok` when everything is up; `degraded` when only the cache is down\n(still 200); `down` when the database is down (503).","example":"ok","enum":["ok","down","degraded"],"type":"string"},"checks":{"$ref":"#/components/schemas/HealthChecksDto"},"sms":{"description":"Present when SMS is faked (no messages sent, every code is 1234), so a\nstaging server is easy to recognise.","example":"fake","enum":["fake"],"type":"string"},"mail":{"description":"Present when email is faked (nothing is sent, so password reset codes\nnever arrive).","example":"fake","enum":["fake"],"type":"string"},"ai":{"description":"Present when the assistant's model is faked (sample replies).","example":"fake","enum":["fake"],"type":"string"}},"required":["status","checks"]},"LivenessResponseDto":{"type":"object","properties":{"status":{"type":"string","description":"Always `ok` while the process is serving requests.","example":"ok","enum":["ok"]}},"required":["status"]},"SuggestedQuestionDto":{"type":"object","properties":{"key":{"type":"string","example":"improveCv"},"text":{"type":"string","description":"In the request language; send it as the message.","example":"How can I improve my CV?"}},"required":["key","text"]},"AssistantLimitDto":{"type":"object","properties":{"perDay":{"type":"number","example":30},"remaining":{"type":"number","example":27},"resetsAt":{"format":"date-time","type":"string","description":"When the count starts again (midnight in Saudi Arabia)."}},"required":["perDay","remaining","resetsAt"]},"AssistantDto":{"type":"object","properties":{"suggestedQuestions":{"type":"array","items":{"$ref":"#/components/schemas/SuggestedQuestionDto"}},"limit":{"$ref":"#/components/schemas/AssistantLimitDto"}},"required":["suggestedQuestions","limit"]},"ConversationSummaryDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"title":{"type":"string","description":"The first question, shortened.","example":"How can I improve my CV?"},"updatedAt":{"format":"date-time","type":"string","description":"When the last message was added."}},"required":["id","title","updatedAt"]},"ConversationPageDto":{"type":"object","properties":{"items":{"description":"The latest active first.","type":"array","items":{"$ref":"#/components/schemas/ConversationSummaryDto"}},"page":{"type":"number","example":1},"limit":{"type":"number","example":20},"total":{"type":"number","example":4}},"required":["items","page","limit","total"]},"AskAssistantDto":{"type":"object","properties":{"message":{"type":"string","description":"1–2,000 characters.","example":"How can I improve my CV?","minLength":1,"maxLength":2000}},"required":["message"]},"ChatMessageDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"role":{"type":"string","example":"assistant","enum":["user","assistant"]},"content":{"type":"string","example":"Keep it clear and concise, and add measurable achievements."},"createdAt":{"format":"date-time","type":"string"}},"required":["id","role","content","createdAt"]},"NewConversationDto":{"type":"object","properties":{"conversation":{"$ref":"#/components/schemas/ConversationSummaryDto"},"messages":{"description":"Your question and the answer.","type":"array","items":{"$ref":"#/components/schemas/ChatMessageDto"}}},"required":["conversation","messages"]},"ConversationDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"counterpart":{"$ref":"#/components/schemas/ChatCounterpartDto"},"application":{"$ref":"#/components/schemas/ChatApplicationDto"},"job":{"$ref":"#/components/schemas/ChatJobDto"},"lastMessage":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/LastMessageDto"}]},"unreadCount":{"type":"number","description":"Messages from the other side I haven't read.","example":2},"closed":{"type":"boolean","description":"Read-only: the application was rejected, withdrawn or its job closed.\nShow the closed note instead of the composer."},"lastActivityAt":{"format":"date-time","type":"string","description":"The last message's time, or when the chat was opened."}},"required":["id","counterpart","application","job","lastMessage","unreadCount","closed","lastActivityAt"]},"ExchangeDto":{"type":"object","properties":{"user":{"description":"The message you sent.","allOf":[{"$ref":"#/components/schemas/ChatMessageDto"}]},"assistant":{"description":"The assistant's answer.","allOf":[{"$ref":"#/components/schemas/ChatMessageDto"}]}},"required":["user","assistant"]},"FileDto":{"type":"object","properties":{"id":{"type":"string","description":"Pass this id to the endpoint that uses the file (profile, logo, …).","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"purpose":{"example":"establishment_logo","enum":["cv","intro_video","establishment_logo","employee_avatar","application_cv","chat_image","chat_file","chat_voice","admin_avatar","package_image"],"type":"string"},"name":{"type":"string","description":"The name the file was uploaded with.","example":"logo.png"},"mimeType":{"type":"string","example":"image/png"},"size":{"type":"number","description":"Size in bytes.","example":48213},"url":{"type":"string","description":"Where to download it. Public files have a permanent URL; private ones\n(CVs, videos) a signed URL that expires at `urlExpiresAt`.","example":"https://api.motaah.sa/files/0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"urlExpiresAt":{"type":"string","description":"When a private file's URL stops working; absent for public files."}},"required":["id","purpose","name","mimeType","size","url"]},"PersonalDto":{"type":"object","properties":{"name":{"type":"string","nullable":true,"example":"سارة العتيبي"},"city":{"type":"string","nullable":true,"example":"الرياض"},"gender":{"type":"string","nullable":true,"example":"female","enum":["male","female"]},"nationality":{"type":"string","nullable":true,"example":"SA"},"email":{"type":"string","nullable":true,"example":"sara@example.com"},"mobile":{"type":"string","description":"The sign-in number (change it through `/account/mobile`).","example":"+966551234567"},"avatar":{"nullable":true,"description":"The profile photo (public URL), or null.","type":"object","allOf":[{"$ref":"#/components/schemas/FileDto"}]}},"required":["name","city","gender","nationality","email","mobile","avatar"]},"ExperienceDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"title":{"type":"string","example":"مهندس برمجيات"},"company":{"type":"string","example":"شركة مطاع"},"employment":{"example":"fullTime","enum":["fullTime","partTime","hourly"],"type":"string"},"startMonth":{"type":"number","example":1},"startYear":{"type":"number","example":2021},"current":{"type":"boolean","description":"Still working there: no end date."},"endMonth":{"type":"number","nullable":true,"description":"Required unless `current`; ignored when it is.","example":6},"endYear":{"type":"number","nullable":true,"description":"Required unless `current`; ignored when it is.","example":2024},"duties":{"type":"string","example":"تطوير واجهات برمجة التطبيقات"}},"required":["id","title","company","employment","startMonth","startYear","current","duties"]},"EducationDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"degree":{"type":"string","example":"بكالوريوس"},"institution":{"type":"string","example":"جامعة الملك سعود"},"specialization":{"type":"string","example":"علوم الحاسب"},"year":{"type":"number","example":2018}},"required":["id","degree","institution","specialization","year"]},"LinkDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"platform":{"example":"LinkedIn","enum":["LinkedIn","GitHub","Portfolio","other"],"type":"string"},"url":{"type":"string","description":"`https://` is added when there's no scheme.","example":"https://linkedin.com/in/sara","maxLength":500}},"required":["id","platform","url"]},"CertificateDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","example":"AWS Solutions Architect"},"issuer":{"type":"string","example":"Amazon"},"month":{"type":"number","example":3},"year":{"type":"number","example":2024}},"required":["id","name","issuer","month","year"]},"LanguageDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"language":{"type":"string","example":"العربية"},"level":{"example":"advanced","enum":["beginner","intermediate","advanced"],"type":"string"}},"required":["id","language","level"]},"LicenseDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","example":"رخصة قيادة"},"issuer":{"type":"string","example":"المرور"},"year":{"type":"number","example":2016}},"required":["id","name","issuer","year"]},"CvCompletionDto":{"type":"object","properties":{"personal":{"type":"boolean","description":"The name is set."},"summary":{"type":"boolean"},"experience":{"type":"boolean"},"education":{"type":"boolean"},"links":{"type":"boolean"},"certificates":{"type":"boolean"},"languages":{"type":"boolean"},"skills":{"type":"boolean"},"licenses":{"type":"boolean"},"cvFile":{"type":"boolean"},"introVideo":{"type":"boolean"}},"required":["personal","summary","experience","education","links","certificates","languages","skills","licenses","cvFile","introVideo"]},"RatingSummaryDto":{"type":"object","properties":{"average":{"type":"number","nullable":true,"description":"Rounded to one decimal; null with no ratings.","example":4.5},"count":{"type":"number","example":2}},"required":["average","count"]},"CvDto":{"type":"object","properties":{"personal":{"$ref":"#/components/schemas/PersonalDto"},"summary":{"type":"string","nullable":true},"experience":{"description":"Current jobs first, then the latest start.","type":"array","items":{"$ref":"#/components/schemas/ExperienceDto"}},"education":{"description":"Latest year first.","type":"array","items":{"$ref":"#/components/schemas/EducationDto"}},"links":{"description":"In the order added.","type":"array","items":{"$ref":"#/components/schemas/LinkDto"}},"certificates":{"description":"Latest first.","type":"array","items":{"$ref":"#/components/schemas/CertificateDto"}},"languages":{"description":"In the order added.","type":"array","items":{"$ref":"#/components/schemas/LanguageDto"}},"skills":{"example":["Node.js","SQL"],"type":"array","items":{"type":"string"}},"licenses":{"description":"Latest year first.","type":"array","items":{"$ref":"#/components/schemas/LicenseDto"}},"cvFile":{"nullable":true,"description":"The CV document, with a signed URL; null when none.","type":"object","allOf":[{"$ref":"#/components/schemas/FileDto"}]},"introVideo":{"nullable":true,"description":"The intro video, with a signed URL; null when none.","type":"object","allOf":[{"$ref":"#/components/schemas/FileDto"}]},"completion":{"description":"Which parts are filled in, for the app's prompts.","allOf":[{"$ref":"#/components/schemas/CvCompletionDto"}]},"rating":{"description":"Ratings from establishments after jobs ended.","allOf":[{"$ref":"#/components/schemas/RatingSummaryDto"}]}},"required":["personal","summary","experience","education","links","certificates","languages","skills","licenses","cvFile","introVideo","completion","rating"]},"UpdateCvDto":{"type":"object","properties":{"name":{"type":"string","nullable":true,"description":"2–100 characters; `null` or blank clears it.","example":"سارة العتيبي","minLength":2,"maxLength":100},"city":{"type":"string","nullable":true,"example":"الرياض","maxLength":60},"gender":{"type":"string","nullable":true,"example":"female","enum":["male","female"]},"nationality":{"type":"string","nullable":true,"description":"ISO 3166-1 alpha-2 country code.","example":"SA"},"email":{"type":"string","nullable":true,"example":"sara@example.com","maxLength":254,"format":"email"},"summary":{"type":"string","nullable":true,"description":"Up to 2,000 characters; `null` or blank clears it.","maxLength":2000},"cvFileId":{"type":"string","nullable":true,"description":"A `cv` file you uploaded (`POST /v1/employee/files?purpose=cv`), or\n`null` to remove it. The previous one is deleted.","format":"uuid"},"introVideoFileId":{"type":"string","nullable":true,"description":"An `intro_video` file you uploaded, or `null` to remove it. The\nprevious one is deleted.","format":"uuid"},"avatarFileId":{"type":"string","nullable":true,"description":"An `employee_avatar` photo you uploaded\n(`POST /v1/employee/files?purpose=employee_avatar`), or `null` to\nremove it. The previous one is deleted.","format":"uuid"}}},"SkillsDto":{"type":"object","properties":{"skills":{"description":"The whole list, in order (up to 50, each 1–50 characters). Repeats,\nignoring case, are dropped.","example":["Node.js","SQL"],"maxItems":50,"type":"array","items":{"type":"string","maxLength":50,"minLength":1}}},"required":["skills"]},"ExperienceInput":{"type":"object","properties":{"title":{"type":"string","example":"مهندس برمجيات"},"company":{"type":"string","example":"شركة مطاع"},"employment":{"example":"fullTime","enum":["fullTime","partTime","hourly"],"type":"string"},"startMonth":{"type":"number","example":1},"startYear":{"type":"number","example":2021},"current":{"type":"boolean","description":"Still working there: no end date."},"endMonth":{"type":"number","nullable":true,"description":"Required unless `current`; ignored when it is.","example":6},"endYear":{"type":"number","nullable":true,"description":"Required unless `current`; ignored when it is.","example":2024},"duties":{"type":"string","example":"تطوير واجهات برمجة التطبيقات"}},"required":["title","company","employment","startMonth","startYear","current","duties"]},"EducationInput":{"type":"object","properties":{"degree":{"type":"string","example":"بكالوريوس"},"institution":{"type":"string","example":"جامعة الملك سعود"},"specialization":{"type":"string","example":"علوم الحاسب"},"year":{"type":"number","example":2018}},"required":["degree","institution","specialization","year"]},"LinkInput":{"type":"object","properties":{"platform":{"example":"LinkedIn","enum":["LinkedIn","GitHub","Portfolio","other"],"type":"string"},"url":{"type":"string","description":"`https://` is added when there's no scheme.","example":"https://linkedin.com/in/sara","maxLength":500}},"required":["platform","url"]},"CertificateInput":{"type":"object","properties":{"name":{"type":"string","example":"AWS Solutions Architect"},"issuer":{"type":"string","example":"Amazon"},"month":{"type":"number","example":3},"year":{"type":"number","example":2024}},"required":["name","issuer","month","year"]},"LanguageInput":{"type":"object","properties":{"language":{"type":"string","example":"العربية"},"level":{"example":"advanced","enum":["beginner","intermediate","advanced"],"type":"string"}},"required":["language","level"]},"LicenseInput":{"type":"object","properties":{"name":{"type":"string","example":"رخصة قيادة"},"issuer":{"type":"string","example":"المرور"},"year":{"type":"number","example":2016}},"required":["name","issuer","year"]},"AccountDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"mobile":{"type":"string","description":"E.164.","example":"+966551234567"},"language":{"description":"Used when a request sends no language.","example":"ar","enum":["ar","en"],"type":"string"},"createdAt":{"format":"date-time","type":"string"}},"required":["id","mobile","language","createdAt"]},"UpdateAccountDto":{"type":"object","properties":{"language":{"description":"The app's language. Requests without `Accept-Language` or `?lang=` are\nanswered in it.","example":"en","enum":["ar","en"],"type":"string"}},"required":["language"]},"ChangeMobileOtpDto":{"type":"object","properties":{"mobile":{"type":"string","description":"Saudi mobile number; `05…`, `5…` and `+9665…` are all accepted.","example":"0551234567"}},"required":["mobile"]},"OtpSentDto":{"type":"object","properties":{"expiresAt":{"format":"date-time","type":"string","description":"When the code stops working."},"resendAfterSeconds":{"type":"number","description":"Seconds until \"resend\" may be offered (the app's countdown).","example":60}},"required":["expiresAt","resendAfterSeconds"]},"ChangeMobileDto":{"type":"object","properties":{"code":{"type":"string","description":"The code sent to the new number (`1234` while the fake SMS sender is on).","example":"1234"},"mobile":{"type":"string","description":"Saudi mobile number; `05…`, `5…` and `+9665…` are all accepted.","example":"0551234567"}},"required":["code","mobile"]},"DeleteAccountDto":{"type":"object","properties":{"code":{"type":"string","description":"Ignored: deleting needs no code since BUG-57. Older app versions still\nsend the one from `POST /account/delete/otp`.","example":"1234"}}},"ContactChannelsDto":{"type":"object","properties":{"phones":{"description":"Up to 5 phone numbers, each once (`0512345677` and `+966512345677`\nare the same number).","example":["+966551231456","920001234"],"maxItems":5,"type":"array","items":{"type":"string"}},"email":{"type":"string","nullable":true,"example":"support@motaah.sa","maxLength":254,"format":"email"},"whatsapp":{"type":"string","nullable":true,"description":"A phone number; the apps open it in WhatsApp.","example":"+966551231456"},"x":{"type":"string","nullable":true,"example":"https://x.com/motaah"},"snapchat":{"type":"string","nullable":true,"example":"https://www.snapchat.com/add/motaah"},"instagram":{"type":"string","nullable":true,"example":"https://www.instagram.com/motaah"},"facebook":{"type":"string","nullable":true,"example":"https://www.facebook.com/motaah"},"tiktok":{"type":"string","nullable":true,"example":"https://www.tiktok.com/@motaah"},"youtube":{"type":"string","nullable":true,"example":"https://www.youtube.com/@motaah"}}},"MessageTypeDto":{"type":"object","properties":{"key":{"type":"string","example":"inquiry","enum":["other","request","suggestion","inquiry","complaint"]},"label":{"type":"string","example":"Inquiry"}},"required":["key","label"]},"AppContactDto":{"type":"object","properties":{"channels":{"description":"A `null` channel is hidden.","allOf":[{"$ref":"#/components/schemas/ContactChannelsDto"}]},"messageTypes":{"type":"array","items":{"$ref":"#/components/schemas/MessageTypeDto"}}},"required":["channels","messageTypes"]},"SendMessageDto":{"type":"object","properties":{"name":{"type":"string","example":"سارة العتيبي","minLength":1,"maxLength":50},"email":{"type":"string","example":"sara@example.com","maxLength":254,"format":"email"},"mobile":{"type":"string","example":"0551234567"},"type":{"example":"inquiry","enum":["other","request","suggestion","inquiry","complaint"],"type":"string"},"message":{"type":"string","example":"كيف أضيف سيرتي الذاتية؟","minLength":1,"maxLength":2000}},"required":["name","email","mobile","message"]},"MessageSentDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"createdAt":{"format":"date-time","type":"string"}},"required":["id","createdAt"]},"StoreLinksDto":{"type":"object","properties":{"ios":{"type":"string","nullable":true,"example":"https://apps.apple.com/sa/app/motaah/id0000000000"},"android":{"type":"string","nullable":true,"example":"https://play.google.com/store/apps/details?id=sa.motaah.user"}}},"AppLinksDto":{"type":"object","properties":{"employee":{"$ref":"#/components/schemas/StoreLinksDto"},"establishment":{"$ref":"#/components/schemas/StoreLinksDto"}}},"AppSettingsDto":{"type":"object","properties":{"contactChannels":{"$ref":"#/components/schemas/ContactChannelsDto"},"appLinks":{"$ref":"#/components/schemas/AppLinksDto"}},"required":["contactChannels","appLinks"]},"AppPageDto":{"type":"object","properties":{"key":{"example":"about","enum":["about","terms","privacy"],"type":"string"},"title":{"type":"string","example":"About us"},"content":{"type":"string","description":"Rich text (HTML) in the request language, or the other language when\nit's empty; `\"\"` when neither is set.","example":"<h2>Our vision</h2><p>…</p>"},"updatedAt":{"format":"date-time","type":"string"}},"required":["key","title","content","updatedAt"]},"AppFaqDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"question":{"type":"string","example":"How do I create an account?"},"answer":{"type":"string","description":"Rich text (HTML)."}},"required":["id","question","answer"]},"AppFaqListDto":{"type":"object","properties":{"items":{"description":"In display order.","type":"array","items":{"$ref":"#/components/schemas/AppFaqDto"}}},"required":["items"]},"RegionDto":{"type":"object","properties":{"code":{"type":"string","example":"riyadh"},"name":{"type":"string","description":"In the request language.","example":"Riyadh Region"}},"required":["code","name"]},"CityDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","description":"In the request language.","example":"Riyadh"},"region":{"$ref":"#/components/schemas/RegionDto"}},"required":["id","name","region"]},"CityListDto":{"type":"object","properties":{"items":{"description":"Active cities, sorted by name in the request language.","type":"array","items":{"$ref":"#/components/schemas/CityDto"}}},"required":["items"]},"RequestOtpDto":{"type":"object","properties":{"mobile":{"type":"string","description":"Saudi mobile number; `05…`, `5…` and `+9665…` are all accepted.","example":"0551234567"}},"required":["mobile"]},"VerifyOtpDto":{"type":"object","properties":{"mobile":{"type":"string","description":"Saudi mobile number; `05…`, `5…` and `+9665…` are all accepted.","example":"0551234567"},"code":{"type":"string","description":"The code from the SMS (`1234` while the fake SMS sender is on).","example":"1234"},"deviceName":{"type":"string","description":"A name for this device, shown in the signed-in devices list.","example":"iPhone 16","maxLength":100}},"required":["mobile","code"]},"EmployeeDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"mobile":{"type":"string","description":"E.164.","example":"+966551234567"},"status":{"type":"string","example":"active","enum":["active","disabled"]},"language":{"type":"string","description":"Used when a request sends no language (`PATCH /account`).","example":"ar","enum":["ar","en"]},"createdAt":{"format":"date-time","type":"string"}},"required":["id","mobile","status","language","createdAt"]},"EmployeeSessionDto":{"type":"object","properties":{"accessToken":{"type":"string","description":"The session token, shown only once. Send it as `Authorization: Bearer …`.","example":"mt_emp_3q2-7wEvxN1c9kP0YyR5bA8dF6gH4jL2mZ1xV7sT0uQ"},"employee":{"$ref":"#/components/schemas/EmployeeDto"}},"required":["accessToken","employee"]},"SessionDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"deviceName":{"type":"string","nullable":true,"description":"The name the app sent when signing in.","example":"iPhone 16"},"userAgent":{"type":"string","nullable":true,"example":"Motaah/1.0 (iOS 19.0)"},"ip":{"type":"string","nullable":true,"example":"185.24.12.9"},"createdAt":{"format":"date-time","type":"string"},"lastUsedAt":{"format":"date-time","type":"string","description":"Updated at most every 5 minutes."},"current":{"type":"boolean","description":"True for the device making this request."}},"required":["id","deviceName","userAgent","ip","createdAt","lastUsedAt","current"]},"SessionListDto":{"type":"object","properties":{"items":{"description":"Live sessions, most recently used first.","type":"array","items":{"$ref":"#/components/schemas/SessionDto"}}},"required":["items"]},"RevokedCountDto":{"type":"object","properties":{"revoked":{"type":"number","description":"How many sessions were ended.","example":2}},"required":["revoked"]},"RegisterDeviceDto":{"type":"object","properties":{"token":{"type":"string","description":"The FCM registration token from the app's messaging SDK.","minLength":1,"maxLength":4096},"platform":{"example":"android","enum":["ios","android"],"type":"string"},"locale":{"description":"The app's current language; pushes are written in it.","example":"ar","enum":["ar","en"],"type":"string"}},"required":["token","platform","locale"]},"NotificationDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"type":{"type":"string","example":"application_status"},"group":{"type":"string","description":"Which icon to show.","example":"status","enum":["message","admin","status","job"]},"title":{"type":"string","description":"In the request language.","example":"Application update"},"body":{"type":"string","example":"Your application for Software engineer was accepted."},"data":{"type":"object","additionalProperties":{"type":"string"},"description":"Where a tap leads: `route` plus the IDs it needs.","example":{"route":"application","applicationId":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"read":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"}},"required":["id","type","group","title","body","data","read","createdAt"]},"NotificationPageDto":{"type":"object","properties":{"items":{"description":"Newest first.","type":"array","items":{"$ref":"#/components/schemas/NotificationDto"}},"nextCursor":{"type":"string","nullable":true,"description":"Pass as `cursor` for the next page; null on the last one."}},"required":["items","nextCursor"]},"UnreadCountDto":{"type":"object","properties":{"count":{"type":"number","example":3}},"required":["count"]},"ReadAllDto":{"type":"object","properties":{"updated":{"type":"number","description":"How many were unread.","example":3}},"required":["updated"]},"ReportJobDto":{"type":"object","properties":{"reasonId":{"type":"string","description":"From `GET /report-reasons`.","format":"uuid"},"notes":{"type":"string","nullable":true,"description":"Optional, up to 500 characters.","example":"Asked me to pay a fee","maxLength":500}},"required":["reasonId"]},"JobReportCreatedDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"REP-000045"},"createdAt":{"format":"date-time","type":"string"}},"required":["id","number","createdAt"]},"MyApplicationSummaryDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"APP-2026-000031"},"status":{"description":"The raw status (see the README's table).","example":"submitted","enum":["accepted","submitted","viewed","shortlisted","contacted","interviewing","offered","rejected","position_filled","withdrawn","job_closed"],"type":"string"},"group":{"description":"The employee app's group, for the badge.","example":"under_review","enum":["accepted","rejected","under_review","cancelled"],"type":"string"},"appliedAt":{"format":"date-time","type":"string"}},"required":["id","number","status","group","appliedAt"]},"LogoDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"url":{"type":"string","description":"A permanent public URL."}},"required":["id","url"]},"JobEstablishmentDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","nullable":true,"description":"Null until the establishment sets it.","example":"شركة الحلول التقنية"},"logo":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/LogoDto"}]}},"required":["id","name","logo"]},"EmployeeJobCardDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"JOB-000123"},"title":{"type":"string","example":"Software engineer"},"establishment":{"$ref":"#/components/schemas/JobEstablishmentDto"},"city":{"nullable":true,"description":"Null for remote jobs.","type":"object","allOf":[{"$ref":"#/components/schemas/CityDto"}]},"employmentType":{"type":"string","enum":["hourly","full_time","part_time"]},"workplaceType":{"type":"string","enum":["onsite","remote","hybrid"]},"publishedAt":{"format":"date-time","type":"string"},"saved":{"type":"boolean","description":"Saved by this employee; false for guests (saving arrives in API-067)."}},"required":["id","number","title","establishment","city","employmentType","workplaceType","publishedAt","saved"]},"JobFeedPageDto":{"type":"object","properties":{"needsCv":{"type":"boolean","description":"True for an employee with no CV file and no CV section: show the\n\"upload your CV or search\" prompt instead of a list (no items)."},"items":{"type":"array","items":{"$ref":"#/components/schemas/EmployeeJobCardDto"}},"page":{"type":"number","example":1},"limit":{"type":"number","example":20},"total":{"type":"number","description":"For \"125 results\".","example":125},"asOf":{"format":"date-time","type":"string","description":"Send back as `asOf` for the next pages."}},"required":["needsCv","items","page","limit","total","asOf"]},"JobSearchPageDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/EmployeeJobCardDto"}},"page":{"type":"number","example":1},"limit":{"type":"number","example":20},"total":{"type":"number","description":"For \"125 results\".","example":125},"asOf":{"format":"date-time","type":"string","description":"Send back as `asOf` for the next pages."}},"required":["items","page","limit","total","asOf"]},"JobDetailsEstablishmentDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","nullable":true,"description":"Null until the establishment sets it.","example":"شركة الحلول التقنية"},"logo":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/LogoDto"}]},"tagline":{"type":"string","nullable":true,"example":"حلول تقنية لأعمالك"}},"required":["id","name","logo","tagline"]},"EmployeeSalaryDto":{"type":"object","properties":{"label":{"type":"string","description":"Ready to show, in the request language.","example":"20,000 – 30,000 SAR / month"},"type":{"type":"string","enum":["fixed","range"]},"min":{"type":"number","nullable":true,"description":"Whole riyals.","example":20000},"max":{"type":"number","nullable":true,"description":"Only for a range.","example":30000},"currency":{"type":"string","example":"SAR","enum":["SAR"]}},"required":["label","type","min","max","currency"]},"JobApplicantsDto":{"type":"object","properties":{"total":{"type":"number","description":"Applications except withdrawn ones.","example":12},"avatars":{"description":"Avatar URLs of up to 3 of the latest applicants who have one.","type":"array","items":{"type":"string"}}},"required":["total","avatars"]},"EmployeeJobDetailsDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"JOB-000123"},"title":{"type":"string","example":"Software engineer"},"description":{"type":"string"},"responsibilities":{"type":"array","items":{"type":"string"}},"requirements":{"type":"array","items":{"type":"string"}},"employmentType":{"type":"string","enum":["hourly","full_time","part_time"]},"workplaceType":{"type":"string","enum":["onsite","remote","hybrid"]},"city":{"nullable":true,"description":"Null for remote jobs.","type":"object","allOf":[{"$ref":"#/components/schemas/CityDto"}]},"startDate":{"type":"string","example":"2026-10-15"},"endDate":{"type":"string","nullable":true,"description":"Null when open-ended.","example":"2026-12-31"},"vacancies":{"type":"number","example":2},"publishedAt":{"format":"date-time","type":"string"},"expiresAt":{"format":"date-time","type":"string"},"establishment":{"$ref":"#/components/schemas/JobDetailsEstablishmentDto"},"salary":{"$ref":"#/components/schemas/EmployeeSalaryDto"},"applicants":{"$ref":"#/components/schemas/JobApplicantsDto"},"available":{"type":"boolean","description":"False when the job is paused, blocked, ended or closed, or its\nestablishment is disabled or deleted: show \"no longer available\"."},"canApply":{"type":"boolean","description":"Show \"Apply now\". Guests get true on an open job (sign in first);\nfalse once this employee has applied."},"saved":{"type":"boolean","nullable":true,"description":"Null for guests."},"application":{"nullable":true,"description":"This employee's application; null for guests or when not applied.","type":"object","allOf":[{"$ref":"#/components/schemas/MyApplicationSummaryDto"}]},"reported":{"type":"boolean","nullable":true,"description":"This employee already reported it (hide \"Report\"); null for guests."},"shareUrl":{"type":"string","description":"The link to share (API-070): a page with the job and the store links,\nwhich the user app opens instead when installed.","example":"https://motaah-api.dev-moltaqa.cloud/jobs/0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"required":["id","number","title","description","responsibilities","requirements","employmentType","workplaceType","city","startDate","endDate","vacancies","publishedAt","expiresAt","establishment","salary","applicants","available","canApply","saved","application","reported","shareUrl"]},"SavedJobDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"JOB-000123"},"title":{"type":"string","example":"Software engineer"},"establishment":{"$ref":"#/components/schemas/JobEstablishmentDto"},"city":{"nullable":true,"description":"Null for remote jobs.","type":"object","allOf":[{"$ref":"#/components/schemas/CityDto"}]},"employmentType":{"enum":["hourly","full_time","part_time"],"type":"string"},"workplaceType":{"enum":["onsite","remote","hybrid"],"type":"string"},"publishedAt":{"format":"date-time","type":"string"},"saved":{"type":"boolean","description":"Saved by this employee; false for guests (saving arrives in API-067)."},"savedAt":{"format":"date-time","type":"string"},"available":{"type":"boolean","description":"False when the job is no longer open (paused, blocked, ended, closed,\nor its establishment is gone): it stays listed, marked unavailable."}},"required":["id","number","title","establishment","city","employmentType","workplaceType","publishedAt","saved","savedAt","available"]},"SavedJobsPageDto":{"type":"object","properties":{"items":{"description":"Newest save first.","type":"array","items":{"$ref":"#/components/schemas/SavedJobDto"}},"nextCursor":{"type":"string","nullable":true,"description":"Pass as `cursor` for the next page; null on the last one."}},"required":["items","nextCursor"]},"ApplicationJobCardDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"JOB-000123"},"title":{"type":"string","example":"Software engineer"},"establishment":{"$ref":"#/components/schemas/JobEstablishmentDto"},"city":{"nullable":true,"description":"Null for remote jobs.","type":"object","allOf":[{"$ref":"#/components/schemas/CityDto"}]},"employmentType":{"enum":["hourly","full_time","part_time"],"type":"string"},"workplaceType":{"enum":["onsite","remote","hybrid"],"type":"string"},"publishedAt":{"format":"date-time","type":"string"},"saved":{"type":"boolean","description":"Saved by this employee; false for guests (saving arrives in API-067)."},"available":{"type":"boolean","description":"False once the job is no longer open: \"no longer available\"."}},"required":["id","number","title","establishment","city","employmentType","workplaceType","publishedAt","saved","available"]},"MyApplicationCardDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"APP-2026-000031"},"status":{"description":"The raw status (see the README's table).","example":"submitted","enum":["accepted","submitted","viewed","shortlisted","contacted","interviewing","offered","rejected","position_filled","withdrawn","job_closed"],"type":"string"},"group":{"description":"The employee app's group, for the badge.","example":"under_review","enum":["accepted","rejected","under_review","cancelled"],"type":"string"},"appliedAt":{"format":"date-time","type":"string"},"job":{"$ref":"#/components/schemas/ApplicationJobCardDto"}},"required":["id","number","status","group","appliedAt","job"]},"MyApplicationsPageDto":{"type":"object","properties":{"items":{"description":"Newest first.","type":"array","items":{"$ref":"#/components/schemas/MyApplicationCardDto"}},"nextCursor":{"type":"string","nullable":true,"description":"Pass as `cursor` for the next page; null on the last one."}},"required":["items","nextCursor"]},"MyApplicationWithCvDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"APP-2026-000031"},"status":{"description":"The raw status (see the README's table).","example":"submitted","enum":["accepted","submitted","viewed","shortlisted","contacted","interviewing","offered","rejected","position_filled","withdrawn","job_closed"],"type":"string"},"group":{"description":"The employee app's group, for the badge.","example":"under_review","enum":["accepted","rejected","under_review","cancelled"],"type":"string"},"appliedAt":{"format":"date-time","type":"string"},"cv":{"description":"The CV as it was when they applied (a signed link).","allOf":[{"$ref":"#/components/schemas/FileDto"}]}},"required":["id","number","status","group","appliedAt","cv"]},"MyApplicationDetailsDto":{"type":"object","properties":{"application":{"$ref":"#/components/schemas/MyApplicationWithCvDto"},"job":{"$ref":"#/components/schemas/EmployeeJobDetailsDto"}},"required":["application","job"]},"ConversationsPageDto":{"type":"object","properties":{"items":{"description":"Most recent activity first.","type":"array","items":{"$ref":"#/components/schemas/ConversationDto"}},"nextCursor":{"type":"string","nullable":true,"description":"Pass as `cursor` for the next page; null on the last one."}},"required":["items","nextCursor"]},"ChatUnreadCountsDto":{"type":"object","properties":{"conversations":{"type":"number","description":"Chats with unread messages, for the tab badge.","example":1},"messages":{"type":"number","description":"Unread messages in all.","example":3}},"required":["conversations","messages"]},"ChatCounterpartDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","nullable":true,"description":"The company (employee app) or the applicant (provider app). An\napplicant without a name shows their mobile (`05…`). Null for a company\nwithout a name, or a deleted account.","example":"محمد بن عبدالله"},"avatar":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/LogoDto"}]}},"required":["id","name","avatar"]},"ChatApplicationDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","description":"For the chat header.","example":"APP-2026-000031"},"status":{"type":"string","example":"contacted","enum":["accepted","submitted","viewed","shortlisted","contacted","interviewing","offered","rejected","position_filled","withdrawn","job_closed"]},"actions":{"type":"array","description":"The provider's applicant buttons (`actionsFor`), e.g. to accept from\nthe chat (BUG-62); always empty for the employee.","example":["accept","contact","reject"],"items":{"type":"string","enum":["accept","contact","reject","cancel_acceptance","rate"]}}},"required":["id","number","status","actions"]},"ChatJobDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"title":{"type":"string","example":"مصور فوتوغرافي"}},"required":["id","title"]},"LastMessageDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"type":{"type":"string","example":"text","enum":["file","text","image","voice"]},"text":{"type":"string","nullable":true},"mine":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"}},"required":["id","type","text","mine","createdAt"]},"MessageDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"type":{"example":"text","enum":["file","text","image","voice"],"type":"string"},"text":{"type":"string","nullable":true},"file":{"nullable":true,"description":"The attachment, a signed link.","type":"object","allOf":[{"$ref":"#/components/schemas/FileDto"}]},"durationMs":{"type":"number","nullable":true,"description":"Voice notes.","example":12500},"mine":{"type":"boolean","description":"Sent by me (this app's account)."},"read":{"type":"boolean","description":"The recipient has read it (read receipts)."},"createdAt":{"format":"date-time","type":"string"}},"required":["id","type","text","file","durationMs","mine","read","createdAt"]},"MessagesPageDto":{"type":"object","properties":{"items":{"description":"Newest first: reverse them for display.","type":"array","items":{"$ref":"#/components/schemas/MessageDto"}},"nextCursor":{"type":"string","nullable":true,"description":"Pass as `cursor` for older messages; null at the start."}},"required":["items","nextCursor"]},"AppReportReasonListDto":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}},"required":["items"]},"ApplicantPersonDto":{"type":"object","properties":{"name":{"type":"string","nullable":true,"description":"The mobile (`05…`) when the employee has no name; null when the account\nwas deleted.","example":"سارة العمري"},"avatar":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/LogoDto"}]}},"required":["name","avatar"]},"ApplicantRatingDto":{"type":"object","properties":{"stars":{"type":"number","example":4},"comment":{"type":"string","nullable":true,"example":"ملتزم بالمواعيد ومتعاون"},"createdAt":{"format":"date-time","type":"string"}},"required":["stars","comment","createdAt"]},"ApplicantCardDto":{"type":"object","properties":{"id":{"type":"string","description":"The application's id.","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","description":"For the chat header.","example":"APP-2026-000031"},"status":{"example":"submitted","enum":["accepted","submitted","viewed","shortlisted","contacted","interviewing","offered","rejected","position_filled","withdrawn","job_closed"],"type":"string"},"chip":{"description":"The badge.","example":"new","enum":["accepted","new","contacted","rejected","cancelled","reviewed"],"type":"string"},"appliedAt":{"format":"date-time","type":"string"},"applicant":{"$ref":"#/components/schemas/ApplicantPersonDto"},"qualification":{"type":"string","nullable":true,"description":"The latest education (\"degree specialization\"), else the latest job\ntitle; null with neither.","example":"بكالوريوس تصوير"},"yearsOfExperience":{"type":"number","description":"Whole years, overlapping jobs counted once.","example":5},"actions":{"type":"array","description":"The buttons: open ones `accept`, `contact` (opens or reopens the chat)\nand `reject`; accepted ones `contact`, plus `cancel_acceptance` while\nthe job runs or `rate` once it has ended (until rated); none once\notherwise final.","example":["accept","contact","reject"],"items":{"type":"string","enum":["accept","contact","reject","cancel_acceptance","rate"]}},"myRating":{"nullable":true,"description":"This establishment's rating of the employee for this job, if any.","type":"object","allOf":[{"$ref":"#/components/schemas/ApplicantRatingDto"}]}},"required":["id","number","status","chip","appliedAt","applicant","qualification","yearsOfExperience","actions","myRating"]},"ApplicantsPageDto":{"type":"object","properties":{"items":{"description":"Newest applied first.","type":"array","items":{"$ref":"#/components/schemas/ApplicantCardDto"}},"nextCursor":{"type":"string","nullable":true,"description":"Pass as `cursor` for the next page; null on the last one."}},"required":["items","nextCursor"]},"ApplicantProfileDto":{"type":"object","properties":{"city":{"type":"string","nullable":true,"example":"الرياض"},"summary":{"type":"string","nullable":true},"skills":{"type":"array","items":{"type":"string"}},"experience":{"type":"array","items":{"$ref":"#/components/schemas/ExperienceDto"}},"education":{"type":"array","items":{"$ref":"#/components/schemas/EducationDto"}},"certificates":{"type":"array","items":{"$ref":"#/components/schemas/CertificateDto"}},"languages":{"type":"array","items":{"$ref":"#/components/schemas/LanguageDto"}},"licenses":{"type":"array","items":{"$ref":"#/components/schemas/LicenseDto"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/LinkDto"}},"introVideo":{"nullable":true,"description":"A signed link.","type":"object","allOf":[{"$ref":"#/components/schemas/FileDto"}]},"rating":{"description":"Ratings from establishments after jobs ended.","allOf":[{"$ref":"#/components/schemas/RatingSummaryDto"}]}},"required":["city","summary","skills","experience","education","certificates","languages","licenses","links","introVideo","rating"]},"ApplicantJobDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"JOB-000123"},"title":{"type":"string","example":"مصور فوتوغرافي"}},"required":["id","number","title"]},"ApplicantDetailsDto":{"type":"object","properties":{"id":{"type":"string","description":"The application's id.","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","description":"For the chat header.","example":"APP-2026-000031"},"status":{"example":"submitted","enum":["accepted","submitted","viewed","shortlisted","contacted","interviewing","offered","rejected","position_filled","withdrawn","job_closed"],"type":"string"},"chip":{"description":"The badge.","example":"new","enum":["accepted","new","contacted","rejected","cancelled","reviewed"],"type":"string"},"appliedAt":{"format":"date-time","type":"string"},"applicant":{"$ref":"#/components/schemas/ApplicantPersonDto"},"qualification":{"type":"string","nullable":true,"description":"The latest education (\"degree specialization\"), else the latest job\ntitle; null with neither.","example":"بكالوريوس تصوير"},"yearsOfExperience":{"type":"number","description":"Whole years, overlapping jobs counted once.","example":5},"actions":{"type":"array","description":"The buttons: open ones `accept`, `contact` (opens or reopens the chat)\nand `reject`; accepted ones `contact`, plus `cancel_acceptance` while\nthe job runs or `rate` once it has ended (until rated); none once\notherwise final.","example":["accept","contact","reject"],"items":{"type":"string","enum":["accept","contact","reject","cancel_acceptance","rate"]}},"myRating":{"nullable":true,"description":"This establishment's rating of the employee for this job, if any.","type":"object","allOf":[{"$ref":"#/components/schemas/ApplicantRatingDto"}]},"cv":{"description":"The CV as they sent it with the application (a signed link).","allOf":[{"$ref":"#/components/schemas/FileDto"}]},"profile":{"nullable":true,"description":"Null when the account was deleted.","type":"object","allOf":[{"$ref":"#/components/schemas/ApplicantProfileDto"}]},"job":{"$ref":"#/components/schemas/ApplicantJobDto"}},"required":["id","number","status","chip","appliedAt","applicant","qualification","yearsOfExperience","actions","myRating","cv","profile","job"]},"ContactResultDto":{"type":"object","properties":{"conversationId":{"type":"string","description":"Open this chat. The same one every time for this application."},"applicant":{"$ref":"#/components/schemas/ApplicantCardDto"}},"required":["conversationId","applicant"]},"VacanciesDto":{"type":"object","properties":{"total":{"type":"number","example":2},"filled":{"type":"number","description":"Full when it equals `total`: the job then takes no applicants.","example":1}},"required":["total","filled"]},"AcceptResultDto":{"type":"object","properties":{"applicant":{"$ref":"#/components/schemas/ApplicantCardDto"},"vacancies":{"$ref":"#/components/schemas/VacanciesDto"}},"required":["applicant","vacancies"]},"RateApplicantDto":{"type":"object","properties":{"stars":{"type":"number","description":"1 to 5.","example":4,"minimum":1,"maximum":5},"comment":{"type":"string","nullable":true,"description":"Optional, up to 500 characters.","example":"ملتزم بالمواعيد ومتعاون","maxLength":500}},"required":["stars"]},"RecentJobDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"title":{"type":"string","example":"محاسب عام"},"applicantCount":{"type":"number","description":"0 until applications exist (API-068).","example":12},"publishedAt":{"format":"date-time","type":"string"},"status":{"type":"string","description":"The app's chip: `ended` is expired, `suspended` is paused or blocked.","example":"active","enum":["closed","active","ended","suspended"]}},"required":["id","title","applicantCount","publishedAt","status"]},"EstablishmentProfileDto":{"type":"object","properties":{"name":{"type":"string","nullable":true,"description":"Shown in the home header; null until set.","example":"مؤسسة الرواد للتوظيف"},"tagline":{"type":"string","nullable":true,"description":"A short line under the name; null until set.","example":"نصنع فرص العمل"},"logo":{"nullable":true,"description":"Null when there's no logo.","type":"object","allOf":[{"$ref":"#/components/schemas/LogoDto"}]}},"required":["name","tagline","logo"]},"HomeStatsDto":{"type":"object","properties":{"publishedJobs":{"type":"number","description":"Jobs the establishment has published and not closed (active, paused,\nblocked or ended).","example":0},"newApplications":{"type":"number","description":"Applications not opened yet (0 until applications exist, API-068).","example":0},"activeJobs":{"type":"number","description":"Jobs listed to employees now (not paused, blocked, ended or closed).","example":0}},"required":["publishedJobs","newApplications","activeJobs"]},"HomePackageDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","description":"In the request language.","example":"Basic"}},"required":["id","name"]},"HomeSubscriptionDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"package":{"$ref":"#/components/schemas/HomePackageDto"},"endsAt":{"format":"date-time","type":"string"},"daysLeft":{"type":"number","description":"Whole days until `endsAt`, rounded up.","example":30}},"required":["id","package","endsAt","daysLeft"]},"JobQuotaDto":{"type":"object","properties":{"limit":{"type":"number","nullable":true,"description":"Posts allowed over the running subscription (BUG-20); null only on\nolder unlimited subscriptions.","example":5},"used":{"type":"number","example":3},"remaining":{"type":"number","nullable":true,"description":"Null means unlimited.","example":2},"resetsAt":{"format":"date-time","type":"string","description":"When the subscription ends: posting needs a new one after that."}},"required":["limit","used","remaining","resetsAt"]},"HomeDto":{"type":"object","properties":{"establishment":{"description":"The header: name, tagline and logo (null until set in the profile).","allOf":[{"$ref":"#/components/schemas/EstablishmentProfileDto"}]},"stats":{"$ref":"#/components/schemas/HomeStatsDto"},"recentJobs":{"description":"The five latest published jobs, newest first, in any status.","type":"array","items":{"$ref":"#/components/schemas/RecentJobDto"}},"subscription":{"nullable":true,"description":"The running subscription, or null (see `/subscriptions/current`).","type":"object","allOf":[{"$ref":"#/components/schemas/HomeSubscriptionDto"}]},"quota":{"nullable":true,"description":"The running subscription's post allowance, for the post button (as on\n`GET /jobs`); null without a running subscription.","type":"object","allOf":[{"$ref":"#/components/schemas/JobQuotaDto"}]}},"required":["establishment","stats","recentJobs","subscription","quota"]},"CreateJobDto":{"type":"object","properties":{"title":{"type":"string","example":"Software engineer","minLength":1,"maxLength":100},"description":{"type":"string","example":"Join our engineering team to build Motaahs apps.","minLength":1,"maxLength":5000},"responsibilities":{"description":"1–20 lines, each up to 200 characters, no repeats.","example":["Build back-end and front-end features","Review code"],"uniqueItems":true,"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","maxLength":200,"minLength":1}},"requirements":{"description":"1–20 lines, each up to 200 characters, no repeats.","example":"[\"Bachelor\"s in engineering\", \"React and Node.js\"]","uniqueItems":true,"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","maxLength":200,"minLength":1}},"employmentType":{"example":"full_time","enum":["hourly","full_time","part_time"],"type":"string"},"workplaceType":{"example":"onsite","enum":["onsite","remote","hybrid"],"type":"string"},"cityId":{"type":"string","nullable":true,"description":"From `GET /cities`. Required for onsite and hybrid jobs; leave it out\nfor remote ones.","format":"uuid"},"startDate":{"type":"string","description":"Today or later, on the Saudi calendar.","example":"2026-10-15"},"endDate":{"type":"string","nullable":true,"description":"The last day; leave it out for an open-ended job (listed for 30 days,\nextendable).","example":"2026-12-31"},"salaryType":{"description":"`fixed` needs `salaryMin`; `range` needs `salaryMin` < `salaryMax`.\nJust amounts: no pay period (BUG-60), no `negotiable` (BUG-59).","example":"range","enum":["fixed","range"],"type":"string"},"salaryMin":{"type":"number","nullable":true,"description":"Whole riyals.","example":20000,"minimum":1,"maximum":1000000},"salaryMax":{"type":"number","nullable":true,"description":"Whole riyals; only for `range`.","example":30000,"minimum":1,"maximum":1000000},"salaryPeriod":{"type":"object","description":"Ignored: the salary has no pay period since BUG-60. Older app versions\nstill send one.","deprecated":true},"vacancies":{"type":"number","example":1,"default":1,"minimum":1,"maximum":1000}},"required":["title","description","responsibilities","requirements","employmentType","workplaceType","startDate","salaryType","vacancies"]},"SalaryDto":{"type":"object","properties":{"type":{"type":"string","enum":["fixed","range"]},"min":{"type":"number","nullable":true,"description":"Whole riyals.","example":20000},"max":{"type":"number","nullable":true,"description":"Only for a range.","example":30000},"currency":{"type":"string","example":"SAR","enum":["SAR"]}},"required":["type","min","max","currency"]},"CreatedJobDto":{"type":"object","properties":{"quota":{"description":"The monthly post allowance after this post, for the post button.","allOf":[{"$ref":"#/components/schemas/JobQuotaDto"}]},"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"JOB-000123"},"title":{"type":"string"},"description":{"type":"string"},"responsibilities":{"type":"array","items":{"type":"string"}},"requirements":{"type":"array","items":{"type":"string"}},"employmentType":{"type":"string","enum":["hourly","full_time","part_time"]},"workplaceType":{"type":"string","enum":["onsite","remote","hybrid"]},"city":{"nullable":true,"description":"Null for remote jobs.","type":"object","allOf":[{"$ref":"#/components/schemas/CityDto"}]},"startDate":{"type":"string","example":"2026-10-15"},"endDate":{"type":"string","nullable":true,"description":"Null: open-ended.","example":"2026-12-31"},"salary":{"$ref":"#/components/schemas/SalaryDto"},"vacancies":{"type":"number"},"filled":{"type":"number","description":"Vacancies with an accepted candidate (BUG-62); equal to `vacancies`\nwhen the job is full and takes no applicants.","example":1},"status":{"type":"string","example":"active","enum":["closed","active","paused","blocked","expired"]},"publishedAt":{"format":"date-time","type":"string"},"expiresAt":{"format":"date-time","type":"string","description":"When it stops being listed, unless extended."}},"required":["quota","id","number","title","description","responsibilities","requirements","employmentType","workplaceType","city","startDate","endDate","salary","vacancies","filled","status","publishedAt","expiresAt"]},"ApplicantCountsDto":{"type":"object","properties":{"total":{"type":"number","example":37},"new":{"type":"number","description":"Not yet looked at.","example":7}},"required":["total","new"]},"EstablishmentJobCardDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"JOB-000123"},"title":{"type":"string","example":"Software engineer"},"employmentType":{"type":"string","enum":["hourly","full_time","part_time"]},"workplaceType":{"type":"string","enum":["onsite","remote","hybrid"]},"city":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/CityDto"}]},"status":{"type":"string","description":"An active job past its listing period shows as `expired`.","enum":["closed","active","paused","blocked","expired"]},"publishedAt":{"format":"date-time","type":"string"},"expiresAt":{"format":"date-time","type":"string"},"applicants":{"description":"Applications except withdrawn ones; `new` are not looked at yet.","allOf":[{"$ref":"#/components/schemas/ApplicantCountsDto"}]},"ratingsPending":{"type":"number","description":"Accepted employees not rated yet, once the job has ended (0 before):\nthe card's \"Add a rating\" shows while this is above 0.","example":1}},"required":["id","number","title","employmentType","workplaceType","city","status","publishedAt","expiresAt","applicants","ratingsPending"]},"MyJobsPageDto":{"type":"object","properties":{"items":{"description":"Newest published first.","type":"array","items":{"$ref":"#/components/schemas/EstablishmentJobCardDto"}},"nextCursor":{"type":"string","nullable":true,"description":"Pass as `cursor` for the next page; null on the last one."},"quota":{"nullable":true,"description":"For the post button; null without a running subscription.","type":"object","allOf":[{"$ref":"#/components/schemas/JobQuotaDto"}]}},"required":["items","nextCursor","quota"]},"JobStatsDto":{"type":"object","properties":{"views":{"type":"number","example":234},"applicants":{"type":"number","description":"Applications except withdrawn ones.","example":12},"newApplicants":{"type":"number","example":7}},"required":["views","applicants","newApplicants"]},"EstablishmentJobDetailsDto":{"type":"object","properties":{"stats":{"$ref":"#/components/schemas/JobStatsDto"},"blockedReason":{"type":"string","nullable":true,"description":"Why an admin (or reports) blocked it; null unless blocked."},"closedAt":{"format":"date-time","type":"string","nullable":true},"allowedActions":{"type":"array","description":"The buttons to show: `pause`, `resume`, `extend`, `close`, `edit`.","example":["pause","extend","close","edit"],"items":{"type":"string","enum":["pause","resume","close","extend","edit"]}},"termsLocked":{"type":"boolean","description":"The title and salary can no longer change: the job has applications\n(`JOB_TERMS_LOCKED`)."},"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"JOB-000123"},"title":{"type":"string"},"description":{"type":"string"},"responsibilities":{"type":"array","items":{"type":"string"}},"requirements":{"type":"array","items":{"type":"string"}},"employmentType":{"enum":["hourly","full_time","part_time"],"type":"string"},"workplaceType":{"enum":["onsite","remote","hybrid"],"type":"string"},"city":{"nullable":true,"description":"Null for remote jobs.","type":"object","allOf":[{"$ref":"#/components/schemas/CityDto"}]},"startDate":{"type":"string","example":"2026-10-15"},"endDate":{"type":"string","nullable":true,"description":"Null: open-ended.","example":"2026-12-31"},"salary":{"$ref":"#/components/schemas/SalaryDto"},"vacancies":{"type":"number"},"filled":{"type":"number","description":"Vacancies with an accepted candidate (BUG-62); equal to `vacancies`\nwhen the job is full and takes no applicants.","example":1},"status":{"example":"active","enum":["closed","active","paused","blocked","expired"],"type":"string"},"publishedAt":{"format":"date-time","type":"string"},"expiresAt":{"format":"date-time","type":"string","description":"When it stops being listed, unless extended."}},"required":["stats","blockedReason","closedAt","allowedActions","termsLocked","id","number","title","description","responsibilities","requirements","employmentType","workplaceType","city","startDate","endDate","salary","vacancies","filled","status","publishedAt","expiresAt"]},"ExtendJobDto":{"type":"object","properties":{"days":{"type":"number","description":"Added to the listing period, counted from now when it already ended.","example":14,"enum":[7,30,14]}},"required":["days"]},"UpdateEstablishmentProfileDto":{"type":"object","properties":{"name":{"type":"string","nullable":true,"description":"2–100 characters; `null` or blank clears it.","example":"مؤسسة الرواد للتوظيف","minLength":2,"maxLength":100},"tagline":{"type":"string","nullable":true,"description":"Up to 150 characters; `null` or blank clears it.","example":"نصنع فرص العمل","maxLength":150},"logoFileId":{"type":"string","nullable":true,"description":"An `establishment_logo` file you uploaded\n(`POST /v1/establishment/files?purpose=establishment_logo`), or `null`\nto remove the logo. The previous logo is deleted.","format":"uuid"}}},"SubscribeDto":{"type":"object","properties":{"packageId":{"type":"string","description":"An active package from `GET /v1/establishment/packages`.","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b","format":"uuid"}},"required":["packageId"]},"SubscribedPackageDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","description":"The name when subscribed, in the request language.","example":"Basic"},"description":{"type":"string","description":"The line under the package name, in the request language: the same\nfor every package (BUG-20).","example":"Hire the best talent"},"jobPosts":{"type":"number","nullable":true,"description":"Job posts for the whole subscription, as bought; null only on older\nunlimited subscriptions.","example":5}},"required":["id","name","description","jobPosts"]},"PriceDto":{"type":"object","properties":{"amount":{"type":"number","description":"What the establishment pays, VAT included (SAR).","example":99},"vat":{"type":"number","example":12.91},"net":{"type":"number","description":"Without VAT; `net + vat = amount`.","example":86.09},"currency":{"type":"string","example":"SAR"}},"required":["amount","vat","net","currency"]},"PaymentDto":{"type":"object","properties":{"status":{"type":"string","description":"`paid` or `pending` subscriptions are in effect (`pending` counts as paid\nuntil the payment gateway arrives); `failed` ones never run. Without a\ngateway yet, subscribing records `paid` at once.","example":"paid","enum":["pending","paid","failed"]}},"required":["status"]},"SubscriptionDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"package":{"$ref":"#/components/schemas/SubscribedPackageDto"},"price":{"description":"The price paid, VAT included.","allOf":[{"$ref":"#/components/schemas/PriceDto"}]},"durationDays":{"type":"number","description":"How long it runs, in days.","example":30},"startsAt":{"format":"date-time","type":"string"},"endsAt":{"format":"date-time","type":"string","description":"When it ends (exclusive)."},"state":{"type":"string","description":"From the dates: `upcoming` (queued after the current one), `active` or\n`expired`.","example":"active","enum":["active","expired","upcoming"]},"jobPostsRemaining":{"type":"number","nullable":true,"description":"Job posts left in it: those bought minus those published within its\ndates (all of them while upcoming; what was left when it ended once\nexpired). Null only on older unlimited subscriptions.","example":3},"payment":{"$ref":"#/components/schemas/PaymentDto"}},"required":["id","package","price","durationDays","startsAt","endsAt","state","jobPostsRemaining","payment"]},"CurrentSubscriptionDto":{"type":"object","properties":{"current":{"nullable":true,"description":"The running subscription, or null.","type":"object","allOf":[{"$ref":"#/components/schemas/SubscriptionDto"}]},"upcoming":{"nullable":true,"description":"The one queued to start when `current` ends, or null.","type":"object","allOf":[{"$ref":"#/components/schemas/SubscriptionDto"}]}},"required":["current","upcoming"]},"SubscriptionPageDto":{"type":"object","properties":{"items":{"description":"Newest start first.","type":"array","items":{"$ref":"#/components/schemas/SubscriptionDto"}},"page":{"type":"number","example":1},"limit":{"type":"number","example":20},"total":{"type":"number","example":3}},"required":["items","page","limit","total"]},"AppPackageDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","example":"Basic"},"description":{"type":"string","description":"The line under the name, in the request language: the same for every\npackage (BUG-20).","example":"Hire the best talent"},"jobPosts":{"type":"number","description":"Job posts allowed over the whole subscription.","example":5},"price":{"$ref":"#/components/schemas/PriceDto"},"durationDays":{"type":"number","description":"How long a subscription lasts, in days.","example":30}},"required":["id","name","description","jobPosts","price","durationDays"]},"AppPackageListDto":{"type":"object","properties":{"items":{"description":"Active packages, in display order.","type":"array","items":{"$ref":"#/components/schemas/AppPackageDto"}}},"required":["items"]},"EstablishmentDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"mobile":{"type":"string","description":"E.164.","example":"+966551234567"},"status":{"type":"string","example":"active","enum":["active","disabled"]},"language":{"type":"string","description":"Used when a request sends no language (`PATCH /account`).","example":"ar","enum":["ar","en"]},"createdAt":{"format":"date-time","type":"string"}},"required":["id","mobile","status","language","createdAt"]},"EstablishmentSessionDto":{"type":"object","properties":{"accessToken":{"type":"string","description":"The session token, shown only once. Send it as `Authorization: Bearer …`.","example":"mt_est_3q2-7wEvxN1c9kP0YyR5bA8dF6gH4jL2mZ1xV7sT0uQ"},"establishment":{"$ref":"#/components/schemas/EstablishmentDto"}},"required":["accessToken","establishment"]},"EditorDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","example":"سارة العتيبي"}},"required":["id","name"]},"ReportReasonDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"nameAr":{"type":"string"},"nameEn":{"type":"string"},"active":{"type":"boolean"},"position":{"type":"number","description":"0-based display order.","example":0},"usageCount":{"type":"number","description":"Reports using it: when above 0 it can't be deleted.","example":3},"updatedAt":{"format":"date-time","type":"string"},"updatedBy":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/EditorDto"}]}},"required":["id","nameAr","nameEn","active","position","usageCount","updatedAt","updatedBy"]},"ReportReasonListDto":{"type":"object","properties":{"items":{"description":"In display order.","type":"array","items":{"$ref":"#/components/schemas/ReportReasonDto"}}},"required":["items"]},"ReorderDto":{"type":"object","properties":{"ids":{"description":"Every id, each once, in the new order.","uniqueItems":true,"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid"}}},"required":["ids"]},"CreateReportReasonDto":{"type":"object","properties":{"nameAr":{"type":"string","example":"إعلان مضلل أو وظيفة وهمية","minLength":1,"maxLength":100},"nameEn":{"type":"string","example":"Misleading or fake job","minLength":1,"maxLength":100},"active":{"type":"boolean","description":"Shown in the app. Defaults to true."}},"required":["nameAr","nameEn"]},"UpdateReportReasonDto":{"type":"object","properties":{"nameAr":{"type":"string","minLength":1,"maxLength":100},"nameEn":{"type":"string","minLength":1,"maxLength":100},"active":{"type":"boolean","description":"Inactive reasons leave the app's list but stay on old reports."}}},"AdminJobEstablishmentDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","nullable":true,"example":"شركة الحلول التقنية"},"status":{"type":"string","example":"active","enum":["active","disabled"]}},"required":["id","name","status"]},"AdminJobRowDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"JOB-000123"},"title":{"type":"string","example":"Software engineer"},"establishment":{"$ref":"#/components/schemas/AdminJobEstablishmentDto"},"city":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/CityDto"}]},"employmentType":{"type":"string","example":"full_time","enum":["hourly","full_time","part_time"]},"workplaceType":{"type":"string","example":"onsite","enum":["onsite","remote","hybrid"]},"salary":{"$ref":"#/components/schemas/SalaryDto"},"vacancies":{"type":"number","example":2},"startDate":{"type":"string","description":"The job's own start day.","example":"2026-10-01"},"endDate":{"type":"string","nullable":true,"description":"Its end day; null when open-ended.","example":"2026-12-31"},"status":{"type":"string","description":"As shown: a lapsed active job is `expired`.","enum":["closed","active","paused","blocked","expired"]},"blockedBy":{"type":"string","nullable":true,"description":"Who blocked it, when blocked.","enum":["admin","auto"]},"applicantCount":{"type":"number","description":"Applications except withdrawn ones.","example":12},"reportCount":{"type":"number","example":2},"publishedAt":{"format":"date-time","type":"string"},"expiresAt":{"format":"date-time","type":"string"},"actions":{"type":"array","description":"The row's menu.","example":["block","close","edit"],"items":{"type":"string","enum":["close","edit","block","republish"]}}},"required":["id","number","title","establishment","city","employmentType","workplaceType","salary","vacancies","startDate","endDate","status","blockedBy","applicantCount","reportCount","publishedAt","expiresAt","actions"]},"AdminJobPageDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AdminJobRowDto"}},"page":{"type":"number","example":1},"limit":{"type":"number","example":20},"total":{"type":"number","example":125}},"required":["items","page","limit","total"]},"AdminJobEstablishmentDetailsDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","nullable":true,"example":"شركة الحلول التقنية"},"status":{"example":"active","enum":["active","disabled"],"type":"string"},"logo":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/LogoDto"}]},"mobile":{"type":"string","nullable":true,"description":"For the admin to call (applicants' contact details stay hidden)."}},"required":["id","name","status","logo","mobile"]},"AdminJobStatsDto":{"type":"object","properties":{"views":{"type":"number","example":234},"applicants":{"type":"number","example":12},"newApplicants":{"type":"number","example":7},"reports":{"type":"number","example":2}},"required":["views","applicants","newApplicants","reports"]},"AdminJobBlockDto":{"type":"object","properties":{"by":{"type":"string","description":"`admin` or `auto` (after reports).","enum":["admin","auto"]},"reason":{"type":"string","nullable":true,"description":"The admin's reason; null for an automatic block."}},"required":["by","reason"]},"AdminJobReportDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"REP-000045"},"reporter":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true}},"required":["id","name"]},"reason":{"type":"object","properties":{"id":{"type":"string"},"nameAr":{"type":"string"},"nameEn":{"type":"string"}},"required":["id","nameAr","nameEn"]},"notes":{"type":"string","nullable":true},"createdAt":{"format":"date-time","type":"string"}},"required":["id","number","reporter","reason","notes","createdAt"]},"JobHistoryActorDto":{"type":"object","properties":{"type":{"type":"string","example":"admin","enum":["admin","establishment","system"]},"id":{"type":"string","nullable":true,"description":"Null for the system."},"name":{"type":"string","nullable":true,"description":"The admin's or establishment's name; null for the system."}},"required":["type","id","name"]},"JobHistoryEntryDto":{"type":"object","properties":{"fromStatus":{"type":"string","nullable":true,"description":"Null when the job was published.","enum":["closed","active","paused","blocked","expired"]},"toStatus":{"type":"string","enum":["closed","active","paused","blocked","expired"]},"reason":{"type":"string","nullable":true,"description":"A block reason, `auto: 5 reports`, or `edited: title`."},"actor":{"$ref":"#/components/schemas/JobHistoryActorDto"},"createdAt":{"format":"date-time","type":"string"}},"required":["fromStatus","toStatus","reason","actor","createdAt"]},"AdminJobDetailsDto":{"type":"object","properties":{"salary":{"$ref":"#/components/schemas/EmployeeSalaryDto"},"establishment":{"$ref":"#/components/schemas/AdminJobEstablishmentDetailsDto"},"stats":{"$ref":"#/components/schemas/AdminJobStatsDto"},"blocked":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/AdminJobBlockDto"}]},"closedAt":{"format":"date-time","type":"string","nullable":true},"reports":{"description":"The latest 20, newest first (all of them: API-076).","type":"array","items":{"$ref":"#/components/schemas/AdminJobReportDto"}},"history":{"description":"Newest first.","type":"array","items":{"$ref":"#/components/schemas/JobHistoryEntryDto"}},"actions":{"type":"array","example":["block","close","edit"],"items":{"type":"string","enum":["close","edit","block","republish"]}},"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"JOB-000123"},"title":{"type":"string"},"description":{"type":"string"},"responsibilities":{"type":"array","items":{"type":"string"}},"requirements":{"type":"array","items":{"type":"string"}},"employmentType":{"enum":["hourly","full_time","part_time"],"type":"string"},"workplaceType":{"enum":["onsite","remote","hybrid"],"type":"string"},"city":{"nullable":true,"description":"Null for remote jobs.","type":"object","allOf":[{"$ref":"#/components/schemas/CityDto"}]},"startDate":{"type":"string","example":"2026-10-15"},"endDate":{"type":"string","nullable":true,"description":"Null: open-ended.","example":"2026-12-31"},"vacancies":{"type":"number"},"filled":{"type":"number","description":"Vacancies with an accepted candidate (BUG-62); equal to `vacancies`\nwhen the job is full and takes no applicants.","example":1},"status":{"example":"active","enum":["closed","active","paused","blocked","expired"],"type":"string"},"publishedAt":{"format":"date-time","type":"string"},"expiresAt":{"format":"date-time","type":"string","description":"When it stops being listed, unless extended."}},"required":["salary","establishment","stats","blocked","closedAt","reports","history","actions","id","number","title","description","responsibilities","requirements","employmentType","workplaceType","city","startDate","endDate","vacancies","filled","status","publishedAt","expiresAt"]},"BlockJobDto":{"type":"object","properties":{"reason":{"type":"string","description":"Shown to the establishment.","example":"Misleading salary information","minLength":1,"maxLength":500}},"required":["reason"]},"AdminEditJobDto":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","minLength":1,"maxLength":5000},"responsibilities":{"uniqueItems":true,"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","maxLength":200,"minLength":1}},"requirements":{"uniqueItems":true,"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","maxLength":200,"minLength":1}}}},"ReportReporterDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","nullable":true,"example":"أحمد علي"}},"required":["id","name"]},"LatestReportDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"REP-000045"},"reporter":{"$ref":"#/components/schemas/ReportReporterDto"},"createdAt":{"format":"date-time","type":"string"}},"required":["id","number","reporter","createdAt"]},"ReportedJobDto":{"type":"object","properties":{"number":{"type":"string","example":"JOB-000123"},"title":{"type":"string","example":"Software engineer"},"status":{"type":"string","description":"As shown: a lapsed active job is `expired`.","enum":["closed","active","paused","blocked","expired"]},"blockedBy":{"type":"string","nullable":true,"description":"Who blocked it, when blocked.","enum":["admin","auto"]}},"required":["number","title","status","blockedBy"]},"ReportEstablishmentDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","nullable":true,"example":"شركة الحلول التقنية"},"status":{"type":"string","description":"For the activate or deactivate action (the establishments route).","enum":["active","disabled"]}},"required":["id","name","status"]},"AdminReportRowDto":{"type":"object","properties":{"jobId":{"type":"string","description":"Opens `GET reports/{jobId}`.","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"latestReport":{"$ref":"#/components/schemas/LatestReportDto"},"job":{"$ref":"#/components/schemas/ReportedJobDto"},"establishment":{"$ref":"#/components/schemas/ReportEstablishmentDto"},"reportCount":{"type":"number","description":"Every report on the job.","example":3},"jobActions":{"type":"array","description":"`block` or `republish` when allowed (`POST jobs/{id}/…`).","example":["block"],"items":{"type":"string","enum":["block","republish"]}}},"required":["jobId","latestReport","job","establishment","reportCount","jobActions"]},"AdminReportPageDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AdminReportRowDto"}},"page":{"type":"number","example":1},"limit":{"type":"number","example":20},"total":{"type":"number","example":12}},"required":["items","page","limit","total"]},"ReportedJobDetailsDto":{"type":"object","properties":{"number":{"type":"string","example":"JOB-000123"},"title":{"type":"string","example":"Software engineer"},"status":{"description":"As shown: a lapsed active job is `expired`.","enum":["closed","active","paused","blocked","expired"],"type":"string"},"blockedBy":{"nullable":true,"description":"Who blocked it, when blocked.","enum":["admin","auto"],"type":"string"},"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"blockedReason":{"type":"string","nullable":true,"description":"The admin's reason; null for an automatic block."},"publishedAt":{"format":"date-time","type":"string"}},"required":["number","title","status","blockedBy","id","blockedReason","publishedAt"]},"ReportEstablishmentDetailsDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","nullable":true,"example":"شركة الحلول التقنية"},"status":{"description":"For the activate or deactivate action (the establishments route).","enum":["active","disabled"],"type":"string"},"mobile":{"type":"string","nullable":true,"example":"+966551234567"}},"required":["id","name","status","mobile"]},"ReportReporterDetailsDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","nullable":true,"example":"أحمد علي"},"mobile":{"type":"string","nullable":true,"description":"Null once the employee deleted their account.","example":"+966551234567"}},"required":["id","name","mobile"]},"ReportReasonNamesDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"nameAr":{"type":"string","example":"إعلان مضلل"},"nameEn":{"type":"string","example":"Misleading job"}},"required":["id","nameAr","nameEn"]},"ReportItemDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"REP-000045"},"reporter":{"$ref":"#/components/schemas/ReportReporterDetailsDto"},"reason":{"$ref":"#/components/schemas/ReportReasonNamesDto"},"notes":{"type":"string","nullable":true,"example":"The salary in the ad is not real"},"createdAt":{"format":"date-time","type":"string"}},"required":["id","number","reporter","reason","notes","createdAt"]},"AdminReportDetailsDto":{"type":"object","properties":{"job":{"$ref":"#/components/schemas/ReportedJobDetailsDto"},"establishment":{"$ref":"#/components/schemas/ReportEstablishmentDetailsDto"},"reports":{"description":"Every report, newest first.","type":"array","items":{"$ref":"#/components/schemas/ReportItemDto"}},"jobActions":{"type":"array","example":["republish"],"items":{"type":"string","enum":["block","republish"]}}},"required":["job","establishment","reports","jobActions"]},"FinancePackageDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"nameAr":{"type":"string","example":"الباقة الذهبية"},"nameEn":{"type":"string","example":"Gold"},"durationDays":{"type":"number","description":"In days.","example":90},"status":{"type":"string","example":"active","enum":["active","disabled"]}},"required":["id","nameAr","nameEn","durationDays","status"]},"FinanceRowDto":{"type":"object","properties":{"package":{"$ref":"#/components/schemas/FinancePackageDto"},"price":{"description":"The package's current price, VAT included, with its parts.","allOf":[{"$ref":"#/components/schemas/PriceDto"}]},"subscriptionCount":{"type":"number","description":"Purchases in the filter.","example":12},"subscriberCount":{"type":"number","description":"Distinct establishments among them.","example":10},"total":{"description":"What those subscriptions brought in, at the prices paid: `amount` (VAT\nincluded), `net` (the app's profit) and `vat`, VAT rounded per\nsubscription.","allOf":[{"$ref":"#/components/schemas/PriceDto"}]}},"required":["package","price","subscriptionCount","subscriberCount","total"]},"FinanceTotalsDto":{"type":"object","properties":{"amount":{"type":"number","description":"What the establishment pays, VAT included (SAR).","example":99},"vat":{"type":"number","example":12.91},"net":{"type":"number","description":"Without VAT; `net + vat = amount`.","example":86.09},"currency":{"type":"string","example":"SAR"},"subscriptionCount":{"type":"number","example":40}},"required":["amount","vat","net","currency","subscriptionCount"]},"FinancePageDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/FinanceRowDto"}},"page":{"type":"number","example":1},"limit":{"type":"number","example":20},"total":{"type":"number","description":"Packages in the filter.","example":3},"totals":{"description":"The whole filter, not just this page: the sum of every row.","allOf":[{"$ref":"#/components/schemas/FinanceTotalsDto"}]}},"required":["items","page","limit","total","totals"]},"BroadcastAdminDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","example":"مدير النظام"}},"required":["id","name"]},"BroadcastDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"titleAr":{"type":"string","example":"تحديث جديد"},"titleEn":{"type":"string","example":"New update"},"bodyAr":{"type":"string","example":"أضفنا ميزات جديدة إلى التطبيق."},"bodyEn":{"type":"string","example":"We added new features to the app."},"recipientTypes":{"type":"array","example":["employee"],"items":{"type":"string","enum":["employee","establishment"]}},"allEmployees":{"type":"boolean","example":true},"allEstablishments":{"type":"boolean","example":false},"status":{"type":"string","description":"`sending` while the notifications go out.","example":"sent","enum":["failed","sending","sent"]},"recipientCount":{"type":"number","description":"Active recipients when it was created.","example":1500},"sentCount":{"type":"number","description":"Notifications written so far.","example":1500},"createdBy":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/BroadcastAdminDto"}]},"createdAt":{"format":"date-time","type":"string"},"sentAt":{"format":"date-time","type":"string","nullable":true}},"required":["id","titleAr","titleEn","bodyAr","bodyEn","recipientTypes","allEmployees","allEstablishments","status","recipientCount","sentCount","createdBy","createdAt","sentAt"]},"BroadcastPageDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BroadcastDto"}},"page":{"type":"number","example":1},"limit":{"type":"number","example":20},"total":{"type":"number","example":12}},"required":["items","page","limit","total"]},"BroadcastAccountDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","nullable":true,"example":"سارة العمري"},"mobile":{"type":"string","nullable":true,"description":"Null once the account was deleted.","example":"+966551234567"}},"required":["id","name","mobile"]},"RecipientPageDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BroadcastAccountDto"}},"page":{"type":"number","example":1},"limit":{"type":"number","example":20},"total":{"type":"number","example":125}},"required":["items","page","limit","total"]},"BroadcastPickedDto":{"type":"object","properties":{"employees":{"type":"array","items":{"$ref":"#/components/schemas/BroadcastAccountDto"}},"establishments":{"type":"array","items":{"$ref":"#/components/schemas/BroadcastAccountDto"}}},"required":["employees","establishments"]},"BroadcastDetailsDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"titleAr":{"type":"string","example":"تحديث جديد"},"titleEn":{"type":"string","example":"New update"},"bodyAr":{"type":"string","example":"أضفنا ميزات جديدة إلى التطبيق."},"bodyEn":{"type":"string","example":"We added new features to the app."},"recipientTypes":{"type":"array","example":["employee"],"items":{"type":"string","enum":["employee","establishment"]}},"allEmployees":{"type":"boolean","example":true},"allEstablishments":{"type":"boolean","example":false},"status":{"description":"`sending` while the notifications go out.","example":"sent","enum":["failed","sending","sent"],"type":"string"},"recipientCount":{"type":"number","description":"Active recipients when it was created.","example":1500},"sentCount":{"type":"number","description":"Notifications written so far.","example":1500},"createdBy":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/BroadcastAdminDto"}]},"createdAt":{"format":"date-time","type":"string"},"sentAt":{"format":"date-time","type":"string","nullable":true},"recipients":{"$ref":"#/components/schemas/BroadcastPickedDto"}},"required":["id","titleAr","titleEn","bodyAr","bodyEn","recipientTypes","allEmployees","allEstablishments","status","recipientCount","sentCount","createdBy","createdAt","sentAt","recipients"]},"BroadcastAudienceDto":{"type":"object","properties":{"recipientTypes":{"type":"array","example":["employee","establishment"],"uniqueItems":true,"minItems":1,"items":{"type":"string","enum":["employee","establishment"]}},"allEmployees":{"type":"boolean","description":"Every active employee."},"employeeIds":{"description":"From `GET broadcasts/recipients?type=employee`.","uniqueItems":true,"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid"}},"allEstablishments":{"type":"boolean","description":"Every active establishment."},"establishmentIds":{"description":"From `GET broadcasts/recipients?type=establishment`.","uniqueItems":true,"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid"}}},"required":["recipientTypes"]},"RecipientCountDto":{"type":"object","properties":{"employees":{"type":"number","example":1200},"establishments":{"type":"number","example":300},"total":{"type":"number","example":1500}},"required":["employees","establishments","total"]},"CreateBroadcastDto":{"type":"object","properties":{"recipientTypes":{"type":"array","example":["employee","establishment"],"uniqueItems":true,"minItems":1,"items":{"type":"string","enum":["employee","establishment"]}},"allEmployees":{"type":"boolean","description":"Every active employee."},"employeeIds":{"description":"From `GET broadcasts/recipients?type=employee`.","uniqueItems":true,"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid"}},"allEstablishments":{"type":"boolean","description":"Every active establishment."},"establishmentIds":{"description":"From `GET broadcasts/recipients?type=establishment`.","uniqueItems":true,"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid"}},"titleAr":{"type":"string","example":"تحديث جديد","minLength":2,"maxLength":50},"titleEn":{"type":"string","example":"New update","minLength":2,"maxLength":50},"bodyAr":{"type":"string","example":"أضفنا ميزات جديدة إلى التطبيق.","minLength":2,"maxLength":500},"bodyEn":{"type":"string","example":"We added new features to the app.","minLength":2,"maxLength":500}},"required":["recipientTypes","titleAr","titleEn","bodyAr","bodyEn"]},"AdminChatPartyDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","nullable":true,"description":"Null when not set or the account was deleted.","example":"سارة العمري"}},"required":["id","name"]},"AdminChatApplicationDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"APP-2026-000031"},"status":{"type":"string","example":"contacted","enum":["accepted","submitted","viewed","shortlisted","contacted","interviewing","offered","rejected","position_filled","withdrawn","job_closed"]}},"required":["id","number","status"]},"AdminConversationRowDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"employee":{"$ref":"#/components/schemas/AdminChatPartyDto"},"application":{"$ref":"#/components/schemas/AdminChatApplicationDto"},"messageCount":{"type":"number","example":14},"lastMessageAt":{"format":"date-time","type":"string","nullable":true,"description":"Null before the first message."},"createdAt":{"format":"date-time","type":"string"},"closed":{"type":"boolean","description":"Read-only for the participants (the application ended without a hire)."}},"required":["id","employee","application","messageCount","lastMessageAt","createdAt","closed"]},"AdminConversationPageDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AdminConversationRowDto"}},"page":{"type":"number","example":1},"limit":{"type":"number","example":20},"total":{"type":"number","example":3}},"required":["items","page","limit","total"]},"AdminChatJobDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"JOB-000123"},"title":{"type":"string","example":"Graphic designer"}},"required":["id","number","title"]},"AdminConversationDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"employee":{"$ref":"#/components/schemas/AdminChatPartyDto"},"application":{"$ref":"#/components/schemas/AdminChatApplicationDto"},"messageCount":{"type":"number","example":14},"lastMessageAt":{"format":"date-time","type":"string","nullable":true,"description":"Null before the first message."},"createdAt":{"format":"date-time","type":"string"},"closed":{"type":"boolean","description":"Read-only for the participants (the application ended without a hire)."},"job":{"$ref":"#/components/schemas/AdminChatJobDto"},"establishment":{"$ref":"#/components/schemas/AdminChatPartyDto"}},"required":["id","employee","application","messageCount","lastMessageAt","createdAt","closed","job","establishment"]},"AdminMessageDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"sender":{"type":"string","description":"Who wrote it.","example":"establishment","enum":["employee","establishment"]},"type":{"type":"string","example":"text","enum":["file","text","image","voice"]},"text":{"type":"string","nullable":true},"file":{"nullable":true,"description":"The attachment, a signed link.","type":"object","allOf":[{"$ref":"#/components/schemas/FileDto"}]},"durationMs":{"type":"number","nullable":true,"description":"Voice notes.","example":12500},"read":{"type":"boolean","description":"The other participant has read it."},"createdAt":{"format":"date-time","type":"string"}},"required":["id","sender","type","text","file","durationMs","read","createdAt"]},"AdminMessagesPageDto":{"type":"object","properties":{"items":{"description":"Newest first: reverse them for display.","type":"array","items":{"$ref":"#/components/schemas/AdminMessageDto"}},"nextCursor":{"type":"string","nullable":true,"description":"Pass as `cursor` for older messages; null at the start."}},"required":["items","nextCursor"]},"AppAccountDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"mobile":{"type":"string","description":"E.164.","example":"+966551234567"},"status":{"type":"string","example":"active","enum":["active","disabled"]},"language":{"type":"string","example":"ar","enum":["ar","en"]},"name":{"type":"string","nullable":true,"description":"The name from their profile (CV or establishment), null until set.","example":"مؤسسة الرواد للتوظيف"},"logoUrl":{"type":"string","nullable":true,"description":"Establishments only: the logo's public URL, null when none."},"avatarUrl":{"type":"string","nullable":true,"description":"Employees only: the profile photo's public URL, null when none."},"email":{"type":"string","nullable":true,"description":"The email, null when none: from an employee's CV, or an\nestablishment's official contact email (BUG-16).","example":"sara@example.com"},"adsCount":{"type":"number","description":"Establishments only: how many job posts (ads) they have, any status.","example":3},"createdAt":{"format":"date-time","type":"string"},"lastSignInAt":{"format":"date-time","type":"string","nullable":true}},"required":["id","mobile","status","language","createdAt","lastSignInAt"]},"AppAccountPageDto":{"type":"object","properties":{"items":{"description":"Newest first.","type":"array","items":{"$ref":"#/components/schemas/AppAccountDto"}},"page":{"type":"number","example":1},"limit":{"type":"number","example":20},"total":{"type":"number","example":120}},"required":["items","page","limit","total"]},"AppAccountDetailDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"mobile":{"type":"string","description":"E.164.","example":"+966551234567"},"status":{"example":"active","enum":["active","disabled"],"type":"string"},"language":{"example":"ar","enum":["ar","en"],"type":"string"},"name":{"type":"string","nullable":true,"description":"The name from their profile (CV or establishment), null until set.","example":"مؤسسة الرواد للتوظيف"},"logoUrl":{"type":"string","nullable":true,"description":"Establishments only: the logo's public URL, null when none."},"avatarUrl":{"type":"string","nullable":true,"description":"Employees only: the profile photo's public URL, null when none."},"email":{"type":"string","nullable":true,"description":"The email, null when none: from an employee's CV, or an\nestablishment's official contact email (BUG-16).","example":"sara@example.com"},"adsCount":{"type":"number","description":"Establishments only: how many job posts (ads) they have, any status.","example":3},"createdAt":{"format":"date-time","type":"string"},"lastSignInAt":{"format":"date-time","type":"string","nullable":true},"activeSessions":{"type":"number","description":"Devices signed in now.","example":1},"disabledReason":{"type":"string","nullable":true,"description":"Why an admin deactivated it, while disabled; null otherwise.","example":"Posted misleading job ads."},"cv":{"description":"Employees only: the CV, read-only (file URLs are signed).","allOf":[{"$ref":"#/components/schemas/CvDto"}]},"profile":{"description":"Establishments only: the home header details.","allOf":[{"$ref":"#/components/schemas/EstablishmentProfileDto"}]},"subscription":{"nullable":true,"description":"Establishments only: the running subscription, or null.","type":"object","allOf":[{"$ref":"#/components/schemas/SubscriptionDto"}]}},"required":["id","mobile","status","language","createdAt","lastSignInAt","activeSessions","disabledReason"]},"AccountStatusDto":{"type":"object","properties":{"status":{"example":"disabled","enum":["active","disabled"],"type":"string"},"reason":{"type":"string","description":"Required when deactivating (BUG-15): at least 3 letters, up to 250\ncharacters. Shown to the user in their email and when they try to\nsign in. Ignored when activating.","example":"Posted misleading job ads."}},"required":["status"]},"AppAccountSessionListDto":{"type":"object","properties":{"items":{"description":"Live sessions, most recently used first (`current` is always false).","type":"array","items":{"$ref":"#/components/schemas/SessionDto"}}},"required":["items"]},"EmployeeRatingEstablishmentDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","nullable":true,"example":"مطاعم الريف"}},"required":["id","name"]},"EmployeeRatingJobDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"number":{"type":"string","example":"JOB-000123"},"title":{"type":"string","example":"مصور فوتوغرافي"}},"required":["id","number","title"]},"EmployeeRatingDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"stars":{"type":"number","example":4},"comment":{"type":"string","nullable":true,"example":"ملتزم بالمواعيد ومتعاون"},"createdAt":{"format":"date-time","type":"string"},"establishment":{"$ref":"#/components/schemas/EmployeeRatingEstablishmentDto"},"job":{"$ref":"#/components/schemas/EmployeeRatingJobDto"}},"required":["id","stars","comment","createdAt","establishment","job"]},"EmployeeRatingPageDto":{"type":"object","properties":{"items":{"description":"Newest first.","type":"array","items":{"$ref":"#/components/schemas/EmployeeRatingDto"}},"page":{"type":"number","example":1},"limit":{"type":"number","example":20},"total":{"type":"number","example":3}},"required":["items","page","limit","total"]},"UpdateEmployeeDto":{"type":"object","properties":{"name":{"type":"string","example":"سارة العتيبي","minLength":2,"maxLength":100},"mobile":{"type":"string","description":"A Saudi mobile, unique among employees. Changing it signs the employee\nout everywhere; they sign in again with the new number.","example":"0551234567"},"email":{"type":"string","nullable":true,"description":"`null` or blank clears it.","example":"sara@example.com","maxLength":100,"format":"email"}}},"AdminUpdateEstablishmentDto":{"type":"object","properties":{"name":{"type":"string","nullable":true,"description":"2–100 characters; `null` or blank clears it.","example":"مؤسسة الرواد للتوظيف","minLength":2,"maxLength":100},"tagline":{"type":"string","nullable":true,"description":"Up to 150 characters; `null` or blank clears it.","example":"نصنع فرص العمل","maxLength":150},"logoFileId":{"type":"string","nullable":true,"description":"An `establishment_logo` file you uploaded\n(`POST /v1/establishment/files?purpose=establishment_logo`), or `null`\nto remove the logo. The previous logo is deleted.","format":"uuid"},"email":{"type":"string","nullable":true,"description":"The official contact email, unique among establishments (BUG-16);\n`null` or blank clears it.","example":"info@alrowad.sa","maxLength":100,"format":"email"}}},"AccountCountsDto":{"type":"object","properties":{"total":{"type":"number","example":1250},"newThisMonth":{"type":"number","description":"Signed up this (Saudi) month.","example":84}},"required":["total","newThisMonth"]},"SubscriptionCountsDto":{"type":"object","properties":{"active":{"type":"number","description":"Running now.","example":42},"upcoming":{"type":"number","description":"Queued to start after a running one.","example":3}},"required":["active","upcoming"]},"ContactCountsDto":{"type":"object","properties":{"new":{"type":"number","description":"Not opened yet.","example":7}},"required":["new"]},"RevenueDto":{"type":"object","properties":{"total":{"description":"Every paid subscription.","allOf":[{"$ref":"#/components/schemas/PriceDto"}]},"thisMonth":{"description":"Subscriptions bought this (Saudi) month.","allOf":[{"$ref":"#/components/schemas/PriceDto"}]}},"required":["total","thisMonth"]},"PackageRefDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","example":"Basic"}},"required":["id","name"]},"PackageSubscriptionsDto":{"type":"object","properties":{"package":{"$ref":"#/components/schemas/PackageRefDto"},"active":{"type":"number","example":30}},"required":["package","active"]},"JobCountsDto":{"type":"object","properties":{"total":{"type":"number","description":"Every job ever posted, whatever its status now.","example":340},"active":{"type":"number","description":"Open now: listed and not past its listing period.","example":120},"newThisMonth":{"type":"number","description":"Published this Saudi month.","example":25}},"required":["total","active","newThisMonth"]},"OverviewDto":{"type":"object","properties":{"users":{"description":"Employee app accounts.","allOf":[{"$ref":"#/components/schemas/AccountCountsDto"}]},"providers":{"description":"Establishment app accounts.","allOf":[{"$ref":"#/components/schemas/AccountCountsDto"}]},"subscriptions":{"$ref":"#/components/schemas/SubscriptionCountsDto"},"contactMessages":{"$ref":"#/components/schemas/ContactCountsDto"},"revenue":{"description":"Paid subscriptions, VAT included. Nominal in Sprint 1: payments succeed\nwithout a gateway until Sprint 3.","allOf":[{"$ref":"#/components/schemas/RevenueDto"}]},"subscriptionsByPackage":{"description":"Every package in display order, with its running subscriptions.","type":"array","items":{"$ref":"#/components/schemas/PackageSubscriptionsDto"}},"jobs":{"description":"Job posts (API-080).","allOf":[{"$ref":"#/components/schemas/JobCountsDto"}]},"generatedAt":{"type":"string","description":"When the numbers were counted (they're cached for a minute).","example":"2026-09-27T10:00:00.000Z"}},"required":["users","providers","subscriptions","contactMessages","revenue","subscriptionsByPackage","jobs","generatedAt"]},"SignUpPointDto":{"type":"object","properties":{"start":{"type":"string","description":"The bucket's first day.","example":"2026-09-01"},"employees":{"type":"number","example":12},"establishments":{"type":"number","example":3}},"required":["start","employees","establishments"]},"SignUpsDto":{"type":"object","properties":{"interval":{"type":"string","example":"day","enum":["month","day","week"]},"from":{"type":"string","example":"2026-09-01"},"to":{"type":"string","example":"2026-09-30"},"points":{"description":"Every bucket from `from` to `to`, zeros included.","type":"array","items":{"$ref":"#/components/schemas/SignUpPointDto"}}},"required":["interval","from","to","points"]},"JobPointDto":{"type":"object","properties":{"start":{"type":"string","description":"The month's or day's first day (Saudi calendar).","example":"2026-09-01"},"jobs":{"type":"number","description":"Jobs published in it.","example":12}},"required":["start","jobs"]},"JobsSeriesDto":{"type":"object","properties":{"year":{"type":"number","example":2026},"month":{"type":"number","nullable":true,"description":"Null for the whole year."},"points":{"description":"Every month of the year (or day of the month), zeros included.","type":"array","items":{"$ref":"#/components/schemas/JobPointDto"}}},"required":["year","month","points"]},"PackageImageDto":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string","description":"Public URL."}},"required":["id","url"]},"PackageDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"nameAr":{"type":"string"},"nameEn":{"type":"string"},"image":{"nullable":true,"description":"Null only for packages added before images were required.","type":"object","allOf":[{"$ref":"#/components/schemas/PackageImageDto"}]},"jobPosts":{"type":"number","description":"Job posts over the whole subscription.","example":5},"price":{"$ref":"#/components/schemas/PriceDto"},"durationDays":{"type":"number","example":30},"subscriberCount":{"type":"number","description":"Establishments that ever subscribed, paid or pending, as the finance\nreport counts them (BUG-21).","example":12},"activeSubscriberCount":{"type":"number","description":"Live establishments with a subscription to it running now.","example":4},"status":{"example":"active","enum":["active","disabled"],"type":"string"},"position":{"type":"number","description":"0-based display order.","example":0},"updatedAt":{"format":"date-time","type":"string"},"updatedBy":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/EditorDto"}]}},"required":["id","nameAr","nameEn","image","jobPosts","price","durationDays","subscriberCount","activeSubscriberCount","status","position","updatedAt","updatedBy"]},"PackageListDto":{"type":"object","properties":{"items":{"description":"In display order.","type":"array","items":{"$ref":"#/components/schemas/PackageDto"}}},"required":["items"]},"CreatePackageDto":{"type":"object","properties":{"nameAr":{"type":"string","description":"Arabic letters and numbers, 2–100 characters.","example":"الباقة الأساسية","minLength":2,"maxLength":100},"nameEn":{"type":"string","description":"English letters and numbers, 2–100 characters.","example":"Basic","minLength":2,"maxLength":100},"descriptionAr":{"type":"object","description":"Ignored: the line under the name is the same for every package\n(BUG-20). Still accepted so an older dashboard can save.","deprecated":true},"descriptionEn":{"type":"object","description":"Ignored, as `descriptionAr`.","deprecated":true},"imageFileId":{"type":"string","description":"A `package_image` file you uploaded\n(`POST /v1/admin/files?purpose=package_image`).","format":"uuid"},"durationDays":{"type":"number","description":"How long a subscription lasts, in days (1–1095).","example":30,"minimum":1},"jobPosts":{"type":"number","description":"Job posts allowed over the whole subscription (1–10,000).","example":5,"minimum":1},"price":{"type":"number","description":"SAR, VAT included, at most 2 decimals; 0 for a free package.","example":99}},"required":["nameAr","nameEn","imageFileId","durationDays","jobPosts","price"]},"UpdatePackageDto":{"type":"object","properties":{"nameAr":{"type":"string","minLength":2,"maxLength":100},"nameEn":{"type":"string","minLength":2,"maxLength":100},"descriptionAr":{"type":"object","description":"Ignored: the line under the name is the same for every package\n(BUG-20). Still accepted so an older dashboard can save.","deprecated":true},"descriptionEn":{"type":"object","description":"Ignored, as `descriptionAr`.","deprecated":true},"imageFileId":{"type":"string","description":"A new `package_image` file; the previous one is deleted.","format":"uuid"},"durationDays":{"type":"number","minimum":1},"jobPosts":{"type":"number","minimum":1},"price":{"type":"number","example":129.5}}},"ChangeStatusDto":{"type":"object","properties":{"status":{"example":"disabled","enum":["active","disabled"],"type":"string"}},"required":["status"]},"SenderDto":{"type":"object","properties":{"type":{"type":"string","example":"employee","enum":["employee","establishment"]},"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}},"required":["type","id"]},"ContactMessageDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"app":{"type":"string","description":"The app it was sent from.","enum":["employee","establishment"]},"sender":{"nullable":true,"description":"The signed-in account that sent it; null for a guest.","type":"object","allOf":[{"$ref":"#/components/schemas/SenderDto"}]},"name":{"type":"string"},"email":{"type":"string"},"mobile":{"type":"string","example":"+966551234567"},"type":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/MessageTypeDto"}]},"body":{"type":"string","description":"The message; the first 200 characters in lists."},"status":{"type":"string","description":"`new` is unread; `read` is read, not replied; `replied` is replied\n(and read).","example":"new","enum":["read","new","replied"]},"createdAt":{"format":"date-time","type":"string"},"readAt":{"format":"date-time","type":"string","nullable":true},"repliedAt":{"format":"date-time","type":"string","nullable":true,"description":"When it was replied to; null while not replied."}},"required":["id","app","sender","name","email","mobile","type","body","status","createdAt","readAt","repliedAt"]},"ContactMessagePageDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ContactMessageDto"}},"page":{"type":"number","example":1},"limit":{"type":"number","example":20},"total":{"type":"number","example":42}},"required":["items","page","limit","total"]},"ContactReplyDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"body":{"type":"string"},"sentTo":{"type":"string","description":"The address it was emailed to."},"admin":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/EditorDto"}]},"createdAt":{"format":"date-time","type":"string"}},"required":["id","body","sentTo","admin","createdAt"]},"ContactMessageDetailDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"app":{"description":"The app it was sent from.","enum":["employee","establishment"],"type":"string"},"sender":{"nullable":true,"description":"The signed-in account that sent it; null for a guest.","type":"object","allOf":[{"$ref":"#/components/schemas/SenderDto"}]},"name":{"type":"string"},"email":{"type":"string"},"mobile":{"type":"string","example":"+966551234567"},"type":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/MessageTypeDto"}]},"body":{"type":"string","description":"The message; the first 200 characters in lists."},"status":{"description":"`new` is unread; `read` is read, not replied; `replied` is replied\n(and read).","example":"new","enum":["read","new","replied"],"type":"string"},"createdAt":{"format":"date-time","type":"string"},"readAt":{"format":"date-time","type":"string","nullable":true},"repliedAt":{"format":"date-time","type":"string","nullable":true,"description":"When it was replied to; null while not replied."},"replies":{"description":"Oldest first.","type":"array","items":{"$ref":"#/components/schemas/ContactReplyDto"}}},"required":["id","app","sender","name","email","mobile","type","body","status","createdAt","readAt","repliedAt","replies"]},"ReplyDto":{"type":"object","properties":{"body":{"type":"string","description":"Plain text, 3–250 characters with at least 3 letters or digits,\nemailed to the sender in the message's language.","example":"شكرًا لتواصلك، يمكنك إضافة سيرتك من صفحة الملف الشخصي.","minLength":3,"maxLength":250}},"required":["body"]},"SettingDto":{"type":"object","properties":{"key":{"type":"string","example":"contact_channels"},"label":{"type":"string","description":"In the request's language.","example":"Contact channels"},"value":{"type":"object","description":"The saved value, or the default while never saved."},"updatedAt":{"format":"date-time","type":"string","nullable":true,"description":"Null while never saved."},"updatedBy":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/EditorDto"}]}},"required":["key","label","value","updatedAt","updatedBy"]},"SettingListDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SettingDto"}}},"required":["items"]},"JobSettingsDto":{"type":"object","properties":{"defaultPublicationDays":{"type":"number","description":"How long an open-ended job is listed, in days (1–365).","example":30,"minimum":1,"maximum":365},"autoBlockThreshold":{"type":"number","description":"Reports from different employees that block a job automatically\n(1–1000).","example":5,"minimum":1,"maximum":1000}}},"AdminLoginDto":{"type":"object","properties":{"email":{"type":"string","description":"Case and surrounding spaces are ignored.","example":"admin@motaah.sa","maxLength":254,"format":"email"},"password":{"type":"string","example":"Password1","maxLength":128},"deviceName":{"type":"string","description":"A name for this device, shown in the signed-in devices list.","example":"Chrome on macOS","maxLength":100}},"required":["email","password"]},"AvatarDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"url":{"type":"string","description":"A permanent public URL."}},"required":["id","url"]},"AdminRoleDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","description":"In the request's language.","example":"Super Admin"},"isSystem":{"type":"boolean","description":"The Super Admin role: all permissions, can't be changed."}},"required":["id","name","isSystem"]},"AdminDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"name":{"type":"string","example":"سارة العتيبي"},"email":{"type":"string","example":"admin@motaah.sa"},"mobile":{"type":"string","nullable":true,"description":"E.164; null until the admin adds one (BUG-07).","example":"+966551234567"},"status":{"example":"active","enum":["active","disabled"],"type":"string"},"language":{"description":"Used when a request sends no language, and for emails.","example":"ar","enum":["ar","en"],"type":"string"},"avatar":{"nullable":true,"description":"The profile picture; null when none.","type":"object","allOf":[{"$ref":"#/components/schemas/AvatarDto"}]},"role":{"$ref":"#/components/schemas/AdminRoleDto"},"permissions":{"description":"What this admin may do: `[\"*\"]` for everything, otherwise catalogue\nnames such as `packages.create` (every action includes its `view`).","example":["packages.view","packages.create"],"type":"array","items":{"type":"string"}},"lastSignInAt":{"format":"date-time","type":"string","nullable":true},"signInCount":{"type":"number","description":"Successful sign-ins to the dashboard.","example":12},"createdAt":{"format":"date-time","type":"string"}},"required":["id","name","email","mobile","status","language","avatar","role","permissions","lastSignInAt","signInCount","createdAt"]},"AdminSessionDto":{"type":"object","properties":{"accessToken":{"type":"string","description":"The session token, shown only once. Send it as `Authorization: Bearer …`.","example":"mt_adm_3q2-7wEvxN1c9kP0YyR5bA8dF6gH4jL2mZ1xV7sT0uQ"},"admin":{"$ref":"#/components/schemas/AdminDto"}},"required":["accessToken","admin"]},"ForgotPasswordDto":{"type":"object","properties":{"email":{"type":"string","example":"admin@motaah.sa","maxLength":254,"format":"email"}},"required":["email"]},"ForgotPasswordResponseDto":{"type":"object","properties":{"resendAfterSeconds":{"type":"number","description":"When \"resend code\" may be offered. The same for every email, so the\nanswer never tells whether an account exists.","example":60},"expiresInSeconds":{"type":"number","example":600}},"required":["resendAfterSeconds","expiresInSeconds"]},"VerifyResetCodeDto":{"type":"object","properties":{"email":{"type":"string","example":"admin@motaah.sa","maxLength":254,"format":"email"},"code":{"type":"string","description":"The 4-digit code from the email (Arabic-Indic digits and spaces are\naccepted).","example":"482913"}},"required":["email","code"]},"ResetTokenDto":{"type":"object","properties":{"resetToken":{"type":"string","description":"Sets the new password with `POST /auth/reset-password`, once, within\n10 minutes.","example":"q2-7wEvxN1c9kP0YyR5bA8dF6gH4jL2mZ1xV7sT0uQ"}},"required":["resetToken"]},"ResetPasswordDto":{"type":"object","properties":{"token":{"type":"string","description":"The `resetToken` from `POST /auth/verify-reset-code`.","maxLength":100},"password":{"type":"string","description":"The new password: 8–25 characters with a capital letter, a small\nletter and a digit, and no spaces.","example":"NewPassword2"}},"required":["token","password"]},"PermissionDto":{"type":"object","properties":{"key":{"type":"string","example":"packages.create"},"label":{"type":"string","example":"Add"}},"required":["key","label"]},"PermissionAreaDto":{"type":"object","properties":{"area":{"type":"string","example":"packages"},"label":{"type":"string","example":"Packages"},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/PermissionDto"}}},"required":["area","label","permissions"]},"PermissionCatalogueDto":{"type":"object","properties":{"items":{"description":"Dashboard areas in menu order, each with its permissions.","type":"array","items":{"$ref":"#/components/schemas/PermissionAreaDto"}}},"required":["items"]},"UpdateProfileDto":{"type":"object","properties":{"name":{"type":"string","example":"سارة العتيبي","minLength":2,"maxLength":100},"email":{"type":"string","description":"Your sign-in email; changing it needs `currentPassword`.","example":"sara@motaah.sa","maxLength":254,"format":"email"},"mobile":{"type":"string","description":"Your Saudi mobile (`05XXXXXXXX`), stored as E.164; unique among live\nadmins (BUG-07). No password needed.","example":"0551234567"},"currentPassword":{"type":"string","description":"Required when changing `email`.","maxLength":128},"language":{"type":"string","description":"Used when a request sends no language, and for emails to you.","example":"en","enum":["ar","en"]},"avatarFileId":{"type":"string","nullable":true,"description":"An `admin_avatar` file you uploaded (`POST /v1/admin/files?purpose=admin_avatar`),\nor `null` to remove the picture. The previous picture is deleted.","format":"uuid"}}},"ChangePasswordDto":{"type":"object","properties":{"newPassword":{"type":"string","description":"8–25 characters with a capital letter, a small letter and a digit, and\nno spaces.","example":"NewPassword2"}},"required":["newPassword"]},"AdminPageDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AdminDto"}},"page":{"type":"number","example":1},"limit":{"type":"number","example":20},"total":{"type":"number","example":42}},"required":["items","page","limit","total"]},"CreateAdminDto":{"type":"object","properties":{"name":{"type":"string","example":"سارة العتيبي","minLength":2,"maxLength":100},"email":{"type":"string","example":"sara@motaah.sa","maxLength":254,"format":"email"},"password":{"type":"string","description":"The first password, shared with the new admin: 8–25 characters with a\ncapital letter, a small letter and a digit, and no spaces.","example":"Welcome2026"},"roleId":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b","format":"uuid"},"mobile":{"type":"string","description":"A Saudi mobile (`05XXXXXXXX`, or `+966…`), stored as E.164; unique\namong live admins. Required, as in the BRD (BUG-08).","example":"0551234567"},"avatarFileId":{"type":"string","description":"Optional photo: an `admin_avatar` file you uploaded\n(`POST /v1/admin/files?purpose=admin_avatar`).","format":"uuid"}},"required":["name","email","password","roleId","mobile"]},"UpdateAdminDto":{"type":"object","properties":{"name":{"type":"string","example":"سارة العتيبي","minLength":2,"maxLength":100},"email":{"type":"string","example":"sara@motaah.sa","maxLength":254,"format":"email"},"password":{"type":"string","description":"Sets a new password and signs the admin out everywhere.","example":"NewPassword2"},"roleId":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b","format":"uuid"},"mobile":{"type":"string","description":"A Saudi mobile (`05XXXXXXXX`, or `+966…`), stored as E.164; unique\namong live admins (BUG-07).","example":"0551234567"},"avatarFileId":{"type":"string","nullable":true,"description":"A new photo (an `admin_avatar` file you uploaded), or `null` to remove\nit. The previous one is deleted.","format":"uuid"}}},"RoleDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"nameAr":{"type":"string","example":"مشرف الباقات"},"nameEn":{"type":"string","example":"Packages manager"},"name":{"type":"string","description":"The name in the request's language.","example":"Packages manager"},"permissions":{"description":"As stored (`[\"*\"]` for the Super Admin role). Each action also grants\nits area's `view` when checked.","example":["packages.view","packages.create"],"type":"array","items":{"type":"string"}},"status":{"example":"active","enum":["active","disabled"],"type":"string"},"isSystem":{"type":"boolean","description":"The Super Admin role, which can't be changed or deleted."},"adminCount":{"type":"number","description":"Admins (not deleted) with this role.","example":3},"createdAt":{"format":"date-time","type":"string"}},"required":["id","nameAr","nameEn","name","permissions","status","isSystem","adminCount","createdAt"]},"RolePageDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/RoleDto"}},"page":{"type":"number","example":1},"limit":{"type":"number","example":20},"total":{"type":"number","example":42}},"required":["items","page","limit","total"]},"CreateRoleDto":{"type":"object","properties":{"nameAr":{"type":"string","example":"مشرف الباقات","minLength":2,"maxLength":100},"nameEn":{"type":"string","example":"Packages manager","minLength":2,"maxLength":100},"permissions":{"description":"Permission names from `GET /v1/admin/auth/permissions`. You can only\ngrant permissions you have yourself.","example":["packages.view","packages.create","packages.update"],"uniqueItems":true,"minItems":1,"type":"array","items":{"type":"string"}}},"required":["nameAr","nameEn","permissions"]},"UpdateRoleDto":{"type":"object","properties":{"nameAr":{"type":"string","example":"مشرف الباقات","minLength":2,"maxLength":100},"nameEn":{"type":"string","example":"Packages manager","minLength":2,"maxLength":100},"permissions":{"description":"Replaces the role's permissions.","example":["packages.view","packages.update"],"uniqueItems":true,"minItems":1,"type":"array","items":{"type":"string"}}}},"PageDto":{"type":"object","properties":{"key":{"example":"about","enum":["about","terms_employee","terms_establishment","privacy_employee","privacy_establishment"],"type":"string"},"titleAr":{"type":"string"},"titleEn":{"type":"string"},"contentAr":{"type":"string","description":"Sanitized rich text (HTML)."},"contentEn":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"},"updatedBy":{"nullable":true,"description":"The admin who last saved it; null for seeded or removed admins.","type":"object","allOf":[{"$ref":"#/components/schemas/EditorDto"}]}},"required":["key","titleAr","titleEn","contentAr","contentEn","updatedAt","updatedBy"]},"PageListDto":{"type":"object","properties":{"items":{"description":"About, Terms, Privacy and the contact text.","type":"array","items":{"$ref":"#/components/schemas/PageDto"}}},"required":["items"]},"UpdatePageDto":{"type":"object","properties":{"titleAr":{"type":"string","example":"من نحن","minLength":1,"maxLength":300},"titleEn":{"type":"string","example":"About us","minLength":1,"maxLength":300},"contentAr":{"type":"string","description":"Rich text (HTML from the dashboard editor). Sanitized on save; may be\nempty, and the apps then show the other language.","example":"<h2>رؤيتنا</h2><p>منصة تربط الباحثين عن عمل بالمنشآت.</p>"},"contentEn":{"type":"string","example":"<h2>Our vision</h2><p>A platform connecting job seekers and employers.</p>"}},"required":["titleAr","titleEn","contentAr","contentEn"]},"FaqDto":{"type":"object","properties":{"id":{"type":"string","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"},"questionAr":{"type":"string"},"questionEn":{"type":"string"},"answerAr":{"type":"string"},"answerEn":{"type":"string"},"position":{"type":"number","description":"0-based display order.","example":0},"updatedAt":{"format":"date-time","type":"string"},"updatedBy":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/EditorDto"}]}},"required":["id","questionAr","questionEn","answerAr","answerEn","position","updatedAt","updatedBy"]},"FaqListDto":{"type":"object","properties":{"items":{"description":"In display order.","type":"array","items":{"$ref":"#/components/schemas/FaqDto"}}},"required":["items"]},"CreateFaqDto":{"type":"object","properties":{"questionAr":{"type":"string","example":"كيف أنشئ حسابًا؟","minLength":1,"maxLength":300},"questionEn":{"type":"string","example":"How do I create an account?","minLength":1,"maxLength":300},"answerAr":{"type":"string","description":"Rich text, sanitized on save.","example":"<p>سجّل برقم جوالك وأدخل رمز التحقق.</p>"},"answerEn":{"type":"string","example":"<p>Register with your mobile number and enter the code.</p>"}},"required":["questionAr","questionEn","answerAr","answerEn"]},"UpdateFaqDto":{"type":"object","properties":{"questionAr":{"type":"string","minLength":1,"maxLength":300},"questionEn":{"type":"string","minLength":1,"maxLength":300},"answerAr":{"type":"string"},"answerEn":{"type":"string"}}},"RealtimeTicketDto":{"type":"object","properties":{"ticket":{"type":"string","description":"Send as `auth: { ticket }` when connecting.","example":"rt_Q2h1…"},"expiresAt":{"format":"date-time","type":"string","description":"The ticket works once, until then."}},"required":["ticket","expiresAt"]},"ErrorResponse":{"type":"object","required":["code","message","requestId"],"properties":{"code":{"type":"string","enum":["VALIDATION_FAILED","INVALID_JSON","UNAUTHORIZED","FORBIDDEN","ACCOUNT_DISABLED","NOT_FOUND","CONFLICT","PAYLOAD_TOO_LARGE","TOO_MANY_REQUESTS","INVALID_CREDENTIALS","PASSWORD_INCORRECT","RESET_TOKEN_INVALID","RESET_CODE_INVALID","EMAIL_TAKEN","MOBILE_TAKEN","ACCOUNT_MOBILE_TAKEN","ACCOUNT_EMAIL_TAKEN","CONTACT_MESSAGE_REPLIED","ROLE_NAME_TAKEN","ROLE_IN_USE","SYSTEM_ROLE_LOCKED","SUPER_ADMIN_PROTECTED","SUPER_ADMIN_ROLE_RESERVED","SELF_CHANGE_NOT_ALLOWED","FAQ_ORDER_MISMATCH","PACKAGE_NAME_TAKEN","PACKAGE_IN_USE","REPORT_REASON_IN_USE","REPORT_REASON_ORDER_MISMATCH","PACKAGE_ORDER_MISMATCH","SUBSCRIPTION_QUEUE_FULL","STATISTICS_RANGE_INVALID","CV_SECTION_FULL","CITY_NOT_FOUND","SUBSCRIPTION_REQUIRED","JOB_POST_QUOTA_REACHED","JOB_ACTION_NOT_ALLOWED","APPLICATION_ACTION_NOT_ALLOWED","JOB_TERMS_LOCKED","JOB_CLOSED","VACANCIES_FILLED","CONVERSATION_CLOSED","JOB_NOT_AVAILABLE","ALREADY_APPLIED","ALREADY_REPORTED","ALREADY_RATED","MOBILE_CHANGE_NOT_ALLOWED","CV_REQUIRED","AI_LIMIT_REACHED","AI_UNAVAILABLE","MOBILE_NOT_REGISTERED","MOBILE_ALREADY_REGISTERED","MOBILE_UNCHANGED","OTP_INVALID","OTP_EXPIRED","OTP_TOO_MANY_ATTEMPTS","OTP_RESEND_TOO_SOON","SMS_UNAVAILABLE","MAIL_UNAVAILABLE","REALTIME_UNAVAILABLE","FILE_REQUIRED","FILE_TOO_LARGE","FILE_TYPE_NOT_ALLOWED","INTERNAL_ERROR"],"description":"Stable error code. Clients branch on this.","example":"NOT_FOUND"},"message":{"type":"string","description":"Translated message for display.","example":"The requested item was not found"},"details":{"type":"array","description":"Field problems, only for `VALIDATION_FAILED`.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","description":"Dotted path, for example `address.city`.","example":"name"},"message":{"type":"string","example":"Must not be empty"}}}},"requestId":{"type":"string","description":"Same as the `X-Request-Id` response header.","example":"0199a3c4-5b6e-7f80-9a1b-2c3d4e5f6a7b"}}}},"parameters":{"AcceptLanguage":{"name":"Accept-Language","in":"header","required":false,"description":"Language of messages. Arabic by default.","schema":{"type":"string","enum":["ar","en"],"default":"ar"}}}}}