{
    "openapi": "3.1.2",
    "info": {
        "title": "Stampfactory API",
        "version": "1.0.0",
        "description": "REST API f\u00fcr die Stampfactory Zeiterfassungs- und Personalverwaltungsplattform.\n\n## Basis-URL\n\nJeder Mandant hat eine eigene Subdomain: `https://{tenant}.stamp.eu/rest/\u2026`.\nCustom Domains werden unterst\u00fctzt; der Pfad-Pr\u00e4fix ist immer `/rest`.\nAuthentifizierung \u00fcber `POST /rest/login` (Bearer-Token, Laravel Sanctum).\n\n## Datenformate (verbindlich, ADR 0005)\n\n| Typ | Format | Beispiel |\n|---|---|---|\n| Dauer (Anzeige) | String `HH:MM:SS.mmm`, Feldname ohne Suffix | `\"08:00:00.000\"` |\n| Dauer (Rohwert) | Integer Millisekunden, Feldname mit Suffix `_ms` | `28800000` |\n| Datum | ISO 8601 (`YYYY-MM-DD`) | `\"2026-07-25\"` |\n| Fachliche Zeitstempel (Stempelungen, Korrekturen) | ISO 8601 in Mandanten-Zeitzone | `\"2026-07-25T08:00:00+02:00\"` |\n| Technische Metadaten (`created_at`, `updated_at`) | ISO 8601 UTC | `\"2026-07-25T06:00:00+00:00\"` |\n| IDs | UUID bzw. TypeID-String | `\"9d3f\u2026\"` |\n| Arbeitszeit-Flags | Integer-Bitmaske (`flags`), Bits siehe `WorkingTimeFlag` | `512` = Feiertag |\n| Monats-Perioden | `YYYY-MM` | `\"2026-07\"` |\n\n## Responses\n\nErfolgs-Responses liefern die fachliche Payload unter `data`\n(dokumentierte Ausnahmen: `POST /rest/terminal/{code}` und `/rest/mobile`).\nListen sind, wo paginiert, im Laravel-Paginator-Format (`data` + `links` + `meta`).\n\n## Fehlerformat\n\nAlle Fehler (4xx/5xx) folgen einem einheitlichen Envelope:\n\n```json\n{\n  \"request_id\": \"\u2026\",\n  \"timestamp\": \"2026-07-25T06:00:00Z\",\n  \"message\": \"Menschlich lesbare Meldung\",\n  \"field_errors\": { \"feld\": [\"Meldung\"] },\n  \"errors\": [{ \"title\": \"\u2026\", \"detail\": \"\u2026\", \"type\": \"https://docs.stampfactory.eu/errors#\u2026\", \"_meta\": { } }]\n}\n```\n\n`field_errors` erscheint bei Validierungsfehlern (422). Endpoint-spezifische\nZusatzdaten (z. B. `warnings`, `earliest`, `code`) stehen kanonisch in\n`errors[0]._meta`; Top-Level-Duplikate sind eine \u00dcbergangs-Kompatibilit\u00e4tsschicht.\nDie `type`-URLs verlinken auf die Fehlerdokumentation."
    },
    "servers": [
        {
            "url": "https://{tenant}.stamp.eu/rest",
            "description": "Production",
            "variables": {
                "tenant": {
                    "default": "demo",
                    "description": "Subdomain des Mandanten"
                }
            }
        }
    ],
    "security": [
        {
            "http": []
        }
    ],
    "paths": {
        "/departments": {
            "get": {
                "operationId": "tenant.departments.index",
                "tags": [
                    "Abteilungen"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `DepartmentResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/DepartmentResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.departments.store",
                "tags": [
                    "Abteilungen"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreDepartmentRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`DepartmentResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/DepartmentResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/departments/{department}": {
            "get": {
                "operationId": "tenant.departments.show",
                "tags": [
                    "Abteilungen"
                ],
                "parameters": [
                    {
                        "name": "department",
                        "in": "path",
                        "required": true,
                        "description": "The department ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`DepartmentResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/DepartmentResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.departments.update",
                "tags": [
                    "Abteilungen"
                ],
                "parameters": [
                    {
                        "name": "department",
                        "in": "path",
                        "required": true,
                        "description": "The department ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreDepartmentRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`DepartmentResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/DepartmentResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.departments.destroy",
                "tags": [
                    "Abteilungen"
                ],
                "parameters": [
                    {
                        "name": "department",
                        "in": "path",
                        "required": true,
                        "description": "The department ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/leave_requests/{year}": {
            "get": {
                "operationId": "tenant.leave_requests.index",
                "summary": "GET /rest/leave_requests/{year} \u2014 Leave requests for a year, scoped to\nthe employees the requester may see (own data for regular employees,\nunit + sub-units for managers, everything for admins). Absence records\ninclude health data, so cross-employee leakage must be prevented",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `LeaveRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/LeaveRequestResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "employee_name",
                                                            "absence_type",
                                                            "days",
                                                            "valued_total",
                                                            "decided_by_name"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/absence_overview/{year}": {
            "get": {
                "operationId": "tenant.absence_overview",
                "summary": "GET /rest/absence_overview/{year} \u2014 Gantt chart data: leave requests + holidays per employee",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "surname": {
                                                        "type": "string"
                                                    },
                                                    "avatar_url": {
                                                        "type": "string"
                                                    },
                                                    "deleted": {
                                                        "type": "boolean"
                                                    },
                                                    "entries": {
                                                        "type": "array",
                                                        "items": {
                                                            "anyOf": [
                                                                {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "id": {
                                                                            "type": "string"
                                                                        },
                                                                        "type": {
                                                                            "type": "string"
                                                                        },
                                                                        "status": {
                                                                            "type": "string"
                                                                        },
                                                                        "start": {
                                                                            "type": "string"
                                                                        },
                                                                        "end": {
                                                                            "type": "string"
                                                                        },
                                                                        "days": {
                                                                            "type": "string"
                                                                        },
                                                                        "reason": {
                                                                            "type": "string"
                                                                        }
                                                                    },
                                                                    "required": [
                                                                        "id",
                                                                        "type",
                                                                        "status",
                                                                        "start",
                                                                        "end",
                                                                        "days",
                                                                        "reason"
                                                                    ]
                                                                },
                                                                {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "id": {
                                                                            "type": "string"
                                                                        },
                                                                        "type": {
                                                                            "type": "string",
                                                                            "const": "holiday"
                                                                        },
                                                                        "name": {
                                                                            "type": "string"
                                                                        },
                                                                        "start": {
                                                                            "type": "string"
                                                                        },
                                                                        "end": {
                                                                            "type": "string"
                                                                        },
                                                                        "half_day": {
                                                                            "type": "string"
                                                                        }
                                                                    },
                                                                    "required": [
                                                                        "id",
                                                                        "type",
                                                                        "name",
                                                                        "start",
                                                                        "end",
                                                                        "half_day"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "surname",
                                                    "avatar_url",
                                                    "deleted",
                                                    "entries"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/leave_requests": {
            "post": {
                "operationId": "tenant.leave_requests.store",
                "summary": "POST /rest/leave_requests \u2014 Self-service: employee creates own leave request",
                "tags": [
                    "Abwesenheiten"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreLeaveRequestRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`LeaveRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/LeaveRequestResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "No employee record linked to this user."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/leave_requests/{leaveRequest}": {
            "delete": {
                "operationId": "tenant.leave_requests.withdraw",
                "description": "Self-service: employees can withdraw own pending future requests.\nManagers: can delete any leave request within their unit scope.",
                "summary": "DELETE /rest/leave_requests/{leaveRequest}",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "leaveRequest",
                        "in": "path",
                        "required": true,
                        "description": "The leave request ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Antrag zur\u00fcckgezogen."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Nicht berechtigt."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "An error\n\nAn error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "anyOf": [
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "description": "Error overview.",
                                                    "examples": [
                                                        "Nur ausstehende oder freigegebene Antr\u00e4ge k\u00f6nnen zur\u00fcckgezogen werden."
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "message"
                                            ]
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "description": "Error overview.",
                                                    "examples": [
                                                        "Vergangene Antr\u00e4ge k\u00f6nnen nicht zur\u00fcckgezogen werden."
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "message"
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.leave_requests.decide",
                "description": "The route has no {employee} segment, so the manager middleware cannot\nenforce the unit scope \u2014 it is checked explicitly here.",
                "summary": "PUT /rest/leave_requests/{leaveRequest} \u2014 Approve or deny",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "leaveRequest",
                        "in": "path",
                        "required": true,
                        "description": "The leave request ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/DecideLeaveRequestRequest"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "unassign_roster_conflicts": {
                                                "type": "boolean",
                                                "default": false
                                            }
                                        }
                                    }
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`LeaveRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/LeaveRequestResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee_name",
                                                        "absence_type",
                                                        "days",
                                                        "valued_total",
                                                        "decided_by_name"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/leave_requests/{leaveRequest}/substitute": {
            "put": {
                "operationId": "tenant.leave_requests.substitute",
                "summary": "PUT /rest/leave_requests/{leaveRequest}/substitute \u2014 The nominated\nsubstitute confirms or declines covering the absence. Only the substitute\nemployee themselves may respond, and only while the substitution is still\npending",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "leaveRequest",
                        "in": "path",
                        "required": true,
                        "description": "The leave request ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RespondSubstituteRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`LeaveRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/LeaveRequestResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee_name",
                                                        "absence_type",
                                                        "days",
                                                        "valued_total",
                                                        "substitute",
                                                        "decided_by_name"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Nicht berechtigt."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/vacations": {
            "get": {
                "operationId": "tenant.employees.vacations.index",
                "summary": "GET /rest/employees/{employee}/vacations \u2014 Vacation requests",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `LeaveRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/LeaveRequestResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "absence_type",
                                                            "days",
                                                            "valued_total",
                                                            "decided_by_name"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.employees.vacations.store",
                "summary": "PUT /rest/employees/{employee}/vacations \u2014 Create vacation request",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreLeaveRequestRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`LeaveRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/LeaveRequestResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/business_trips": {
            "get": {
                "operationId": "tenant.employees.business_trips.index",
                "summary": "GET /rest/employees/{employee}/business_trips",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `LeaveRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/LeaveRequestResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "absence_type",
                                                            "days",
                                                            "valued_total",
                                                            "decided_by_name"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.employees.business_trips.store",
                "summary": "PUT /rest/employees/{employee}/business_trips \u2014 Create business trip",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreLeaveRequestRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`LeaveRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/LeaveRequestResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/illnesses": {
            "get": {
                "operationId": "tenant.employees.illnesses.index",
                "summary": "GET /rest/employees/{employee}/illnesses",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `LeaveRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/LeaveRequestResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "absence_type",
                                                            "days",
                                                            "valued_total",
                                                            "decided_by_name"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.employees.illnesses.store",
                "summary": "PUT /rest/employees/{employee}/illnesses \u2014 Create illness record",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreLeaveRequestRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`LeaveRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/LeaveRequestResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/overtime_compensations": {
            "get": {
                "operationId": "tenant.employees.overtime_compensations.index",
                "summary": "GET /rest/employees/{employee}/overtime_compensations",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `LeaveRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/LeaveRequestResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "absence_type",
                                                            "days",
                                                            "valued_total",
                                                            "decided_by_name"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.employees.overtime_compensations.store",
                "summary": "PUT /rest/employees/{employee}/overtime_compensations \u2014 Create overtime comp",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreLeaveRequestRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`LeaveRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/LeaveRequestResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/staffing_check/{start}/{end}": {
            "get": {
                "operationId": "tenant.employees.staffing_check",
                "summary": "GET /rest/employees/{employee}/staffing_check/{start}/{end} \u2014 Read-only\nstaffing indicator for a prospective absence in the period. Never blocks",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "ok": {
                                                    "type": "boolean"
                                                },
                                                "level": {
                                                    "type": "string"
                                                },
                                                "mode": {
                                                    "type": "string"
                                                },
                                                "unit_size": {
                                                    "type": "integer"
                                                },
                                                "affected_days": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "date": {
                                                                "type": "string"
                                                            },
                                                            "concurrent_absent": {
                                                                "type": "integer"
                                                            },
                                                            "would_understaff": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "date",
                                                            "concurrent_absent",
                                                            "would_understaff"
                                                        ]
                                                    }
                                                },
                                                "message_key": {
                                                    "type": "string"
                                                },
                                                "message_data": {
                                                    "type": "object",
                                                    "additionalProperties": {}
                                                }
                                            },
                                            "required": [
                                                "ok",
                                                "level",
                                                "mode",
                                                "unit_size",
                                                "affected_days",
                                                "message_key",
                                                "message_data"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/absence_overlaps/{year}": {
            "get": {
                "operationId": "tenant.employees.absence_overlaps",
                "description": "Keyed by leave request id. An empty object is returned when the unit\nhides overlap counts (`perm_absence_overlap`) or has no requests.",
                "summary": "GET /rest/employees/{employee}/absence_overlaps/{year} \u2014 Overlap counts per leave request",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "additionalProperties": {
                                                "type": "object",
                                                "properties": {
                                                    "company_count": {
                                                        "type": "integer"
                                                    },
                                                    "team_count": {
                                                        "type": "integer"
                                                    }
                                                },
                                                "required": [
                                                    "company_count",
                                                    "team_count"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/leave_requests/{leaveRequest}/doctor_visit": {
            "put": {
                "operationId": "tenant.leave_requests.doctor_visit",
                "description": "The route has no {employee} segment, so the unit scope is checked here (like decide).",
                "summary": "PUT /rest/leave_requests/{leaveRequest}/doctor_visit \u2014 Nachtr\u00e4gliche \u00c4nderung von\n\u201eArztbesuch\" (und optional \u201eAU dem Arbeitgeber gemeldet\") an einer Krankmeldung einer\neAU-relevanten Art. Sind danach beide Angaben ja, entsteht der eAU-Entwurf (bei aktivem\nModul); wird eine verneint, wird ein noch nicht versendeter Entwurf invalidiert",
                "tags": [
                    "Abwesenheiten"
                ],
                "parameters": [
                    {
                        "name": "leaveRequest",
                        "in": "path",
                        "required": true,
                        "description": "The leave request ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateLeaveRequestDoctorVisitRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`LeaveRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/LeaveRequestResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee_name",
                                                        "absence_type",
                                                        "days",
                                                        "valued_total",
                                                        "decided_by_name"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/working_time/{start}/{end}": {
            "get": {
                "operationId": "tenant.working_time.index",
                "summary": "GET /rest/working_time/{start}/{end} \u2014 All employees working time",
                "tags": [
                    "Arbeitszeiten"
                ],
                "parameters": [
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "employee_id": {
                                                        "type": "string"
                                                    },
                                                    "days": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "array",
                                                            "items": {}
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "employee_id",
                                                    "days"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/corrections/pending": {
            "get": {
                "operationId": "tenant.corrections.pending",
                "summary": "GET /rest/corrections/pending \u2014 central queue of all open correction\nrequests for the employees the manager can see (unit-scoped), grouped per\nemployee + date. Read-only; decisions run over approve/reject or bulk",
                "tags": [
                    "Arbeitszeiten"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "items": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "employee": {
                                                        "type": "object",
                                                        "additionalProperties": {}
                                                    },
                                                    "date": {
                                                        "type": "string"
                                                    },
                                                    "reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "created_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "entries": {
                                                        "type": "array",
                                                        "items": {}
                                                    },
                                                    "original_entries": {
                                                        "type": "array",
                                                        "items": {}
                                                    },
                                                    "original_net_ms": {
                                                        "type": "integer"
                                                    },
                                                    "proposed_net_ms": {
                                                        "type": "integer"
                                                    },
                                                    "delta_ms": {
                                                        "type": "integer"
                                                    },
                                                    "assessment": {
                                                        "type": "string"
                                                    },
                                                    "age_days": {
                                                        "type": "integer"
                                                    }
                                                },
                                                "required": [
                                                    "employee",
                                                    "date",
                                                    "reason",
                                                    "created_at",
                                                    "entries",
                                                    "original_entries",
                                                    "original_net_ms",
                                                    "proposed_net_ms",
                                                    "delta_ms",
                                                    "assessment",
                                                    "age_days"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "items"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Keine Berechtigung f\u00fcr Zeitkorrekturen."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/corrections/bulk": {
            "post": {
                "operationId": "tenant.corrections.bulk",
                "summary": "POST /rest/corrections/bulk \u2014 approve or reject many correction requests\nin one call. Each item is decided with the exact same logic as the single\napprove/reject endpoints (notifications, webhooks, overtime recalc,\npayroll-period lock, resolving the manager notification). A failing item\n(closed period, out of scope, nothing pending) does not abort the rest",
                "tags": [
                    "Arbeitszeiten"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/BulkCorrectionDecisionRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "processed": {
                                            "type": "integer"
                                        },
                                        "failed": {
                                            "type": "array",
                                            "items": {
                                                "anyOf": [
                                                    {
                                                        "type": "object",
                                                        "properties": {
                                                            "employee_id": {
                                                                "type": "string"
                                                            },
                                                            "date": {
                                                                "type": "string"
                                                            },
                                                            "message": {
                                                                "type": "string",
                                                                "const": "Keine Berechtigung f\u00fcr diese Mitarbeitende."
                                                            }
                                                        },
                                                        "required": [
                                                            "employee_id",
                                                            "date",
                                                            "message"
                                                        ]
                                                    },
                                                    {
                                                        "type": "object",
                                                        "properties": {
                                                            "employee_id": {
                                                                "type": "string"
                                                            },
                                                            "date": {
                                                                "type": "string"
                                                            },
                                                            "message": {
                                                                "type": "string",
                                                                "const": "Keine ausstehenden Korrekturen gefunden."
                                                            }
                                                        },
                                                        "required": [
                                                            "employee_id",
                                                            "date",
                                                            "message"
                                                        ]
                                                    },
                                                    {
                                                        "type": "object",
                                                        "properties": {
                                                            "employee_id": {
                                                                "type": "string"
                                                            },
                                                            "date": {
                                                                "type": "string"
                                                            },
                                                            "message": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "employee_id",
                                                            "date",
                                                            "message"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "processed",
                                        "failed"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Keine Berechtigung f\u00fcr Zeitkorrekturen."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/working_time/{start}/{end}": {
            "get": {
                "operationId": "tenant.employees.working_time.show",
                "summary": "GET /rest/employees/{employee}/working_time/{start}/{end} \u2014 Single employee",
                "tags": [
                    "Arbeitszeiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "employee_id": {
                                                    "type": "string"
                                                },
                                                "days": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "array",
                                                        "items": {}
                                                    }
                                                }
                                            },
                                            "required": [
                                                "employee_id",
                                                "days"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/working_time": {
            "put": {
                "operationId": "tenant.employees.working_time.store",
                "description": "Replaces all altered events for a given date with new ones.",
                "summary": "PUT /rest/employees/{employee}/working_time \u2014 Manual time correction",
                "tags": [
                    "Arbeitszeiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreAlteredEventRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Array of `AlteredEventResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/AlteredEventResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Keine Berechtigung f\u00fcr Zeitkorrekturen."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.employees.working_time.destroy",
                "description": "Removes the active correction entirely (manager undoing an approved change).\nTo decline a still-pending employee request, use reject() instead so the\nrequest stays in the history with a reason.",
                "summary": "DELETE /rest/employees/{employee}/working_time \u2014 Revert an applied correction",
                "tags": [
                    "Arbeitszeiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "date",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/working_time/withdraw": {
            "patch": {
                "operationId": "tenant.employees.working_time.withdraw",
                "summary": "PATCH /rest/employees/{employee}/working_time/withdraw \u2014 Self-service:\nthe employee retracts their own still-pending correction for a day.\nManagers do not use this (they approve/reject instead)",
                "tags": [
                    "Arbeitszeiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/WithdrawAlteredEventRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Korrektur zur\u00fcckgezogen."
                                        },
                                        "deleted": {}
                                    },
                                    "required": [
                                        "message",
                                        "deleted"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Es k\u00f6nnen nur eigene Korrekturen zur\u00fcckgezogen werden."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/working_time_comment": {
            "put": {
                "operationId": "tenant.employees.working_time_comment.store",
                "summary": "PUT /rest/employees/{employee}/working_time_comment \u2014 Add/update comment for a day",
                "tags": [
                    "Arbeitszeiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreWorkingTimeCommentRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "employee_id": {
                                                    "type": "string"
                                                },
                                                "date": {
                                                    "type": "string"
                                                },
                                                "comment": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "employee_id",
                                                "date",
                                                "comment"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/altered_events/{start}/{end}": {
            "get": {
                "operationId": "tenant.employees.altered_events.index",
                "summary": "GET /rest/employees/{employee}/altered_events/{start}/{end}",
                "tags": [
                    "Arbeitszeiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `AlteredEventResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/AlteredEventResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/working_time/approve": {
            "patch": {
                "operationId": "tenant.employees.working_time.approve",
                "summary": "PATCH /rest/employees/{employee}/working_time/approve \u2014 Approve pending corrections",
                "tags": [
                    "Arbeitszeiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ApproveAlteredEventRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Korrektur freigegeben."
                                        },
                                        "updated": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "message",
                                        "updated"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Keine Berechtigung f\u00fcr Zeitkorrekturen."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/working_time/reject": {
            "patch": {
                "operationId": "tenant.employees.working_time.reject",
                "summary": "PATCH /rest/employees/{employee}/working_time/reject \u2014 Decline a pending\ncorrection with a reason. The request is kept (status = rejected) for the\nhistory; the day falls back to its original events",
                "tags": [
                    "Arbeitszeiten"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RejectAlteredEventRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Korrektur abgelehnt."
                                        },
                                        "updated": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "message",
                                        "updated"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Keine Berechtigung f\u00fcr Zeitkorrekturen."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/login": {
            "post": {
                "operationId": "tenant.login",
                "tags": [
                    "Authentifizierung"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/LoginRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "token": {
                                            "type": "string"
                                        },
                                        "user": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/UserResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee"
                                                    ]
                                                }
                                            ]
                                        },
                                        "timezone": {
                                            "type": "string"
                                        },
                                        "modules": {
                                            "type": [
                                                "string",
                                                "array"
                                            ]
                                        },
                                        "app_config": {
                                            "type": "object",
                                            "properties": {
                                                "mobile": {
                                                    "type": "object",
                                                    "properties": {
                                                        "location": {
                                                            "type": "string",
                                                            "enum": [
                                                                "off",
                                                                "optional",
                                                                "required"
                                                            ]
                                                        },
                                                        "clock_comment": {
                                                            "type": "string",
                                                            "enum": [
                                                                "off",
                                                                "optional",
                                                                "required"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "location",
                                                        "clock_comment"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "mobile"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "token",
                                        "user",
                                        "timezone",
                                        "modules",
                                        "app_config"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Invalid credentials."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "get": {
                "operationId": "tenant.me",
                "tags": [
                    "Authentifizierung"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "user": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/UserResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee"
                                                    ]
                                                }
                                            ]
                                        },
                                        "timezone": {
                                            "type": "string"
                                        },
                                        "modules": {
                                            "type": [
                                                "string",
                                                "array"
                                            ]
                                        },
                                        "app_config": {
                                            "type": "object",
                                            "properties": {
                                                "mobile": {
                                                    "type": "object",
                                                    "properties": {
                                                        "location": {
                                                            "type": "string",
                                                            "enum": [
                                                                "off",
                                                                "optional",
                                                                "required"
                                                            ]
                                                        },
                                                        "clock_comment": {
                                                            "type": "string",
                                                            "enum": [
                                                                "off",
                                                                "optional",
                                                                "required"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "location",
                                                        "clock_comment"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "mobile"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "user",
                                        "timezone",
                                        "modules",
                                        "app_config"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.logout",
                "tags": [
                    "Authentifizierung"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Logged out."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.password.change",
                "tags": [
                    "Authentifizierung"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ChangePasswordRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Password changed."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/passwords": {
            "put": {
                "operationId": "tenant.passwords.reset",
                "description": "Sets a new password for employees and creates a reset_passwords entry\nso users see a \"change password\" dialog on next login.\n\nBody: { password: string, all: bool }\n  all=true  \u2192 reset all employees except the requesting user\n  all=false \u2192 reset only employees without a password (hash IS NULL)",
                "summary": "PUT /rest/employees/passwords \u2014 Bulk password reset",
                "tags": [
                    "Authentifizierung"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ResetEmployeePasswordsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        },
                                        "count": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "message",
                                        "count"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/export/logs": {
            "get": {
                "operationId": "tenant.export.logs",
                "description": "Scoped to the requesting user's own export history. The route already\nrequires `time-tracking:export`, but the tenant-wide log additionally\nleaked who exported which employees over which periods; each exporter\nonly needs to see (and re-download context for) their own runs.",
                "summary": "GET /rest/export/logs",
                "tags": [
                    "Export"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "user_id": {
                                                        "type": "string"
                                                    },
                                                    "format": {
                                                        "type": "string"
                                                    },
                                                    "start_date": {
                                                        "type": "string"
                                                    },
                                                    "end_date": {
                                                        "type": "string"
                                                    },
                                                    "employee_count": {
                                                        "type": "integer"
                                                    },
                                                    "warnings": {
                                                        "type": [
                                                            "array",
                                                            "null"
                                                        ],
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "created_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "updated_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "user": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "code": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "code"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "user_id",
                                                    "format",
                                                    "start_date",
                                                    "end_date",
                                                    "employee_count",
                                                    "warnings",
                                                    "created_at",
                                                    "updated_at",
                                                    "user"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/export/{start}/{end}": {
            "get": {
                "operationId": "tenant.export",
                "description": "Formats are registered in the ExportFormat enum \u2014 each maps to an\nExportProvider implementation.",
                "summary": "GET /rest/export/{start}/{end}?format=csv|csv_extended|datev|zucchetti|projects",
                "tags": [
                    "Export"
                ],
                "parameters": [
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Export-Datei als Download. Der tats\u00e4chliche Content-Type richtet sich nach dem gew\u00e4hlten `format` (CSV, DATEV/ASCII, Zucchetti).",
                        "content": {
                            "text/csv": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/holidays_history": {
            "get": {
                "operationId": "tenant.employees.holidays_history.index",
                "summary": "GET /rest/employees/{employee}/holidays_history",
                "tags": [
                    "Feiertagskalender"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `HolidaysHistoryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/HolidaysHistoryResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "holiday"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.employees.holidays_history.update",
                "description": "Replace all assignments for this employee.",
                "summary": "PUT /rest/employees/{employee}/holidays_history",
                "tags": [
                    "Feiertagskalender"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateHolidaysHistoryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Array of `HolidaysHistoryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/HolidaysHistoryResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "holiday"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/holidays": {
            "get": {
                "operationId": "tenant.holidays.index",
                "tags": [
                    "Feiertagskalender"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `HolidayResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/HolidayResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "entries"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.holidays.store",
                "tags": [
                    "Feiertagskalender"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreHolidayRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`HolidayResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/HolidayResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "entries"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/holidays/states": {
            "get": {
                "operationId": "tenant.holidays.states",
                "tags": [
                    "Feiertagskalender"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "key": {
                                                        "type": "string",
                                                        "enum": [
                                                            "NATIONAL",
                                                            "BW",
                                                            "BY",
                                                            "BE",
                                                            "BB",
                                                            "HB",
                                                            "HH",
                                                            "HE",
                                                            "MV",
                                                            "NI",
                                                            "NW",
                                                            "RP",
                                                            "SL",
                                                            "SN",
                                                            "ST",
                                                            "SH",
                                                            "TH"
                                                        ]
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "enum": [
                                                            "Deutschland (alle Bundesl\u00e4nder)",
                                                            "Baden-W\u00fcrttemberg",
                                                            "Bayern",
                                                            "Berlin",
                                                            "Brandenburg",
                                                            "Bremen",
                                                            "Hamburg",
                                                            "Hessen",
                                                            "Mecklenburg-Vorpommern",
                                                            "Niedersachsen",
                                                            "Nordrhein-Westfalen",
                                                            "Rheinland-Pfalz",
                                                            "Saarland",
                                                            "Sachsen",
                                                            "Sachsen-Anhalt",
                                                            "Schleswig-Holstein",
                                                            "Th\u00fcringen"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "key",
                                                    "name"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/holidays/sync": {
            "post": {
                "operationId": "tenant.holidays.sync",
                "tags": [
                    "Feiertagskalender"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SyncPublicHolidayRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`HolidayResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/HolidayResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "entries"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/holidays/{holiday}": {
            "get": {
                "operationId": "tenant.holidays.show",
                "tags": [
                    "Feiertagskalender"
                ],
                "parameters": [
                    {
                        "name": "holiday",
                        "in": "path",
                        "required": true,
                        "description": "The holiday ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`HolidayResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/HolidayResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "entries"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.holidays.update",
                "tags": [
                    "Feiertagskalender"
                ],
                "parameters": [
                    {
                        "name": "holiday",
                        "in": "path",
                        "required": true,
                        "description": "The holiday ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateHolidayRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`HolidayResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/HolidayResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "entries"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.holidays.destroy",
                "tags": [
                    "Feiertagskalender"
                ],
                "parameters": [
                    {
                        "name": "holiday",
                        "in": "path",
                        "required": true,
                        "description": "The holiday ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "422": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Systemkalender k\u00f6nnen nicht gel\u00f6scht werden."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Dieser Feiertagskalender ist Mitarbeitenden zugewiesen und kann nicht gel\u00f6scht werden. Entferne zuerst die Zuweisungen bei den betroffenen Mitarbeitenden."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/careers": {
            "get": {
                "operationId": "tenant.careers.index",
                "summary": "GET /rest/careers \u2014 company name and published postings",
                "tags": [
                    "Karriereseite"
                ],
                "responses": {
                    "200": {
                        "description": "`CareerPageResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CareerPageResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                },
                "security": []
            }
        },
        "/careers/jobs/{slug}": {
            "get": {
                "operationId": "tenant.careers.jobs.show",
                "summary": "GET /rest/careers/jobs/{slug} \u2014 one posting with description, structured data and privacy\nnotice. 404 `careers_not_found` for unknown slugs and drafts, 410 `careers_job_closed` for\nclosed or expired postings",
                "tags": [
                    "Karriereseite"
                ],
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`CareerJobResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CareerJobResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                },
                "security": []
            }
        },
        "/careers/sitemap": {
            "get": {
                "operationId": "tenant.careers.sitemap",
                "summary": "GET /rest/careers/sitemap \u2014 paths and `lastmod` of the published postings",
                "tags": [
                    "Karriereseite"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "lastmod": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "jobs": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "slug": {
                                                                "type": "string"
                                                            },
                                                            "path": {
                                                                "type": "string"
                                                            },
                                                            "lastmod": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "slug",
                                                            "path",
                                                            "lastmod"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "lastmod",
                                                "jobs"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                },
                "security": []
            }
        },
        "/careers/widget": {
            "get": {
                "operationId": "tenant.careers.widget",
                "summary": "GET /rest/careers/widget \u2014 postings in short form plus the widget configuration",
                "tags": [
                    "Karriereseite"
                ],
                "responses": {
                    "200": {
                        "description": "`CareerWidgetResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CareerWidgetResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                },
                "security": []
            }
        },
        "/careers/feed.xml": {
            "get": {
                "operationId": "tenant.careers.feed",
                "summary": "GET /rest/careers/feed.xml \u2014 the published postings of this tenant as generic XML job feed\n(D16, task 11.3) for aggregators the tenant registers with itself. Independent of the opt-out\nof the aggregate feeds. Cacheable for 60 seconds like the other reads",
                "tags": [
                    "Karriereseite"
                ],
                "responses": {
                    "200": {
                        "description": "Stellen als XML-Feed",
                        "content": {
                            "application/xml; charset=UTF-8": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            },
                            "application/xml": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "headers": {
                            "Transfer-Encoding": {
                                "required": true,
                                "schema": {
                                    "type": "string",
                                    "enum": [
                                        "chunked"
                                    ]
                                }
                            }
                        }
                    }
                },
                "security": []
            }
        },
        "/careers/logo": {
            "get": {
                "operationId": "tenant.careers.logo",
                "summary": "GET /rest/careers/logo \u2014 the company logo as PNG (task 9.3), cacheable for a week (the address\nin `company.logo_url` carries the version). 404 `careers_not_found` without a logo",
                "tags": [
                    "Karriereseite"
                ],
                "responses": {
                    "200": {
                        "description": "Firmenlogo als PNG",
                        "content": {
                            "image/png": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "headers": {
                            "Content-Disposition": {
                                "schema": {
                                    "type": "string",
                                    "const": "inline; filename=\"logo.png\""
                                }
                            },
                            "X-Content-Type-Options": {
                                "schema": {
                                    "type": "string",
                                    "const": "nosniff"
                                }
                            },
                            "Content-Security-Policy": {
                                "schema": {
                                    "type": "string",
                                    "const": "default-src 'none'; sandbox"
                                }
                            }
                        }
                    }
                },
                "security": []
            }
        },
        "/careers/altcha-challenge": {
            "get": {
                "operationId": "tenant.careers.altcha-challenge",
                "summary": "GET /rest/careers/altcha-challenge \u2014 ALTCHA challenge bound to this tenant (expires after 10\nminutes). 503 `application_bot_protection_unavailable` when the protection is not configured\nin production",
                "tags": [
                    "Karriereseite"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "algorithm": {
                                            "type": "string"
                                        },
                                        "challenge": {
                                            "type": "string"
                                        },
                                        "maxnumber": {
                                            "type": "integer"
                                        },
                                        "salt": {
                                            "type": "string"
                                        },
                                        "signature": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "algorithm",
                                        "challenge",
                                        "maxnumber",
                                        "salt",
                                        "signature"
                                    ]
                                }
                            }
                        }
                    }
                },
                "security": []
            }
        },
        "/careers/jobs/{slug}/application-drafts": {
            "post": {
                "operationId": "tenant.careers.drafts.store",
                "summary": "POST /rest/careers/jobs/{slug}/application-drafts \u2014 new draft for a published posting.\n422 without privacy acknowledgement or with an invalid, expired or reused ALTCHA payload,\n409 `privacy_notice_outdated` when the echoed notice version is no longer current,\n503 `application_bot_protection_unavailable` when the replay lock cannot be written",
                "tags": [
                    "Karriereseite"
                ],
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreApplicationDraftRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`ApplicationDraftResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ApplicationDraftResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                },
                "security": []
            }
        },
        "/careers/jobs/{slug}/report": {
            "post": {
                "operationId": "tenant.careers.jobs.report",
                "summary": "POST /rest/careers/jobs/{slug}/report \u2014 202 when the report was accepted. 404\n`careers_not_found` for unknown slugs and drafts, 410 `careers_job_closed` for closed or\nexpired postings, 422 for an invalid reason or ALTCHA payload, 503\n`application_bot_protection_unavailable` when the bot protection is not available",
                "tags": [
                    "Karriereseite"
                ],
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ReportJobPostingRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "202": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "status": {
                                                    "type": "string",
                                                    "const": "received"
                                                }
                                            },
                                            "required": [
                                                "status"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                },
                "security": []
            }
        },
        "/careers/application-drafts/documents": {
            "post": {
                "operationId": "tenant.careers.drafts.documents.store",
                "summary": "POST /rest/careers/application-drafts/documents \u2014 exactly one file (`file`, optional `kind`)",
                "tags": [
                    "Karriereseite"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreApplicationDocumentRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`ApplicationDraftDocumentResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ApplicationDraftDocumentResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                },
                "security": [
                    {
                        "applicationDraft": []
                    }
                ]
            }
        },
        "/careers/application-drafts/documents/{document}": {
            "delete": {
                "operationId": "tenant.careers.drafts.documents.destroy",
                "summary": "DELETE /rest/careers/application-drafts/documents/{document}",
                "tags": [
                    "Karriereseite"
                ],
                "parameters": [
                    {
                        "name": "document",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    }
                },
                "security": [
                    {
                        "applicationDraft": []
                    }
                ]
            }
        },
        "/careers/application-drafts/submit": {
            "post": {
                "operationId": "tenant.careers.drafts.submit",
                "summary": "POST /rest/careers/application-drafts/submit \u2014 submits the draft; the token is consumed",
                "tags": [
                    "Karriereseite"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SubmitApplicationDraftRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "status": {
                                                    "type": "string",
                                                    "const": "submitted"
                                                }
                                            },
                                            "required": [
                                                "status"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                },
                "security": [
                    {
                        "applicationDraft": []
                    }
                ]
            }
        },
        "/": {
            "get": {
                "operationId": "tenant.config",
                "tags": [
                    "Konfiguration"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "tenant_name": {
                                            "type": "string"
                                        },
                                        "timezone": {
                                            "type": "string"
                                        },
                                        "tenant_plan": {
                                            "type": "string"
                                        },
                                        "recruiting_only": {
                                            "type": "boolean",
                                            "description": "Free recruiting profile (OpenSpec add-recruiting, D15): the web shell shows only\nrecruiting and settings, `modules` and `available_modules` contain `recruiting` only."
                                        },
                                        "trial_ends_at": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "user": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/UserResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee"
                                                    ]
                                                }
                                            ]
                                        },
                                        "modules": {
                                            "type": "string"
                                        },
                                        "available_modules": {
                                            "type": "array",
                                            "items": {}
                                        },
                                        "add_ons": {
                                            "type": "string"
                                        },
                                        "features": {
                                            "type": "object",
                                            "additionalProperties": {
                                                "type": "string"
                                            }
                                        },
                                        "unit_permissions": {
                                            "anyOf": [
                                                {
                                                    "type": "object",
                                                    "properties": {
                                                        "employees": {
                                                            "type": "string"
                                                        },
                                                        "units": {
                                                            "type": "string"
                                                        },
                                                        "departments": {
                                                            "type": "string"
                                                        },
                                                        "events": {
                                                            "type": "string"
                                                        },
                                                        "leave": {
                                                            "type": "string"
                                                        },
                                                        "schedules": {
                                                            "type": "string"
                                                        },
                                                        "holidays": {
                                                            "type": "string"
                                                        },
                                                        "cost_centers": {
                                                            "type": "string"
                                                        },
                                                        "short_work": {
                                                            "type": "string"
                                                        },
                                                        "export": {
                                                            "type": "string"
                                                        },
                                                        "projects": {
                                                            "type": "string"
                                                        },
                                                        "absence_overlap": {
                                                            "type": "string"
                                                        },
                                                        "mood": {
                                                            "type": "string"
                                                        },
                                                        "documents": {
                                                            "type": "string"
                                                        },
                                                        "personnel_questionnaire": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "employees",
                                                        "units",
                                                        "departments",
                                                        "events",
                                                        "leave",
                                                        "schedules",
                                                        "holidays",
                                                        "cost_centers",
                                                        "short_work",
                                                        "export",
                                                        "projects",
                                                        "absence_overlap",
                                                        "mood",
                                                        "documents",
                                                        "personnel_questionnaire"
                                                    ]
                                                },
                                                {
                                                    "type": "array"
                                                }
                                            ]
                                        },
                                        "compliance": {
                                            "type": "object",
                                            "properties": {
                                                "min_rest_hours": {
                                                    "type": "integer"
                                                },
                                                "night_start": {
                                                    "type": "integer"
                                                },
                                                "night_end": {
                                                    "type": "integer"
                                                },
                                                "min_free_sundays": {
                                                    "type": "integer"
                                                },
                                                "average_period_weeks": {
                                                    "type": "integer"
                                                },
                                                "night_worker_avg_weeks": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "min_rest_hours",
                                                "night_start",
                                                "night_end",
                                                "min_free_sundays",
                                                "average_period_weeks",
                                                "night_worker_avg_weeks"
                                            ]
                                        },
                                        "activities": {
                                            "type": "object",
                                            "properties": {
                                                "required_on_clock_in": {
                                                    "type": "boolean"
                                                }
                                            },
                                            "required": [
                                                "required_on_clock_in"
                                            ]
                                        },
                                        "export_format": {
                                            "type": "string"
                                        },
                                        "language": {
                                            "type": "string"
                                        },
                                        "eau_umgebung": {
                                            "type": "string",
                                            "description": "Read-only, gesetzt nur per Artisan (eau-evpt-sandbox-tenant): `standard` | `evpt`.",
                                            "enum": [
                                                "standard",
                                                "evpt"
                                            ]
                                        },
                                        "eau_testkassen_enabled": {
                                            "type": "boolean",
                                            "description": "Effektive Testkassen-Freigabe (eau-testsystem): Einstellung `eau_testkassen` oder eVpT-Sandbox-Tenant."
                                        },
                                        "eau_live_available": {
                                            "type": "string",
                                            "description": "eAU-Live-Abfrage verf\u00fcgbar (eau-liveanfrage): Flag eau_live_request UND Testbetrieb; im Echtbetrieb\nzeigt das Web weder Sofort\u00fcbertragung noch Sofortabholung."
                                        }
                                    },
                                    "required": [
                                        "tenant_name",
                                        "timezone",
                                        "tenant_plan",
                                        "recruiting_only",
                                        "trial_ends_at",
                                        "user",
                                        "modules",
                                        "available_modules",
                                        "add_ons",
                                        "features",
                                        "unit_permissions",
                                        "compliance",
                                        "activities",
                                        "export_format",
                                        "language",
                                        "eau_umgebung",
                                        "eau_testkassen_enabled",
                                        "eau_live_available"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/config/modules": {
            "patch": {
                "operationId": "tenant.config.modules",
                "tags": [
                    "Konfiguration"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateModulesRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "modules": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "modules"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/cost_centers": {
            "get": {
                "operationId": "tenant.cost_centers.index",
                "tags": [
                    "Kostenstellen"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `CostCenterResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/CostCenterResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.cost_centers.store",
                "tags": [
                    "Kostenstellen"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreCostCenterRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`CostCenterResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CostCenterResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/cost_centers/{costCenter}": {
            "get": {
                "operationId": "tenant.cost_centers.show",
                "tags": [
                    "Kostenstellen"
                ],
                "parameters": [
                    {
                        "name": "costCenter",
                        "in": "path",
                        "required": true,
                        "description": "The cost center ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`CostCenterResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CostCenterResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.cost_centers.update",
                "tags": [
                    "Kostenstellen"
                ],
                "parameters": [
                    {
                        "name": "costCenter",
                        "in": "path",
                        "required": true,
                        "description": "The cost center ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreCostCenterRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`CostCenterResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CostCenterResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.cost_centers.destroy",
                "tags": [
                    "Kostenstellen"
                ],
                "parameters": [
                    {
                        "name": "costCenter",
                        "in": "path",
                        "required": true,
                        "description": "The cost center ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees": {
            "get": {
                "operationId": "tenant.employees.index",
                "tags": [
                    "Mitarbeitende"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EmployeeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/EmployeeResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "unit",
                                                            "location",
                                                            "department",
                                                            "cost_center"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.employees.store",
                "tags": [
                    "Mitarbeitende"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreEmployeeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`EmployeeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EmployeeResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "unit",
                                                        "location",
                                                        "department",
                                                        "cost_center"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "You do not have permission to create employees."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}": {
            "get": {
                "operationId": "tenant.employees.show",
                "tags": [
                    "Mitarbeitende"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`EmployeeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EmployeeResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "unit"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Forbidden."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.employees.update",
                "tags": [
                    "Mitarbeitende"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateEmployeeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EmployeeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EmployeeResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "unit",
                                                        "location",
                                                        "department",
                                                        "cost_center"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "You do not have permission to edit employees."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.employees.destroy",
                "tags": [
                    "Mitarbeitende"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "You do not have permission to delete employees."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/self": {
            "put": {
                "operationId": "tenant.employees.self_update",
                "summary": "PUT /rest/employees/{employee}/self \u2014 Self-service profile update (restricted fields)",
                "tags": [
                    "Mitarbeitende"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SelfUpdateEmployeeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EmployeeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EmployeeResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "unit",
                                                        "location",
                                                        "department",
                                                        "cost_center"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error\n\nAn error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "anyOf": [
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "description": "Error overview.",
                                                    "examples": [
                                                        "This endpoint is for self-service only."
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "message"
                                            ]
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "description": "Error overview.",
                                                    "examples": [
                                                        "Self-service profile editing is not enabled."
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "message"
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/role": {
            "put": {
                "operationId": "tenant.employees.role.assign",
                "tags": [
                    "Mitarbeitende"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AssignRoleRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EmployeeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EmployeeResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "unit"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "You do not have permission to assign roles."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/units": {
            "get": {
                "operationId": "tenant.units.index",
                "tags": [
                    "Organisationseinheiten"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `UnitResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/UnitResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "children"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.units.store",
                "tags": [
                    "Organisationseinheiten"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreUnitRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`UnitResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/UnitResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "children"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/units/{unit}": {
            "get": {
                "operationId": "tenant.units.show",
                "tags": [
                    "Organisationseinheiten"
                ],
                "parameters": [
                    {
                        "name": "unit",
                        "in": "path",
                        "required": true,
                        "description": "The unit ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`UnitResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/UnitResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "children"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.units.update",
                "tags": [
                    "Organisationseinheiten"
                ],
                "parameters": [
                    {
                        "name": "unit",
                        "in": "path",
                        "required": true,
                        "description": "The unit ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateUnitRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`UnitResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/UnitResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "children"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.units.destroy",
                "tags": [
                    "Organisationseinheiten"
                ],
                "parameters": [
                    {
                        "name": "unit",
                        "in": "path",
                        "required": true,
                        "description": "The unit ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/controlling/settings": {
            "put": {
                "operationId": "tenant.controlling.settings.update",
                "summary": "PUT /rest/controlling/settings",
                "tags": [
                    "Personalcontrolling"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateControllingSettingsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ControllingSettingsResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ControllingSettingsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "get": {
                "operationId": "tenant.controlling.settings.show",
                "summary": "GET /rest/controlling/settings",
                "tags": [
                    "Personalcontrolling"
                ],
                "responses": {
                    "200": {
                        "description": "`ControllingSettingsResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ControllingSettingsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/controlling/revenues": {
            "put": {
                "operationId": "tenant.controlling.revenues.update",
                "description": "List upsert: every entry creates or overwrites its month, `amount_cents: null` deletes it.\nAnswers with the stored months of the request.",
                "summary": "PUT /rest/controlling/revenues",
                "tags": [
                    "Personalcontrolling"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateControllingRevenuesRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Array of `ControllingRevenueResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/ControllingRevenueResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "get": {
                "operationId": "tenant.controlling.revenues.index",
                "summary": "GET /rest/controlling/revenues?from=YYYY-MM&to=YYYY-MM",
                "tags": [
                    "Personalcontrolling"
                ],
                "parameters": [
                    {
                        "name": "from",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ControllingRevenueResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/ControllingRevenueResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/controlling/budgets": {
            "post": {
                "operationId": "tenant.controlling.budgets.store",
                "summary": "POST /rest/controlling/budgets",
                "tags": [
                    "Personalcontrolling"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreControllingBudgetRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`ControllingBudgetResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ControllingBudgetResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "get": {
                "operationId": "tenant.controlling.budgets.index",
                "summary": "GET /rest/controlling/budgets",
                "tags": [
                    "Personalcontrolling"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ControllingBudgetResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/ControllingBudgetResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/controlling/budgets/{budget}": {
            "put": {
                "operationId": "tenant.controlling.budgets.update",
                "summary": "PUT /rest/controlling/budgets/{budget}",
                "tags": [
                    "Personalcontrolling"
                ],
                "parameters": [
                    {
                        "name": "budget",
                        "in": "path",
                        "required": true,
                        "description": "The budget ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreControllingBudgetRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ControllingBudgetResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ControllingBudgetResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.controlling.budgets.destroy",
                "summary": "DELETE /rest/controlling/budgets/{budget}",
                "tags": [
                    "Personalcontrolling"
                ],
                "parameters": [
                    {
                        "name": "budget",
                        "in": "path",
                        "required": true,
                        "description": "The budget ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/controlling/recalculate": {
            "post": {
                "operationId": "tenant.controlling.recalculate",
                "description": "Queues one month job per month of `from`..`to`. Answers 409 when a month of the range is being\ncomputed right now.",
                "summary": "POST /rest/controlling/recalculate",
                "tags": [
                    "Personalcontrolling"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RecalculateControllingRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "202": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "months": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "months"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/controlling/{yearMonth}": {
            "get": {
                "operationId": "tenant.controlling.show",
                "description": "The period is the `months` calendar months up to and including `yearMonth`, compared with the\nsame number of months before it.",
                "summary": "GET /rest/controlling/{yearMonth}?months=12",
                "tags": [
                    "Personalcontrolling"
                ],
                "parameters": [
                    {
                        "name": "yearMonth",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "months",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 12
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ControllingOverviewResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ControllingOverviewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/projects/available": {
            "get": {
                "operationId": "tenant.projects.available",
                "summary": "Bookable list for the logged-in employee: active projects only,\nself-service counterpart to the manager index (used by the mobile\nand web activity booking sheets)",
                "tags": [
                    "Projekte"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ProjectResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/ProjectResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/project_sessions/{projectSession}": {
            "put": {
                "operationId": "tenant.project_sessions.update",
                "summary": "PUT /rest/project_sessions/{projectSession}",
                "tags": [
                    "Projekte"
                ],
                "parameters": [
                    {
                        "name": "projectSession",
                        "in": "path",
                        "required": true,
                        "description": "The project session ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreProjectSessionRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ProjectSessionResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/ProjectSessionResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "project",
                                                        "activity"
                                                    ]
                                                }
                                            ]
                                        },
                                        "notice": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "enum": [
                                                "Der gebuchte Tag liegt au\u00dferhalb der gesetzlichen Schlechtwetterzeit (1. Dezember bis 31. M\u00e4rz). Die Buchung wurde gespeichert.",
                                                null
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "notice"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.project_sessions.destroy",
                "summary": "DELETE /rest/project_sessions/{projectSession}",
                "tags": [
                    "Projekte"
                ],
                "parameters": [
                    {
                        "name": "projectSession",
                        "in": "path",
                        "required": true,
                        "description": "The project session ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/project_sessions/{start}/{end}": {
            "get": {
                "operationId": "tenant.employees.project_sessions.index",
                "summary": "GET /rest/employees/{employee}/project_sessions/{start}/{end}",
                "tags": [
                    "Projekte"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ProjectSessionResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/ProjectSessionResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "project",
                                                            "activity"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/project_sessions": {
            "post": {
                "operationId": "tenant.employees.project_sessions.store",
                "summary": "POST /rest/employees/{employee}/project_sessions",
                "tags": [
                    "Projekte"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreProjectSessionRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`ProjectSessionResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/ProjectSessionResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "project",
                                                        "activity"
                                                    ]
                                                }
                                            ]
                                        },
                                        "notice": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "enum": [
                                                "Der gebuchte Tag liegt au\u00dferhalb der gesetzlichen Schlechtwetterzeit (1. Dezember bis 31. M\u00e4rz). Die Buchung wurde gespeichert.",
                                                null
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "notice"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/projects": {
            "get": {
                "operationId": "tenant.projects.index",
                "tags": [
                    "Projekte"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ProjectResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/ProjectResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "cost_center"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.projects.store",
                "tags": [
                    "Projekte"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreProjectRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`ProjectResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/ProjectResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "cost_center"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/projects/{project}": {
            "get": {
                "operationId": "tenant.projects.show",
                "tags": [
                    "Projekte"
                ],
                "parameters": [
                    {
                        "name": "project",
                        "in": "path",
                        "required": true,
                        "description": "The project ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ProjectResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/ProjectResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "cost_center"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.projects.update",
                "tags": [
                    "Projekte"
                ],
                "parameters": [
                    {
                        "name": "project",
                        "in": "path",
                        "required": true,
                        "description": "The project ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateProjectRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ProjectResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/ProjectResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "cost_center"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.projects.destroy",
                "tags": [
                    "Projekte"
                ],
                "parameters": [
                    {
                        "name": "project",
                        "in": "path",
                        "required": true,
                        "description": "The project ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/recruiting/plan": {
            "get": {
                "operationId": "tenant.recruiting.plan.show",
                "summary": "GET /rest/recruiting/plan \u2014 posting limit of the plan and the current number of published\npostings. Publishing or reopening beyond the limit answers 422 `recruiting_plan_posting_limit`",
                "tags": [
                    "Recruiting"
                ],
                "responses": {
                    "200": {
                        "description": "`RecruitingPlanResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RecruitingPlanResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/recruiting/feeds": {
            "get": {
                "operationId": "tenant.recruiting.feeds.index",
                "summary": "GET /rest/recruiting/feeds \u2014 every configured channel with its status for this tenant:\n`active`, `in_preparation` (switched off or without token, partner terms open) or\n`not_available_on_plan`",
                "tags": [
                    "Recruiting"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `RecruitingFeedChannelResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/RecruitingFeedChannelResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/recruiting/settings": {
            "get": {
                "operationId": "tenant.recruiting.settings.show",
                "summary": "GET /rest/recruiting/settings",
                "tags": [
                    "Recruiting"
                ],
                "responses": {
                    "200": {
                        "description": "`RecruitingSettingsResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RecruitingSettingsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.recruiting.settings.update",
                "summary": "PUT /rest/recruiting/settings \u2014 partial update; a changed privacy notice raises its version",
                "tags": [
                    "Recruiting"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateRecruitingSettingsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`RecruitingSettingsResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RecruitingSettingsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/recruiting/settings/widget": {
            "get": {
                "operationId": "tenant.recruiting.settings.widget.show",
                "summary": "GET /rest/recruiting/settings/widget",
                "tags": [
                    "Recruiting"
                ],
                "responses": {
                    "200": {
                        "description": "`RecruitingWidgetSettingsResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RecruitingWidgetSettingsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.recruiting.settings.widget.update",
                "summary": "PUT /rest/recruiting/settings/widget \u2014 partial update",
                "tags": [
                    "Recruiting"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateRecruitingWidgetSettingsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`RecruitingWidgetSettingsResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RecruitingWidgetSettingsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/recruiting/settings/mail-templates": {
            "get": {
                "operationId": "tenant.recruiting.settings.mail_templates.show",
                "summary": "GET /rest/recruiting/settings/mail-templates",
                "tags": [
                    "Recruiting"
                ],
                "responses": {
                    "200": {
                        "description": "`RecruitingMailTemplatesResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RecruitingMailTemplatesResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.recruiting.settings.mail_templates.update",
                "summary": "PUT /rest/recruiting/settings/mail-templates \u2014 per template an own text or null (default).\n422 with field errors for unknown placeholders",
                "tags": [
                    "Recruiting"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateRecruitingMailTemplatesRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`RecruitingMailTemplatesResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RecruitingMailTemplatesResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/recruiting/settings/company": {
            "get": {
                "operationId": "tenant.recruiting.settings.company.show",
                "summary": "GET /rest/recruiting/settings/company",
                "tags": [
                    "Recruiting"
                ],
                "responses": {
                    "200": {
                        "description": "`RecruitingCompanyProfileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RecruitingCompanyProfileResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.recruiting.settings.company.update",
                "summary": "PUT /rest/recruiting/settings/company \u2014 accent colour and short description (partial)",
                "tags": [
                    "Recruiting"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateRecruitingCompanyProfileRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`RecruitingCompanyProfileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RecruitingCompanyProfileResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/recruiting/settings/company/logo": {
            "post": {
                "operationId": "tenant.recruiting.settings.company.logo.store",
                "summary": "POST /rest/recruiting/settings/company/logo \u2014 multipart field `logo` (PNG, JPEG or WebP, at\nmost 2 MB); stored re-encoded as PNG. 422 for other files, 503 when processing or storage fails",
                "tags": [
                    "Recruiting"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/UploadRecruitingCompanyLogoRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`RecruitingCompanyProfileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RecruitingCompanyProfileResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.recruiting.settings.company.logo.destroy",
                "summary": "DELETE /rest/recruiting/settings/company/logo \u2014 the career page shows the company name again",
                "tags": [
                    "Recruiting"
                ],
                "responses": {
                    "200": {
                        "description": "`RecruitingCompanyProfileResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RecruitingCompanyProfileResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/recruiting/postings": {
            "get": {
                "operationId": "tenant.recruiting.postings.index",
                "summary": "GET /rest/recruiting/postings \u2014 all postings, newest first, optionally filtered by `status`",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "$ref": "#/components/schemas/JobPostingStatus"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `JobPostingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/JobPostingResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.recruiting.postings.store",
                "summary": "POST /rest/recruiting/postings \u2014 creates a draft with a slug derived from the title",
                "tags": [
                    "Recruiting"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreJobPostingRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`JobPostingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/JobPostingResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/recruiting/postings/{jobPosting}": {
            "get": {
                "operationId": "tenant.recruiting.postings.show",
                "summary": "GET /rest/recruiting/postings/{jobPosting}",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "jobPosting",
                        "in": "path",
                        "required": true,
                        "description": "The job posting ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`JobPostingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/JobPostingResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.recruiting.postings.update",
                "summary": "PUT /rest/recruiting/postings/{jobPosting} \u2014 partial update; the slug stays fixed once published",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "jobPosting",
                        "in": "path",
                        "required": true,
                        "description": "The job posting ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateJobPostingRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`JobPostingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/JobPostingResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.recruiting.postings.destroy",
                "summary": "DELETE /rest/recruiting/postings/{jobPosting} \u2014 drafts only",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "jobPosting",
                        "in": "path",
                        "required": true,
                        "description": "The job posting ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/recruiting/postings/{jobPosting}/publish": {
            "post": {
                "operationId": "tenant.recruiting.postings.publish",
                "summary": "POST /rest/recruiting/postings/{jobPosting}/publish \u2014 draft \u2192 published",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "jobPosting",
                        "in": "path",
                        "required": true,
                        "description": "The job posting ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`JobPostingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/JobPostingResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/recruiting/postings/{jobPosting}/close": {
            "post": {
                "operationId": "tenant.recruiting.postings.close",
                "summary": "POST /rest/recruiting/postings/{jobPosting}/close \u2014 published \u2192 closed; applications stay editable",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "jobPosting",
                        "in": "path",
                        "required": true,
                        "description": "The job posting ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`JobPostingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/JobPostingResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/recruiting/postings/{jobPosting}/reopen": {
            "post": {
                "operationId": "tenant.recruiting.postings.reopen",
                "summary": "POST /rest/recruiting/postings/{jobPosting}/reopen \u2014 closed \u2192 published under the same slug",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "jobPosting",
                        "in": "path",
                        "required": true,
                        "description": "The job posting ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`JobPostingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/JobPostingResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/recruiting/postings/{jobPosting}/applications": {
            "get": {
                "operationId": "tenant.recruiting.postings.applications.index",
                "summary": "GET /rest/recruiting/postings/{jobPosting}/applications \u2014 submitted, not purged applications\nof the posting, newest first by default, at most 500 per page. `meta.search_truncated` is true\nwhen a name search or name sort covered only the newest `recruiting.applications.in_memory_max`\napplications",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "jobPosting",
                        "in": "path",
                        "required": true,
                        "description": "The job posting ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "stage[]",
                        "in": "query",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/components/schemas/JobApplicationStage"
                            }
                        }
                    },
                    {
                        "name": "submitted_from",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "submitted_to",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "submitted_at",
                                "name",
                                "stage"
                            ]
                        }
                    },
                    {
                        "name": "direction",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "asc",
                                "desc"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 500
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `JobApplicationListItemResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/JobApplicationListItemResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                },
                                                "search_truncated": {
                                                    "type": "boolean"
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total",
                                                "search_truncated"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/recruiting/applications/{application}": {
            "get": {
                "operationId": "tenant.recruiting.applications.show",
                "summary": "GET /rest/recruiting/applications/{id} \u2014 details, files and history",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "application",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`JobApplicationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/JobApplicationResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.recruiting.applications.destroy",
                "summary": "DELETE /rest/recruiting/applications/{id} \u2014 immediate deletion on the applicant's request: the\npersonal data is emptied at once, files whose deletion is not confirmed yet are retried by the\ndaily run. Idempotent",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "application",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/recruiting/applications/{application}/stage": {
            "put": {
                "operationId": "tenant.recruiting.applications.stage",
                "summary": "PUT /rest/recruiting/applications/{id}/stage \u2014 any transition; answers the application and the\nfresh stage counts of its posting",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "application",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateJobApplicationStageRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`JobApplicationStageChangeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/JobApplicationStageChangeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/recruiting/applications/{application}/notes": {
            "post": {
                "operationId": "tenant.recruiting.applications.notes.store",
                "summary": "POST /rest/recruiting/applications/{id}/notes \u2014 internal note, never visible to the applicant",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "application",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreJobApplicationNoteRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`JobApplicationEventResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/JobApplicationEventResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/recruiting/applications/{application}/documents/{document}/download": {
            "get": {
                "operationId": "tenant.recruiting.applications.documents.download",
                "summary": "GET /rest/recruiting/applications/{id}/documents/{document}/download \u2014 temporary URL (15\nminutes); 409 `document_quarantined` while the file is being checked",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "application",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "document",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`JobApplicationDownloadResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/JobApplicationDownloadResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/recruiting/applications/{application}/mails/preview": {
            "post": {
                "operationId": "tenant.recruiting.applications.mails.preview",
                "summary": "POST /rest/recruiting/applications/{id}/mails/preview \u2014 rendered subject and body of a\ntemplate (or of the text HR edited) for this application. Writes nothing. 409\n`application_purged` for purged applications, 422 for unknown placeholders",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "application",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PreviewJobApplicationMailRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`JobApplicationMailPreviewResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/JobApplicationMailPreviewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/recruiting/applications/{application}/mails": {
            "post": {
                "operationId": "tenant.recruiting.applications.mails.store",
                "summary": "POST /rest/recruiting/applications/{id}/mails \u2014 queues a rejection or invitation and records a\n`mail_sent` event; `set_stage` moves a rejection to `rejected` in the same request. Answers\n202 with the event and the updated application. 409 `application_purged`, 422\n`application_without_email` or field errors",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "application",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SendJobApplicationMailRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "202": {
                        "description": "`JobApplicationMailSentResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/JobApplicationMailSentResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/recruiting/applications/{application}/convert": {
            "post": {
                "operationId": "tenant.recruiting.applications.convert",
                "summary": "POST /rest/recruiting/applications/{id}/convert \u2014 creates the employee from the application\n(module `employees` and `employees:manage` required, 403 `conversion_not_allowed` otherwise),\nsets stage `hired` and copies the released files into the personnel file shortly after. 409\n`application_already_converted` or `application_purged`, 422 for a taken personnel number",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "application",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ConvertJobApplicationRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`JobApplicationConversionResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/JobApplicationConversionResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/recruiting/locations": {
            "get": {
                "operationId": "tenant.recruiting.locations.index",
                "summary": "GET /rest/recruiting/locations \u2014 every location with its postal address, sorted by name",
                "tags": [
                    "Recruiting"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `RecruitingLocationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/RecruitingLocationResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.recruiting.locations.store",
                "summary": "POST /rest/recruiting/locations \u2014 new work location with the address Google for Jobs needs",
                "tags": [
                    "Recruiting"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreRecruitingLocationRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`RecruitingLocationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RecruitingLocationResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/recruiting/locations/{location}": {
            "put": {
                "operationId": "tenant.recruiting.locations.update",
                "summary": "PUT /rest/recruiting/locations/{location} \u2014 partial address change; the establishment link of\nthe employees stays untouched",
                "tags": [
                    "Recruiting"
                ],
                "parameters": [
                    {
                        "name": "location",
                        "in": "path",
                        "required": true,
                        "description": "The location ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateRecruitingLocationRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`RecruitingLocationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RecruitingLocationResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/schedule_models_history": {
            "get": {
                "operationId": "tenant.employees.schedule_models_history.index",
                "summary": "GET /rest/employees/{employee}/schedule_models_history",
                "tags": [
                    "Schichtmodelle"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ScheduleModelsHistoryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/ScheduleModelsHistoryResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "schedule_model"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.employees.schedule_models_history.update",
                "description": "Replace all assignments for this employee.",
                "summary": "PUT /rest/employees/{employee}/schedule_models_history",
                "tags": [
                    "Schichtmodelle"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateScheduleModelsHistoryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Array of `ScheduleModelsHistoryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/ScheduleModelsHistoryResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "schedule_model"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/schedule_models": {
            "get": {
                "operationId": "tenant.schedule_models.index",
                "tags": [
                    "Schichtmodelle"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ScheduleModelResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/ScheduleModelResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "entries"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.schedule_models.store",
                "tags": [
                    "Schichtmodelle"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreScheduleModelRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`ScheduleModelResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/ScheduleModelResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "entries"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/schedule_models/{scheduleModel}": {
            "get": {
                "operationId": "tenant.schedule_models.show",
                "tags": [
                    "Schichtmodelle"
                ],
                "parameters": [
                    {
                        "name": "scheduleModel",
                        "in": "path",
                        "required": true,
                        "description": "The schedule model ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ScheduleModelResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/ScheduleModelResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "entries"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.schedule_models.update",
                "tags": [
                    "Schichtmodelle"
                ],
                "parameters": [
                    {
                        "name": "scheduleModel",
                        "in": "path",
                        "required": true,
                        "description": "The schedule model ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateScheduleModelRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ScheduleModelResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/ScheduleModelResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "entries"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.schedule_models.destroy",
                "tags": [
                    "Schichtmodelle"
                ],
                "parameters": [
                    {
                        "name": "scheduleModel",
                        "in": "path",
                        "required": true,
                        "description": "The schedule model ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "409": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Dieses Arbeitszeitmodell ist Mitarbeitenden zugewiesen und kann nicht gel\u00f6scht werden. Entferne zuerst die Zuweisungen bei den betroffenen Mitarbeitenden."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/register": {
            "post": {
                "operationId": "register.register_6",
                "summary": "Register a new tenant with a 6-week trial period, or with `product: recruiting` the free\nrecruiting profile (plan `recruiting_free`, module `recruiting` only, no trial deadline).\nThe tenant is inactive until the email is verified",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RegisterTenantRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Registrierung erfolgreich. Bitte best\u00e4tige deine E-Mail-Adresse."
                                        },
                                        "subdomain": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message",
                                        "subdomain"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                },
                "servers": [
                    {
                        "url": "http://callbacks.stamp.eu/rest"
                    }
                ]
            }
        },
        "/job-feeds/{channel}/{token}.xml": {
            "get": {
                "operationId": "recruiting.jobFeed.show_7",
                "summary": "GET /rest/job-feeds/{channel}/{token}.xml and GET /rest/job-feeds/{channel}.xml",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "channel",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "default": null
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Stellen aller zugelassenen Tenants als XML-Feed",
                        "content": {
                            "application/xml; charset=UTF-8": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            },
                            "application/xml": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "headers": {
                            "Transfer-Encoding": {
                                "required": true,
                                "schema": {
                                    "type": "string",
                                    "enum": [
                                        "chunked"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                },
                "servers": [
                    {
                        "url": "http://callbacks.stamp.eu/rest"
                    }
                ]
            }
        },
        "/job-feeds/{channel}.xml": {
            "get": {
                "operationId": "recruiting.jobFeed.show_8",
                "summary": "GET /rest/job-feeds/{channel}/{token}.xml and GET /rest/job-feeds/{channel}.xml",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "channel",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Stellen aller zugelassenen Tenants als XML-Feed",
                        "content": {
                            "application/xml; charset=UTF-8": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            },
                            "application/xml": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "headers": {
                            "Transfer-Encoding": {
                                "required": true,
                                "schema": {
                                    "type": "string",
                                    "enum": [
                                        "chunked"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                },
                "servers": [
                    {
                        "url": "http://callbacks.stamp.eu/rest"
                    }
                ]
            }
        },
        "/register/verify/{id}": {
            "get": {
                "operationId": "register.verify",
                "summary": "Verify the tenant's email address via signed URL",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "anyOf": [
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "const": "E-Mail-Adresse erfolgreich best\u00e4tigt. Du kannst dich jetzt einloggen."
                                                }
                                            },
                                            "required": [
                                                "message"
                                            ]
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "const": "Dieser Account wurde bereits best\u00e4tigt. Du kannst dich jetzt einloggen."
                                                }
                                            },
                                            "required": [
                                                "message"
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Ung\u00fcltiger oder abgelaufener Verifizierungslink."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/register/resend": {
            "post": {
                "operationId": "register.resend",
                "summary": "Resend the verification email",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ResendRegistrationRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Falls eine unbest\u00e4tigte Registrierung mit dieser E-Mail-Adresse existiert, wurde die Best\u00e4tigungsmail erneut gesendet."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/register/validate-code/{code}": {
            "get": {
                "operationId": "register.validate-code",
                "summary": "Check whether a partner code can be redeemed (live validation on the register page)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "code",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "valid": {
                                            "type": "boolean"
                                        },
                                        "partner_name": {
                                            "type": "string"
                                        },
                                        "plan": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "valid",
                                        "partner_name",
                                        "plan"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/register/altcha-challenge": {
            "get": {
                "operationId": "register.altcha-challenge",
                "description": "The challenge expires after 10 minutes. Responds 503 when the bot\nprotection is not configured in production.",
                "summary": "Issue a fresh ALTCHA proof-of-work challenge for the registration form",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "algorithm": {
                                            "type": "string"
                                        },
                                        "challenge": {
                                            "type": "string"
                                        },
                                        "maxnumber": {
                                            "type": "integer"
                                        },
                                        "salt": {
                                            "type": "string"
                                        },
                                        "signature": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "algorithm",
                                        "challenge",
                                        "maxnumber",
                                        "salt",
                                        "signature"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/releases/{app}/{channel}": {
            "get": {
                "operationId": "releases.manifest",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "app",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "channel",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "properties": {
                                        "version": {
                                            "type": "string"
                                        },
                                        "notes": {
                                            "type": "string"
                                        },
                                        "pub_date": {
                                            "type": "string"
                                        },
                                        "platforms": {
                                            "type": "object",
                                            "additionalProperties": {
                                                "type": "object",
                                                "properties": {
                                                    "signature": {
                                                        "type": "string"
                                                    },
                                                    "url": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "signature",
                                                    "url"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "version",
                                        "notes",
                                        "pub_date",
                                        "platforms"
                                    ]
                                }
                            }
                        }
                    },
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/releases/artifacts": {
            "post": {
                "operationId": "releases.artifacts.store",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreReleaseArtifactRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string"
                                        },
                                        "app": {
                                            "type": "string"
                                        },
                                        "version": {
                                            "type": "string"
                                        },
                                        "channel": {
                                            "type": "string"
                                        },
                                        "platform": {
                                            "type": "string"
                                        },
                                        "url": {
                                            "type": "string"
                                        },
                                        "published_at": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "app",
                                        "version",
                                        "channel",
                                        "platform",
                                        "url",
                                        "published_at"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/releases/publish": {
            "post": {
                "operationId": "releases.publish",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublishReleaseRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "manifest_url": {
                                            "type": "string"
                                        },
                                        "platforms": {
                                            "type": "object",
                                            "additionalProperties": {}
                                        },
                                        "version": {
                                            "type": "string"
                                        },
                                        "channel": {
                                            "type": "string"
                                        },
                                        "published_at": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "manifest_url",
                                        "platforms",
                                        "version",
                                        "channel",
                                        "published_at"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/enums": {
            "get": {
                "operationId": "tenant.enums",
                "description": "Single source of truth for client-side enum values (flag bit positions,\nlabels, categories). Clients load this once on startup and reference\nflags by name, not by hardcoded bit values.",
                "summary": "GET /rest/enums",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "working_time_flags": {
                                                    "type": "string"
                                                },
                                                "sv_vorsatzworte": {
                                                    "type": "array",
                                                    "description": "SV-Meldewesen Wertelisten (DE\u00dcV Anlagen 06/07) f\u00fcr die eAU-Stammdaten-Selects.",
                                                    "items": {}
                                                },
                                                "sv_namenszusaetze": {
                                                    "type": "array",
                                                    "items": {}
                                                }
                                            },
                                            "required": [
                                                "working_time_flags",
                                                "sv_vorsatzworte",
                                                "sv_namenszusaetze"
                                            ]
                                        },
                                        "version": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "version"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/enroll": {
            "post": {
                "operationId": "tenant.enroll",
                "description": "Returns the same payload as `POST /rest/login`. Every failure mode\n(unknown, expired, revoked, already redeemed, blocked account, issuer no\nlonger entitled to issue it for this account) answers\nwith the identical 422 so token state cannot be probed.",
                "summary": "POST /rest/enroll \u2014 public, throttled redemption of an enrollment token",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RedeemEnrollmentTokenRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "token": {
                                            "type": "string"
                                        },
                                        "user": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/UserResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee"
                                                    ]
                                                }
                                            ]
                                        },
                                        "timezone": {
                                            "type": "string"
                                        },
                                        "modules": {
                                            "type": [
                                                "string",
                                                "array"
                                            ]
                                        },
                                        "app_config": {
                                            "type": "object",
                                            "properties": {
                                                "mobile": {
                                                    "type": "object",
                                                    "properties": {
                                                        "location": {
                                                            "type": "string",
                                                            "enum": [
                                                                "off",
                                                                "optional",
                                                                "required"
                                                            ]
                                                        },
                                                        "clock_comment": {
                                                            "type": "string",
                                                            "enum": [
                                                                "off",
                                                                "optional",
                                                                "required"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "location",
                                                        "clock_comment"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "mobile"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "token",
                                        "user",
                                        "timezone",
                                        "modules",
                                        "app_config"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/questionnaire/session": {
            "get": {
                "operationId": "tenant.questionnaire.session",
                "summary": "Session: welcome data, prefilled and masked answers, rule evaluation, uploads. The first call\nmarks the questionnaire as opened",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "`QuestionnaireSessionResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/QuestionnaireSessionResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "questionnaireToken": []
                    }
                ]
            }
        },
        "/questionnaire/schema": {
            "get": {
                "operationId": "tenant.questionnaire.schema",
                "summary": "Form schema (fields, rules, tables) for the shared rule evaluator of the wizard",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "version": {
                                                    "type": "string"
                                                },
                                                "fields": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "additionalProperties": {}
                                                    }
                                                },
                                                "parts": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "additionalProperties": {}
                                                    }
                                                },
                                                "groups": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "additionalProperties": {}
                                                    }
                                                },
                                                "rules": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "additionalProperties": {}
                                                    }
                                                },
                                                "tables": {
                                                    "type": "object",
                                                    "additionalProperties": {}
                                                }
                                            },
                                            "required": [
                                                "version",
                                                "fields",
                                                "parts",
                                                "groups",
                                                "rules",
                                                "tables"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "questionnaireToken": []
                    }
                ]
            }
        },
        "/questionnaire/answers": {
            "patch": {
                "operationId": "tenant.questionnaire.answers",
                "summary": "Autosave of answers (partial, field ID \u2192 value). Values of hidden fields are discarded; new\nrule errors and unconfirmed unusual combinations of the sent fields are rejected (422)",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateQuestionnaireAnswersRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`QuestionnaireSessionResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/QuestionnaireSessionResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                },
                "security": [
                    {
                        "questionnaireToken": []
                    }
                ]
            }
        },
        "/questionnaire/documents": {
            "post": {
                "operationId": "tenant.questionnaire.documents.store",
                "summary": "Upload a proof (step 6). Stored sanitized and in quarantine until checked",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreQuestionnaireDocumentRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`QuestionnaireUploadResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/QuestionnaireUploadResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                },
                "security": [
                    {
                        "questionnaireToken": []
                    }
                ]
            }
        },
        "/questionnaire/documents/{document}": {
            "delete": {
                "operationId": "tenant.questionnaire.documents.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "document",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "questionnaireToken": []
                    }
                ]
            }
        },
        "/questionnaire/submit": {
            "post": {
                "operationId": "tenant.questionnaire.submit",
                "summary": "Submit with declaration and signature bound to `content_hash`. 409 when the answers changed\nsince the summary was shown",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SubmitQuestionnaireRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`QuestionnaireSessionResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/QuestionnaireSessionResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                },
                "security": [
                    {
                        "questionnaireToken": []
                    }
                ]
            }
        },
        "/questionnaire/lookup/bank": {
            "post": {
                "operationId": "tenant.questionnaire.lookup.bank",
                "summary": "IBAN check and bank lookup (D6, BK-01 to BK-05). The IBAN travels in the body, never in a URL",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/BankLookupRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "iban": {
                                                    "type": "string"
                                                },
                                                "valid": {
                                                    "type": "boolean"
                                                },
                                                "country": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "sepa": {
                                                    "type": "boolean"
                                                },
                                                "bic_required": {
                                                    "type": "boolean"
                                                },
                                                "bank_name": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "bic": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "iban",
                                                "valid",
                                                "country",
                                                "sepa",
                                                "bic_required",
                                                "bank_name",
                                                "bic"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                },
                "security": [
                    {
                        "questionnaireToken": []
                    }
                ]
            }
        },
        "/questionnaire/lookup/health_insurers": {
            "post": {
                "operationId": "tenant.questionnaire.lookup.health_insurers",
                "summary": "Health insurance funds selectable for the tenant (same policy as the HR selection, SV-04),\nwith the logo key (= BBNR) for `KassenLogo`",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/IndexHealthInsuranceCompanyRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "number": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "short_name": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "logo_key": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "number",
                                                    "name",
                                                    "short_name",
                                                    "logo_key"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                },
                "security": [
                    {
                        "questionnaireToken": []
                    }
                ]
            }
        },
        "/questionnaire/lookup/postal_codes": {
            "post": {
                "operationId": "tenant.questionnaire.lookup.postal_codes",
                "summary": "Cities of a postal code (ID-10, comfort only)",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/QuestionnairePostalCodeLookupRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "postal_code": {
                                                    "type": "string"
                                                },
                                                "cities": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "postal_code",
                                                "cities"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                },
                "security": [
                    {
                        "questionnaireToken": []
                    }
                ]
            }
        },
        "/questionnaire/lookup/countries": {
            "post": {
                "operationId": "tenant.questionnaire.lookup.countries",
                "summary": "Countries (ISO-2) with names in the requested language, frequent ones first",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/QuestionnaireCountryLookupRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "code": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "frequent": {
                                                        "type": "boolean"
                                                    }
                                                },
                                                "required": [
                                                    "code",
                                                    "name",
                                                    "frequent"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too many requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                },
                "security": [
                    {
                        "questionnaireToken": []
                    }
                ]
            }
        },
        "/my-schedule/{employee}/feed.ics": {
            "get": {
                "operationId": "tenant.my_schedule.ics",
                "description": "The link is minted as a 90-day temporary signed URL by index(); a\ndeactivated or deleted employee must not keep leaking their roster\nthrough a still-unexpired link, so the feed 404s for them.",
                "summary": "Signed .ics calendar feed of published entries (no auth, signed URL)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Pers\u00f6nlicher Dienstplan als iCalendar-Feed (VCALENDAR)",
                        "content": {
                            "text/calendar; charset=utf-8": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "headers": {
                            "Content-Disposition": {
                                "schema": {
                                    "type": "string",
                                    "const": "attachment; filename=\"dienstplan.ics\""
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/dashboard": {
            "get": {
                "operationId": "tenant.dashboard",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "kpis": {
                                            "type": "object",
                                            "properties": {
                                                "employees": {
                                                    "type": "integer",
                                                    "minimum": 0
                                                },
                                                "present": {
                                                    "type": "integer"
                                                },
                                                "absent": {
                                                    "type": "integer"
                                                },
                                                "open_tasks": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "employees",
                                                "present",
                                                "absent",
                                                "open_tasks"
                                            ]
                                        },
                                        "inbox": {
                                            "type": "array",
                                            "items": {}
                                        },
                                        "live": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "avatar_url": {
                                                        "type": "string"
                                                    },
                                                    "unit": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "department": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "clocked_in_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "duration_minutes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "avatar_url",
                                                    "unit",
                                                    "department",
                                                    "clocked_in_at",
                                                    "duration_minutes"
                                                ]
                                            }
                                        },
                                        "team_status": {
                                            "type": [
                                                "object",
                                                "null"
                                            ],
                                            "properties": {
                                                "missing_clockin": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "avatar_url": {
                                                                "type": "string"
                                                            },
                                                            "delay_minutes": {
                                                                "type": "integer"
                                                            },
                                                            "shift_start": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "name",
                                                            "avatar_url",
                                                            "delay_minutes",
                                                            "shift_start"
                                                        ]
                                                    }
                                                },
                                                "clocked_in": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "avatar_url": {
                                                                "type": "string"
                                                            },
                                                            "clocked_in_at": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "duration_minutes": {
                                                                "type": [
                                                                    "integer",
                                                                    "null"
                                                                ]
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "name",
                                                            "avatar_url",
                                                            "clocked_in_at",
                                                            "duration_minutes"
                                                        ]
                                                    }
                                                },
                                                "not_in_office": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "avatar_url": {
                                                                "type": "string"
                                                            },
                                                            "leave_type": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "until": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "name",
                                                            "avatar_url",
                                                            "leave_type",
                                                            "until"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "missing_clockin",
                                                "clocked_in",
                                                "not_in_office"
                                            ]
                                        },
                                        "absences": {
                                            "type": "object",
                                            "properties": {
                                                "holidays": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "date": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "half_day": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "date",
                                                            "name",
                                                            "half_day"
                                                        ]
                                                    }
                                                },
                                                "upcoming": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "employee_name": {
                                                                "type": "string"
                                                            },
                                                            "type": {
                                                                "type": "string"
                                                            },
                                                            "start_date": {
                                                                "type": "string"
                                                            },
                                                            "end_date": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "employee_name",
                                                            "type",
                                                            "start_date",
                                                            "end_date"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "holidays",
                                                "upcoming"
                                            ]
                                        },
                                        "vacation": {
                                            "type": [
                                                "object",
                                                "null"
                                            ],
                                            "properties": {
                                                "total": {
                                                    "type": "number"
                                                },
                                                "used": {
                                                    "type": "number"
                                                },
                                                "remaining": {
                                                    "type": "number"
                                                }
                                            },
                                            "required": [
                                                "total",
                                                "used",
                                                "remaining"
                                            ]
                                        },
                                        "birthdays": {
                                            "type": "array",
                                            "items": {}
                                        },
                                        "mood_summary": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "date": {
                                                        "type": "string"
                                                    },
                                                    "average_rating": {
                                                        "type": [
                                                            "number",
                                                            "null"
                                                        ]
                                                    },
                                                    "count": {
                                                        "type": "integer"
                                                    }
                                                },
                                                "required": [
                                                    "date",
                                                    "average_rating",
                                                    "count"
                                                ]
                                            }
                                        },
                                        "employee": {
                                            "type": "object",
                                            "properties": {
                                                "timer": {
                                                    "type": "object",
                                                    "properties": {
                                                        "clocked_in": {
                                                            "type": "boolean"
                                                        },
                                                        "last_event_timestamp": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "today_work_seconds": {
                                                            "type": "integer"
                                                        },
                                                        "today_pause_seconds": {
                                                            "type": "integer"
                                                        },
                                                        "target_duration_seconds": {
                                                            "type": "integer"
                                                        },
                                                        "weekly_target_seconds": {
                                                            "type": "integer"
                                                        },
                                                        "weekly_seconds": {
                                                            "type": "integer"
                                                        }
                                                    },
                                                    "required": [
                                                        "clocked_in",
                                                        "last_event_timestamp",
                                                        "today_work_seconds",
                                                        "today_pause_seconds",
                                                        "target_duration_seconds",
                                                        "weekly_target_seconds",
                                                        "weekly_seconds"
                                                    ]
                                                },
                                                "week_overview": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "date": {
                                                                "type": "string"
                                                            },
                                                            "weekday": {
                                                                "type": "string"
                                                            },
                                                            "actual_seconds": {
                                                                "type": "integer"
                                                            },
                                                            "target_seconds": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "required": [
                                                            "date",
                                                            "weekday",
                                                            "actual_seconds",
                                                            "target_seconds"
                                                        ]
                                                    }
                                                },
                                                "overtime": {
                                                    "type": "object",
                                                    "properties": {
                                                        "balance_seconds": {
                                                            "type": "integer"
                                                        },
                                                        "earned_month_seconds": {
                                                            "type": "integer"
                                                        },
                                                        "compensated_month_seconds": {
                                                            "type": "integer"
                                                        },
                                                        "year_month": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "balance_seconds",
                                                        "earned_month_seconds",
                                                        "compensated_month_seconds",
                                                        "year_month"
                                                    ]
                                                },
                                                "my_requests": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "type": {
                                                                "type": "string"
                                                            },
                                                            "status": {
                                                                "type": "string"
                                                            },
                                                            "start_date": {
                                                                "type": "string"
                                                            },
                                                            "end_date": {
                                                                "type": "string"
                                                            },
                                                            "created_at": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "type",
                                                            "status",
                                                            "start_date",
                                                            "end_date",
                                                            "created_at"
                                                        ]
                                                    }
                                                },
                                                "mood_history": {
                                                    "type": [
                                                        "array",
                                                        "null"
                                                    ],
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "date": {
                                                                "type": "string"
                                                            },
                                                            "rating": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            }
                                                        },
                                                        "required": [
                                                            "date",
                                                            "rating"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "timer",
                                                "week_overview",
                                                "overtime",
                                                "my_requests",
                                                "mood_history"
                                            ]
                                        },
                                        "attendance": {
                                            "type": "object",
                                            "properties": {
                                                "rate": {
                                                    "type": "number"
                                                },
                                                "trend": {
                                                    "type": "number"
                                                },
                                                "heatmap": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "weekday": {
                                                                "type": "integer"
                                                            },
                                                            "hour": {
                                                                "type": "integer"
                                                            },
                                                            "value": {
                                                                "type": "number"
                                                            }
                                                        },
                                                        "required": [
                                                            "weekday",
                                                            "hour",
                                                            "value"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "rate",
                                                "trend",
                                                "heatmap"
                                            ]
                                        },
                                        "clock_channels_today": {
                                            "type": "object",
                                            "properties": {
                                                "terminal": {
                                                    "type": "integer"
                                                },
                                                "mobile": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "terminal",
                                                "mobile"
                                            ]
                                        },
                                        "today_overview": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "employee_id": {
                                                        "type": "string"
                                                    },
                                                    "code": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "department": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "const": "absent"
                                                    },
                                                    "clock_in": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "clock_out": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "employee_id",
                                                    "code",
                                                    "name",
                                                    "department",
                                                    "status",
                                                    "clock_in",
                                                    "clock_out"
                                                ]
                                            }
                                        },
                                        "intraday_today": {
                                            "anyOf": [
                                                {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "hour": {
                                                                "type": "integer"
                                                            },
                                                            "count": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "required": [
                                                            "hour",
                                                            "count"
                                                        ]
                                                    }
                                                },
                                                {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "hour": {
                                                                "type": "integer"
                                                            },
                                                            "count": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "required": [
                                                            "hour",
                                                            "count"
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "compliance_week": {
                                            "type": "object",
                                            "properties": {
                                                "count": {
                                                    "type": "integer"
                                                },
                                                "employees": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "name"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "count",
                                                "employees"
                                            ]
                                        },
                                        "next_holiday": {
                                            "type": [
                                                "object",
                                                "null"
                                            ],
                                            "properties": {
                                                "date": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "half_day": {
                                                    "type": "boolean"
                                                }
                                            },
                                            "required": [
                                                "date",
                                                "name",
                                                "half_day"
                                            ]
                                        },
                                        "vacation_expiry_risk": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "employee_id": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "remaining_days": {
                                                        "type": "number"
                                                    },
                                                    "expires_at": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "employee_id",
                                                    "name",
                                                    "remaining_days",
                                                    "expires_at"
                                                ]
                                            }
                                        },
                                        "shift_coverage_today": {
                                            "type": "object",
                                            "properties": {
                                                "units": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "unit_id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "assigned": {
                                                                "type": "integer"
                                                            },
                                                            "required": {
                                                                "type": "integer"
                                                            },
                                                            "open": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "required": [
                                                            "unit_id",
                                                            "name",
                                                            "assigned",
                                                            "required",
                                                            "open"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "units"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "kpis",
                                        "inbox",
                                        "live",
                                        "team_status",
                                        "absences",
                                        "vacation",
                                        "birthdays",
                                        "mood_summary",
                                        "employee",
                                        "attendance",
                                        "clock_channels_today",
                                        "today_overview",
                                        "intraday_today",
                                        "compliance_week",
                                        "next_holiday",
                                        "vacation_expiry_risk",
                                        "shift_coverage_today"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/health_insurances": {
            "get": {
                "operationId": "tenant.health_insurances.index",
                "summary": "List all currently selectable health insurances.\nReads from central DB \u2014 shared across all tenants",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `HealthInsuranceResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/HealthInsuranceResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/health_insurance_companies": {
            "get": {
                "operationId": "tenant.health_insurance_companies.index",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `HealthInsuranceCompanyResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/HealthInsuranceCompanyResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/push-token": {
            "post": {
                "operationId": "tenant.push_token.store",
                "description": "Used by the mobile app after login to register the native FCM/APNs token.\nSupports multiple devices per user (each token is unique). Push is sent\ndirectly from Laravel (PushService) \u2014 no external subscriber sync needed.",
                "summary": "POST /rest/push-token \u2014 Register or update a device push token",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RegisterDeviceTokenRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "status"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.push_token.destroy",
                "description": "Only removes the specific token for the current user,\nso other devices of the same user keep receiving push notifications.",
                "summary": "DELETE /rest/push-token \u2014 Remove a device push token (e.g. on logout)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "status"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/centrifugo/token": {
            "get": {
                "operationId": "tenant.centrifugo.token",
                "description": "Returns a signed connection token + the user's personal channel for the\nCentrifugo JS client. The token is tenant-scoped (sub = tenant:subscriber)\nso it only grants access to the caller's own channel.",
                "summary": "GET /rest/centrifugo/token",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "token": {
                                            "type": "string"
                                        },
                                        "channel": {
                                            "type": "string"
                                        },
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "token",
                                        "channel",
                                        "url"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/notifications": {
            "get": {
                "operationId": "tenant.notifications.index",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `NotificationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/NotificationResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/notifications/read-all": {
            "patch": {
                "operationId": "tenant.notifications.read_all",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "updated": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "updated"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/notifications/{notification}/read": {
            "patch": {
                "operationId": "tenant.notifications.read",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "notification",
                        "in": "path",
                        "required": true,
                        "description": "The notification ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`NotificationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/NotificationResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/notifications/{notification}/resolve": {
            "patch": {
                "operationId": "tenant.notifications.resolve",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "notification",
                        "in": "path",
                        "required": true,
                        "description": "The notification ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`NotificationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/NotificationResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/compliance/{start}/{end}": {
            "get": {
                "operationId": "tenant.compliance.index",
                "description": "Returns compliance overview for all employees visible to the user.",
                "summary": "GET /rest/compliance/{start}/{end}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "period": {
                                            "type": "object",
                                            "properties": {
                                                "start": {
                                                    "type": "string"
                                                },
                                                "end": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "start",
                                                "end"
                                            ]
                                        },
                                        "employees": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "employee_id": {
                                                        "type": "string"
                                                    },
                                                    "employee_name": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "summary": {
                                                        "type": "object",
                                                        "properties": {
                                                            "days_over_10h": {
                                                                "type": "integer"
                                                            },
                                                            "days_over_8h": {
                                                                "type": "integer"
                                                            },
                                                            "rest_period_violations": {
                                                                "type": "integer"
                                                            },
                                                            "continuous_work_violations": {
                                                                "type": "integer"
                                                            },
                                                            "night_work_days": {
                                                                "type": "integer"
                                                            },
                                                            "night_work_total_ms": {
                                                                "type": "integer"
                                                            },
                                                            "night_worker_limit_violations": {
                                                                "type": "integer"
                                                            },
                                                            "total_violation_days": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "required": [
                                                            "days_over_10h",
                                                            "days_over_8h",
                                                            "rest_period_violations",
                                                            "continuous_work_violations",
                                                            "night_work_days",
                                                            "night_work_total_ms",
                                                            "night_worker_limit_violations",
                                                            "total_violation_days"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "employee_id",
                                                    "employee_name",
                                                    "summary"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "period",
                                        "employees"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/absence_types": {
            "get": {
                "operationId": "tenant.absence_types.index",
                "summary": "GET /rest/absence_types \u2014 List all (active) absence types",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `AbsenceTypeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/AbsenceTypeResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.absence_types.store",
                "summary": "POST /rest/absence_types \u2014 Create a custom absence type",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreAbsenceTypeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`AbsenceTypeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AbsenceTypeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/work_activities/available": {
            "get": {
                "operationId": "tenant.work_activities.available",
                "summary": "GET /rest/work_activities/available \u2014 active activities the logged-in\nemployee may book (unit scoping applies, admins without an employee\nrecord see every active activity)",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `WorkActivityResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/WorkActivityResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "unit_ids"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/skills": {
            "get": {
                "operationId": "tenant.skills.index",
                "summary": "GET /rest/skills \u2014 active skills ordered by sort_order;\n?include_inactive=1 lists all",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `SkillResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SkillResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.skills.store",
                "summary": "POST /rest/skills \u2014 create a skill",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreSkillRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`SkillResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/SkillResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/skills/{skill}": {
            "get": {
                "operationId": "tenant.skills.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "skill",
                        "in": "path",
                        "required": true,
                        "description": "The skill ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`SkillResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/SkillResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.skills.update",
                "summary": "PUT /rest/skills/{skill} \u2014 update a skill",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "skill",
                        "in": "path",
                        "required": true,
                        "description": "The skill ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateSkillRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`SkillResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/SkillResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.skills.destroy",
                "summary": "DELETE /rest/skills/{skill} \u2014 hard-delete when unreferenced, otherwise\nsoft-deactivate to protect historical planning data",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "skill",
                        "in": "path",
                        "required": true,
                        "description": "The skill ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/mood": {
            "put": {
                "operationId": "tenant.mood.store_my",
                "summary": "Store/update the authenticated employee's mood (upsert by date)",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreEmployeeMoodRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmployeeMoodResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "No employee record."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "201": {
                        "description": "Neuer Eintrag angelegt",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmployeeMoodResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/mood/my/{start}/{end}": {
            "get": {
                "operationId": "tenant.mood.my",
                "summary": "Get the authenticated employee's moods for a date range",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmployeeMoodResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/me/document-folders": {
            "get": {
                "operationId": "tenant.me.document_folders.index",
                "summary": "GET /rest/me/document-folders \u2014 folders visible to the signed-in employee",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/DocumentFolderResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/me/documents": {
            "get": {
                "operationId": "tenant.me.documents.index",
                "summary": "GET /rest/me/documents \u2014 documents visible to the signed-in employee",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmployeeDocumentResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/documents/{document}/download": {
            "get": {
                "operationId": "tenant.documents.download",
                "description": "Managers (with view access to the employee) and the owning employee\n(for documents marked visible) may download. Restricted documents\nadditionally require payroll:manage. Generated employment certificates\nneed payroll:view or payroll:manage within the employee scope (no\ndocument permission required), for everyone but the owner.",
                "summary": "Issue a short-lived signed download URL",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "document",
                        "in": "path",
                        "required": true,
                        "description": "The document ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "url": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "url"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/document-folders": {
            "get": {
                "operationId": "tenant.employees.document_folders.index",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `DocumentFolderResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/DocumentFolderResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.employees.document_folders.store",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreDocumentFolderRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`DocumentFolderResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/DocumentFolderResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/document-folders/{folder}": {
            "put": {
                "operationId": "tenant.document_folders.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "folder",
                        "in": "path",
                        "required": true,
                        "description": "The folder ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateDocumentFolderRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`DocumentFolderResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/DocumentFolderResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.document_folders.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "folder",
                        "in": "path",
                        "required": true,
                        "description": "The folder ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "422": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Standard-Ordner k\u00f6nnen nicht gel\u00f6scht werden."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/documents": {
            "get": {
                "operationId": "tenant.employees.documents.index",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EmployeeDocumentResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/EmployeeDocumentResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "uploaded_by_name"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.employees.documents.store",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreEmployeeDocumentRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`EmployeeDocumentResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmployeeDocumentResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/documents/{document}": {
            "put": {
                "operationId": "tenant.documents.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "document",
                        "in": "path",
                        "required": true,
                        "description": "The document ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateEmployeeDocumentRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EmployeeDocumentResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmployeeDocumentResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.documents.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "document",
                        "in": "path",
                        "required": true,
                        "description": "The document ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/my-schedule/{start}/{end}": {
            "get": {
                "operationId": "tenant.my_schedule.index",
                "summary": "Own published entries + open shifts of the own unit. Draft entries\nare never delivered to employees",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "entries": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "open_shifts": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "array",
                                                        "items": {}
                                                    }
                                                },
                                                "ics_feed_url": {
                                                    "type": "string"
                                                },
                                                "unit": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "id": {
                                                            "type": "string"
                                                        },
                                                        "name": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "id",
                                                        "name"
                                                    ]
                                                },
                                                "team": {
                                                    "anyOf": [
                                                        {
                                                            "type": "object",
                                                            "additionalProperties": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "object",
                                                                    "additionalProperties": {}
                                                                }
                                                            }
                                                        },
                                                        {
                                                            "type": "object"
                                                        }
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "entries",
                                                "open_shifts",
                                                "ics_feed_url",
                                                "unit",
                                                "team"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "No employee record."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/shift_swaps": {
            "get": {
                "operationId": "tenant.shift_swaps.index",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "pending",
                                "0",
                                "1",
                                "2",
                                "3",
                                null
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ShiftSwapRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/ShiftSwapRequestResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "requester_entry",
                                                            "requester_employee",
                                                            "target_employee",
                                                            "target_entry"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.shift_swaps.store",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreShiftSwapRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`ShiftSwapRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ShiftSwapRequestResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/shift_swaps/{shiftSwap}/accept": {
            "post": {
                "operationId": "tenant.shift_swaps.accept",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "shiftSwap",
                        "in": "path",
                        "required": true,
                        "description": "The shift swap ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ShiftSwapRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ShiftSwapRequestResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/shift_swaps/{shiftSwap}/decline": {
            "post": {
                "operationId": "tenant.shift_swaps.decline",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "shiftSwap",
                        "in": "path",
                        "required": true,
                        "description": "The shift swap ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ShiftSwapRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ShiftSwapRequestResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/roster_entries/{rosterEntry}/apply": {
            "post": {
                "operationId": "tenant.roster_entries.apply",
                "summary": "Employee applies for an open shift (422 on absence conflict)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterEntry",
                        "in": "path",
                        "required": true,
                        "description": "The roster entry ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ApplyForShiftRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`ShiftApplicationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ShiftApplicationResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "No employee record."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.roster_entries.apply.withdraw",
                "summary": "Employee withdraws the own application: hard delete, only while\nPending (404 without an own application, 422 once decided). A\nwithdrawn application can be re-created via apply (firstOrCreate)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterEntry",
                        "in": "path",
                        "required": true,
                        "description": "The roster entry ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "No employee record."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/roster_entries/{rosterEntry}/acknowledge": {
            "post": {
                "operationId": "tenant.roster_entries.acknowledge",
                "summary": "POST /rest/roster_entries/{rosterEntry}/acknowledge \u2014 the assigned\nperson confirms awareness of a short-notice change (own entries\nonly, idempotent)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterEntry",
                        "in": "path",
                        "required": true,
                        "description": "The roster entry ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "`ShiftAcknowledgementResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/ShiftAcknowledgementResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee_name",
                                                        "date",
                                                        "shift_name"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error\n\nAn error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "anyOf": [
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "description": "Error overview.",
                                                    "examples": [
                                                        "No employee record."
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "message"
                                            ]
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "description": "Error overview."
                                                }
                                            },
                                            "required": [
                                                "message"
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/work_areas": {
            "get": {
                "operationId": "tenant.work_areas.index",
                "summary": "GET /rest/work_areas \u2014 active areas ordered by sort_order;\n?include_inactive=1 lists all, ?unit_id= filters to tenant-wide plus\nthe given unit's areas",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "include_inactive",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "unit_id",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `WorkAreaResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/WorkAreaResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.work_areas.store",
                "summary": "POST /rest/work_areas \u2014 create a work area",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreWorkAreaRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`WorkAreaResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkAreaResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/work_areas/{workArea}": {
            "get": {
                "operationId": "tenant.work_areas.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "workArea",
                        "in": "path",
                        "required": true,
                        "description": "The work area ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`WorkAreaResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkAreaResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.work_areas.update",
                "summary": "PUT /rest/work_areas/{workArea} \u2014 update a work area",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "workArea",
                        "in": "path",
                        "required": true,
                        "description": "The work area ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateWorkAreaRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`WorkAreaResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkAreaResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.work_areas.destroy",
                "summary": "DELETE /rest/work_areas/{workArea} \u2014 hard-delete when unreferenced,\notherwise soft-deactivate to protect historical plans (and future\nsurcharge rules referencing the area)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "workArea",
                        "in": "path",
                        "required": true,
                        "description": "The work area ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/availability": {
            "get": {
                "operationId": "tenant.employees.availability.index",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "start",
                        "in": "query",
                        "description": "No `sometimes`: the pair has to be complete, and that rule can only\nfire when the missing half is still validated.",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "end",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EmployeeAvailabilityResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmployeeAvailabilityResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.employees.availability.store",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreAvailabilityRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`EmployeeAvailabilityResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmployeeAvailabilityResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/availability/bulk": {
            "post": {
                "operationId": "tenant.employees.availability.bulk",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/BulkStoreAvailabilitiesRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Array of `EmployeeAvailabilityResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmployeeAvailabilityResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/wish_budget/{yearMonth}": {
            "get": {
                "operationId": "tenant.employees.wish_budget.show",
                "summary": "GET /rest/employees/{employee}/wish_budget/{yearMonth} \u2014 budget,\nused and remaining wish points plus the fulfillment rate of the\nmonth. Self-service or manager (self-or-manager middleware)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "yearMonth",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`WishBudgetResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WishBudgetResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employee_availabilities/{employeeAvailability}": {
            "put": {
                "operationId": "tenant.employee_availabilities.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employeeAvailability",
                        "in": "path",
                        "required": true,
                        "description": "The employee availability ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreAvailabilityRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EmployeeAvailabilityResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmployeeAvailabilityResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Forbidden."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.employee_availabilities.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employeeAvailability",
                        "in": "path",
                        "required": true,
                        "description": "The employee availability ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Forbidden."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/shifts": {
            "get": {
                "operationId": "tenant.shifts.index",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ShiftResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/ShiftResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.shifts.store",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreShiftRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`ShiftResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ShiftResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/shifts/{shift}": {
            "get": {
                "operationId": "tenant.shifts.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "shift",
                        "in": "path",
                        "required": true,
                        "description": "The shift ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ShiftResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ShiftResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.shifts.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "shift",
                        "in": "path",
                        "required": true,
                        "description": "The shift ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateShiftRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ShiftResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ShiftResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.shifts.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "shift",
                        "in": "path",
                        "required": true,
                        "description": "The shift ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/units/{unit}/shift_requirements": {
            "get": {
                "operationId": "tenant.units.shift_requirements.index",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "unit",
                        "in": "path",
                        "required": true,
                        "description": "The unit ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ShiftRequirementResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/ShiftRequirementResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "shift",
                                                            "skills"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.units.shift_requirements.store",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "unit",
                        "in": "path",
                        "required": true,
                        "description": "The unit ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreShiftRequirementRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`ShiftRequirementResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/ShiftRequirementResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "shift",
                                                        "skills"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.units.shift_requirements.bulk",
                "summary": "Atomically replace the whole staffing requirement grid of a unit:\nrows missing from the payload are deleted, existing ones updated and\nnew ones created (diff by (shift_id, weekday)). Skill requirements\nare synced per row when provided",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "unit",
                        "in": "path",
                        "required": true,
                        "description": "The unit ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/BulkShiftRequirementRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Array of `ShiftRequirementResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/ShiftRequirementResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "shift",
                                                            "skills"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/shift_requirements/{shiftRequirement}": {
            "put": {
                "operationId": "tenant.shift_requirements.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "shiftRequirement",
                        "in": "path",
                        "required": true,
                        "description": "The shift requirement ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreShiftRequirementRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ShiftRequirementResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/ShiftRequirementResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "shift",
                                                        "skills"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.shift_requirements.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "shiftRequirement",
                        "in": "path",
                        "required": true,
                        "description": "The shift requirement ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/roster_templates": {
            "get": {
                "operationId": "tenant.roster_templates.index",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `RosterTemplateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/RosterTemplateResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.roster_templates.store",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreRosterTemplateRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`RosterTemplateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RosterTemplateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/roster_templates/{rosterTemplate}": {
            "get": {
                "operationId": "tenant.roster_templates.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterTemplate",
                        "in": "path",
                        "required": true,
                        "description": "The roster template ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`RosterTemplateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RosterTemplateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.roster_templates.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterTemplate",
                        "in": "path",
                        "required": true,
                        "description": "The roster template ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateRosterTemplateRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`RosterTemplateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RosterTemplateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.roster_templates.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterTemplate",
                        "in": "path",
                        "required": true,
                        "description": "The roster template ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/roster_templates/{rosterTemplate}/preview": {
            "post": {
                "operationId": "tenant.roster_templates.preview",
                "summary": "Dry-run preview of what a rotation generation would produce,\nincluding a coverage comparison against shift requirements",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterTemplate",
                        "in": "path",
                        "required": true,
                        "description": "The roster template ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PreviewRosterTemplateRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "group": {
                                                        "anyOf": [
                                                            {
                                                                "type": "string"
                                                            },
                                                            {
                                                                "type": "string",
                                                                "enum": [
                                                                    ""
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    "employee_id": {
                                                        "type": "string"
                                                    },
                                                    "date": {
                                                        "type": "string"
                                                    },
                                                    "shift_id": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "start_time": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "end_time": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "group",
                                                    "employee_id",
                                                    "date",
                                                    "shift_id",
                                                    "start_time",
                                                    "end_time"
                                                ]
                                            }
                                        },
                                        "coverage": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "date": {
                                                        "type": "string"
                                                    },
                                                    "shift_id": {
                                                        "type": "string"
                                                    },
                                                    "work_area_id": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "assigned": {
                                                        "type": "integer",
                                                        "minimum": 0
                                                    },
                                                    "open": {
                                                        "type": "integer",
                                                        "minimum": 0
                                                    },
                                                    "min_count": {
                                                        "type": "integer"
                                                    },
                                                    "optimal_count": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "required_skills": {
                                                        "type": "string"
                                                    },
                                                    "skill_gaps": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "skill_id": {
                                                                    "type": "string"
                                                                },
                                                                "name": {
                                                                    "type": "string"
                                                                },
                                                                "min_level": {
                                                                    "type": "string"
                                                                },
                                                                "required_count": {
                                                                    "type": "string"
                                                                },
                                                                "required": {
                                                                    "type": "integer"
                                                                },
                                                                "qualified": {
                                                                    "type": "integer",
                                                                    "minimum": 0
                                                                },
                                                                "missing": {
                                                                    "type": "integer"
                                                                }
                                                            },
                                                            "required": [
                                                                "skill_id",
                                                                "name",
                                                                "min_level",
                                                                "required_count",
                                                                "required",
                                                                "qualified",
                                                                "missing"
                                                            ]
                                                        }
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "enum": [
                                                            "understaffed",
                                                            "skill_gap",
                                                            "overstaffed",
                                                            "ok"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "date",
                                                    "shift_id",
                                                    "work_area_id",
                                                    "assigned",
                                                    "open",
                                                    "min_count",
                                                    "optimal_count",
                                                    "required_skills",
                                                    "skill_gaps",
                                                    "status"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "coverage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/roster_templates/{rosterTemplate}/generate": {
            "post": {
                "operationId": "tenant.roster_templates.generate",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterTemplate",
                        "in": "path",
                        "required": true,
                        "description": "The roster template ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PreviewRosterTemplateRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`RosterResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RosterResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/roster_templates/{rosterTemplate}/load": {
            "post": {
                "operationId": "tenant.roster_templates.load",
                "summary": "Load a week snapshot template into target weeks (draft roster)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterTemplate",
                        "in": "path",
                        "required": true,
                        "description": "The roster template ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/LoadRosterTemplateRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        },
                                        "summary": {
                                            "type": "object",
                                            "properties": {
                                                "created": {
                                                    "type": "integer"
                                                },
                                                "open": {
                                                    "type": "integer"
                                                },
                                                "absence_conflicts": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "created",
                                                "open",
                                                "absence_conflicts"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "summary"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Forbidden."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/work_areas": {
            "get": {
                "operationId": "tenant.employees.work_areas.index",
                "summary": "GET /rest/employees/{employee}/work_areas \u2014 assigned areas",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `WorkAreaResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/WorkAreaResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.employees.work_areas.sync",
                "summary": "PUT /rest/employees/{employee}/work_areas \u2014 atomic sync semantics:\nthe given work_area_ids replace the assignment completely",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SyncEmployeeWorkAreasRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Array of `WorkAreaResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/WorkAreaResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/rosters": {
            "get": {
                "operationId": "tenant.rosters.index",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "unit_id",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "unit_ids[]",
                        "in": "query",
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        }
                    },
                    {
                        "name": "start",
                        "in": "query",
                        "description": "No `sometimes`: the pair has to be complete, and that rule can only\nfire when the missing half is still validated.",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "end",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "draft",
                                "published",
                                "archived",
                                "0",
                                "1",
                                "2",
                                null
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `RosterResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/RosterResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.rosters.store",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreRosterRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`RosterResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RosterResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/rosters/{roster}": {
            "get": {
                "operationId": "tenant.rosters.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/RosterResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "properties": {
                                                        "entries": {
                                                            "type": "array",
                                                            "items": {
                                                                "$ref": "#/components/schemas/RosterEntryResource"
                                                            }
                                                        },
                                                        "coverage": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "date": {
                                                                        "type": "string"
                                                                    },
                                                                    "slots": {
                                                                        "type": "array",
                                                                        "items": {
                                                                            "type": "object",
                                                                            "additionalProperties": {}
                                                                        }
                                                                    }
                                                                },
                                                                "required": [
                                                                    "date",
                                                                    "slots"
                                                                ]
                                                            }
                                                        },
                                                        "absences": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "employee_id": {
                                                                        "type": "string"
                                                                    },
                                                                    "date": {
                                                                        "type": "string"
                                                                    },
                                                                    "type_label": {
                                                                        "type": "string"
                                                                    }
                                                                },
                                                                "required": [
                                                                    "employee_id",
                                                                    "date",
                                                                    "type_label"
                                                                ]
                                                            }
                                                        }
                                                    },
                                                    "required": [
                                                        "entries",
                                                        "coverage",
                                                        "absences"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.rosters.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateRosterRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`RosterResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RosterResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.rosters.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/rosters/{roster}/publish": {
            "post": {
                "operationId": "tenant.rosters.publish",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        },
                                        "warnings": {
                                            "anyOf": [
                                                {
                                                    "type": "array",
                                                    "prefixItems": [
                                                        {
                                                            "type": "object",
                                                            "properties": {
                                                                "code": {
                                                                    "type": "string",
                                                                    "const": "BUDGET_EXCEEDED"
                                                                },
                                                                "severity": {
                                                                    "type": "string",
                                                                    "const": "warning"
                                                                },
                                                                "scope": {
                                                                    "type": "string",
                                                                    "const": "roster"
                                                                },
                                                                "message": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "required": [
                                                                "code",
                                                                "severity",
                                                                "scope",
                                                                "message"
                                                            ]
                                                        }
                                                    ],
                                                    "minItems": 1,
                                                    "maxItems": 1
                                                },
                                                {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    },
                                                    "minItems": 0,
                                                    "maxItems": 0
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "warnings"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/rosters/{roster}/unpublish": {
            "post": {
                "operationId": "tenant.rosters.unpublish",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`RosterResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RosterResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/rosters/{roster}/archive": {
            "post": {
                "operationId": "tenant.rosters.archive",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`RosterResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RosterResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/rosters/{roster}/duplicate": {
            "post": {
                "operationId": "tenant.rosters.duplicate",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DuplicateRosterRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`RosterResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RosterResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/rosters/{roster}/coverage": {
            "get": {
                "operationId": "tenant.rosters.coverage",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "date": {
                                                        "type": "string"
                                                    },
                                                    "shift_id": {
                                                        "type": "string"
                                                    },
                                                    "work_area_id": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "assigned": {
                                                        "type": "integer",
                                                        "minimum": 0
                                                    },
                                                    "open": {
                                                        "type": "integer",
                                                        "minimum": 0
                                                    },
                                                    "min_count": {
                                                        "type": "integer"
                                                    },
                                                    "optimal_count": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "required_skills": {
                                                        "type": "string"
                                                    },
                                                    "skill_gaps": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "skill_id": {
                                                                    "type": "string"
                                                                },
                                                                "name": {
                                                                    "type": "string"
                                                                },
                                                                "min_level": {
                                                                    "type": "string"
                                                                },
                                                                "required_count": {
                                                                    "type": "string"
                                                                },
                                                                "required": {
                                                                    "type": "integer"
                                                                },
                                                                "qualified": {
                                                                    "type": "integer",
                                                                    "minimum": 0
                                                                },
                                                                "missing": {
                                                                    "type": "integer"
                                                                }
                                                            },
                                                            "required": [
                                                                "skill_id",
                                                                "name",
                                                                "min_level",
                                                                "required_count",
                                                                "required",
                                                                "qualified",
                                                                "missing"
                                                            ]
                                                        }
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "enum": [
                                                            "understaffed",
                                                            "skill_gap",
                                                            "overstaffed",
                                                            "ok"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "date",
                                                    "shift_id",
                                                    "work_area_id",
                                                    "assigned",
                                                    "open",
                                                    "min_count",
                                                    "optimal_count",
                                                    "required_skills",
                                                    "skill_gaps",
                                                    "status"
                                                ]
                                            }
                                        },
                                        "warnings": {
                                            "type": "object",
                                            "additionalProperties": {
                                                "type": "array",
                                                "items": {
                                                    "type": "object",
                                                    "properties": {
                                                        "code": {
                                                            "type": "string"
                                                        },
                                                        "severity": {
                                                            "type": "string"
                                                        },
                                                        "message": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "code",
                                                        "severity",
                                                        "message"
                                                    ]
                                                }
                                            }
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "warnings"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/rosters/{roster}/fairness": {
            "get": {
                "operationId": "tenant.rosters.fairness",
                "summary": "GET /rest/rosters/{roster}/fairness \u2014 burden distribution of the\nroster's unit over the rolling fairness window ending at the roster\nperiod end (the planner sees the load accumulated up to this plan)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `FairnessSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/FairnessSummaryResource"
                                            }
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "window_start": {
                                                    "type": "string"
                                                },
                                                "window_end": {
                                                    "type": "string"
                                                },
                                                "window_weeks": {
                                                    "type": "integer"
                                                },
                                                "fairness_index": {
                                                    "type": "number"
                                                }
                                            },
                                            "required": [
                                                "window_start",
                                                "window_end",
                                                "window_weeks",
                                                "fairness_index"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/rosters/{roster}/staffing_alerts": {
            "get": {
                "operationId": "tenant.rosters.staffing_alerts",
                "summary": "GET /rest/rosters/{roster}/staffing_alerts \u2014 current understaffed\nslots of a published plan (drafts never raise alerts)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `StaffingAlertResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/StaffingAlertResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/rosters/{roster}/acknowledgements": {
            "get": {
                "operationId": "tenant.rosters.acknowledgements",
                "summary": "GET /rest/rosters/{roster}/acknowledgements \u2014 manager overview of\nconfirmed and pending short-notice acknowledgements of the plan",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ShiftAcknowledgementResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/ShiftAcknowledgementResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "employee_name",
                                                            "date",
                                                            "shift_name"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/units/{unit}/fairness/{start}/{end}": {
            "get": {
                "operationId": "tenant.units.fairness",
                "summary": "GET /rest/units/{unit}/fairness/{start}/{end} \u2014 burden distribution\nof a unit over an explicit period",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "unit",
                        "in": "path",
                        "required": true,
                        "description": "The unit ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `FairnessSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/FairnessSummaryResource"
                                            }
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "window_start": {
                                                    "type": "string"
                                                },
                                                "window_end": {
                                                    "type": "string"
                                                },
                                                "window_weeks": {
                                                    "type": "integer"
                                                },
                                                "fairness_index": {
                                                    "type": "number"
                                                }
                                            },
                                            "required": [
                                                "window_start",
                                                "window_end",
                                                "window_weeks",
                                                "fairness_index"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/rosters/{roster}/pdf": {
            "get": {
                "operationId": "tenant.rosters.pdf",
                "summary": "GET /rest/rosters/{roster}/pdf \u2014 planner export as PDF (landscape week grid)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Dienstplan als PDF-Download",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "headers": {
                            "Content-Disposition": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/rosters/{roster}/calendar.ics": {
            "get": {
                "operationId": "tenant.rosters.calendar",
                "summary": "GET /rest/rosters/{roster}/calendar.ics \u2014 VCALENDAR over all roster entries",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Dienstplan als iCalendar-Feed (VCALENDAR)",
                        "content": {
                            "text/calendar; charset=utf-8": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "headers": {
                            "Content-Disposition": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/rosters/{roster}/auto_schedule": {
            "post": {
                "operationId": "tenant.rosters.auto_schedule",
                "summary": "The queue job carries no user context, so the cross-site permission\ncheck and the scope resolution MUST happen here before dispatch:\nwithout roster:plan-cross-site the pool_units flag is discarded and\nthe run behaves exactly like a single-unit scheduling",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "pool_units": {
                                        "type": "boolean",
                                        "default": false
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "202": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/rosters/{roster}/auto_schedule_report": {
            "get": {
                "operationId": "tenant.rosters.auto_schedule_report",
                "summary": "GET /rest/rosters/{roster}/auto_schedule_report \u2014 cached report of the\nlast auto-scheduling run, `null` when nothing was generated (yet)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": [
                                                "object",
                                                "null"
                                            ],
                                            "properties": {
                                                "generated": {
                                                    "type": "integer"
                                                },
                                                "open": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "date": {
                                                                "type": "string"
                                                            },
                                                            "shift_id": {
                                                                "type": "string"
                                                            },
                                                            "reason": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "date",
                                                            "shift_id",
                                                            "reason"
                                                        ]
                                                    }
                                                },
                                                "cross_unit": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "date": {
                                                                "type": "string"
                                                            },
                                                            "shift_id": {
                                                                "type": "string"
                                                            },
                                                            "employee_id": {
                                                                "type": "string"
                                                            },
                                                            "source_unit_id": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "date",
                                                            "shift_id",
                                                            "employee_id",
                                                            "source_unit_id"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "generated",
                                                "open",
                                                "cross_unit"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/rosters/{roster}/save_template": {
            "post": {
                "operationId": "tenant.rosters.save_template",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SaveRosterTemplateRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`RosterTemplateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RosterTemplateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/rosters/{roster}/entries": {
            "get": {
                "operationId": "tenant.rosters.entries.index",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `RosterEntryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/RosterEntryResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "employee_name",
                                                            "shift",
                                                            "acknowledgement"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.rosters.entries.store",
                "summary": "Create a single entry or \u2014 with a series payload \u2014 materialize the\nwhole series (201 with all created entries incl. warnings). With\npublish: true the entry runs through the entry publish path\nafterwards (\"Speichern & ver\u00f6ffentlichen\")",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreRosterEntryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`RosterEntryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "anyOf": [
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "allOf": [
                                                        {
                                                            "$ref": "#/components/schemas/RosterEntryResource"
                                                        },
                                                        {
                                                            "type": "object",
                                                            "required": [
                                                                "employee_name",
                                                                "shift"
                                                            ]
                                                        }
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "data"
                                            ]
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "array",
                                                        "items": {}
                                                    }
                                                },
                                                "series": {
                                                    "type": "array",
                                                    "items": {}
                                                }
                                            },
                                            "required": [
                                                "data",
                                                "series"
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/rosters/{roster}/entries/bulk": {
            "post": {
                "operationId": "tenant.rosters.entries.bulk",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/BulkStoreRosterEntriesRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Array of `RosterEntryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/RosterEntryResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/rosters/{roster}/entries/publish": {
            "post": {
                "operationId": "tenant.rosters.entries.publish",
                "summary": "POST /rest/rosters/{roster}/entries/publish \u2014 publish a whole day\n(date) or an explicit selection (entry_ids) atomically, with the same\ncompliance gate contract as the roster publish",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PublishRosterEntriesRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        },
                                        "published_count": {
                                            "type": "integer",
                                            "minimum": 0
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "published_count"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/rosters/{roster}/candidate_status": {
            "get": {
                "operationId": "tenant.rosters.candidate_status",
                "summary": "GET /rest/rosters/{roster}/candidate_status \u2014 batch assignment status\n(V/TV/NV/R/none) for all active employees of the roster unit,\naggregated from existing signals only (no persistence)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "date",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "shift_id",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "start_time",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "pattern": "^(\\d+|\\d{1,3}:\\d{2}:\\d{2}\\.\\d{3})$"
                        }
                    },
                    {
                        "name": "end_time",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "pattern": "^(\\d+|\\d{1,3}:\\d{2}:\\d{2}\\.\\d{3})$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `AssignmentCandidateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/AssignmentCandidateResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/roster_entries/{rosterEntry}": {
            "put": {
                "operationId": "tenant.roster_entries.update",
                "summary": "Update an entry, optionally across its series (scope) and optionally\npublishing it in the same step",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterEntry",
                        "in": "path",
                        "required": true,
                        "description": "The roster entry ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateRosterEntryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`RosterEntryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/RosterEntryResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee_name",
                                                        "shift"
                                                    ]
                                                }
                                            ]
                                        },
                                        "affected_count": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "affected_count"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.roster_entries.destroy",
                "summary": "Delete an entry, optionally across its series (scope). Scoped calls\nanswer with the affected_count; the default single delete stays 204",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterEntry",
                        "in": "path",
                        "required": true,
                        "description": "The roster entry ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "scope",
                        "in": "query",
                        "schema": {
                            "anyOf": [
                                {
                                    "$ref": "#/components/schemas/SeriesEditScope"
                                },
                                {
                                    "type": "null"
                                }
                            ]
                        }
                    },
                    {
                        "name": "document_declination",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "reason",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 500
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "affected_count": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "affected_count"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/roster_entries/{rosterEntry}/publish": {
            "post": {
                "operationId": "tenant.roster_entries.publish",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterEntry",
                        "in": "path",
                        "required": true,
                        "description": "The roster entry ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "force": {
                                        "type": "boolean",
                                        "default": false
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RosterEntryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/roster_entries/{rosterEntry}/unpublish": {
            "post": {
                "operationId": "tenant.roster_entries.unpublish",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterEntry",
                        "in": "path",
                        "required": true,
                        "description": "The roster entry ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RosterEntryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/roster_entries/{rosterEntry}/unassign": {
            "post": {
                "operationId": "tenant.roster_entries.unassign",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterEntry",
                        "in": "path",
                        "required": true,
                        "description": "The roster entry ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UnassignRosterEntryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`RosterEntryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/RosterEntryResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "shift"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/roster_entries/{rosterEntry}/announce": {
            "post": {
                "operationId": "tenant.roster_entries.announce",
                "summary": "POST /rest/roster_entries/{rosterEntry}/announce \u2014 announce an existing\nopen entry of a published plan (again), e.g. after unassigning a person\nor after an unsuccessful first round. Thin delegation to\nRosterService::announceOpenShift() so later changes to the announce\nmechanism (targeting, cross-site) apply automatically",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterEntry",
                        "in": "path",
                        "required": true,
                        "description": "The roster entry ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RosterEntryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/roster_planning/overview/{start}/{end}": {
            "get": {
                "operationId": "tenant.roster_planning.overview",
                "summary": "GET /rest/roster_planning/overview/{start}/{end} \u2014 coverage, open\nshifts and staffing per unit of the planning scope in one call",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "unit_ids[]",
                        "in": "query",
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "unit": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "parent_id": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "name",
                                                            "parent_id"
                                                        ]
                                                    },
                                                    "coverage": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "additionalProperties": {}
                                                        }
                                                    },
                                                    "assigned_count": {
                                                        "type": "integer"
                                                    },
                                                    "open_count": {
                                                        "type": "integer"
                                                    },
                                                    "open_shifts": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string"
                                                                },
                                                                "roster_id": {
                                                                    "type": "string"
                                                                },
                                                                "date": {
                                                                    "type": "string"
                                                                },
                                                                "shift_id": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ]
                                                                },
                                                                "shift_name": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ]
                                                                }
                                                            },
                                                            "required": [
                                                                "id",
                                                                "roster_id",
                                                                "date",
                                                                "shift_id",
                                                                "shift_name"
                                                            ]
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "unit",
                                                    "coverage",
                                                    "assigned_count",
                                                    "open_count",
                                                    "open_shifts"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/roster_planning/availability/{start}/{end}": {
            "get": {
                "operationId": "tenant.roster_planning.availability",
                "summary": "GET /rest/roster_planning/availability/{start}/{end} \u2014 pooled\nEmployeeAvailability of all employees in the planning scope, for\nfinding cross-unit stand-ins (Springer)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "unit_ids[]",
                        "in": "query",
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "employee_id": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "unit": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "name"
                                                        ]
                                                    },
                                                    "availabilities": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "date": {
                                                                    "type": "string"
                                                                },
                                                                "type": {
                                                                    "type": "string"
                                                                },
                                                                "note": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ]
                                                                }
                                                            },
                                                            "required": [
                                                                "date",
                                                                "type",
                                                                "note"
                                                            ]
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "employee_id",
                                                    "name",
                                                    "unit",
                                                    "availabilities"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/roster_planning/candidates/{rosterEntry}": {
            "get": {
                "operationId": "tenant.roster_planning.candidates",
                "summary": "GET /rest/roster_planning/candidates/{rosterEntry} \u2014 read-only\ncross-unit candidate suggestions for one (open) shift, using the\nauto-scheduler hard constraints in pool mode",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterEntry",
                        "in": "path",
                        "required": true,
                        "description": "The roster entry ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "employee_id": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "unit": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "name"
                                                        ]
                                                    },
                                                    "is_cross_unit": {
                                                        "type": "boolean"
                                                    }
                                                },
                                                "required": [
                                                    "employee_id",
                                                    "name",
                                                    "unit",
                                                    "is_cross_unit"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/roster_entries/{rosterEntry}/applications": {
            "get": {
                "operationId": "tenant.roster_entries.applications.index",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterEntry",
                        "in": "path",
                        "required": true,
                        "description": "The roster entry ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ShiftApplicationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/ShiftApplicationResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "employee_name"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/shift_applications/{shiftApplication}/assign": {
            "post": {
                "operationId": "tenant.shift_applications.assign",
                "summary": "Manager assigns an application: entry gets the employee, all other\napplications are rejected and the applicants notified",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "shiftApplication",
                        "in": "path",
                        "required": true,
                        "description": "The shift application ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ShiftApplicationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ShiftApplicationResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/shift_declinations": {
            "get": {
                "operationId": "tenant.shift_declinations.index",
                "summary": "GET /rest/shift_declinations \u2014 unit-scoped manager report over\ndocumented short-notice declinations",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "unit_id",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "date-time"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "employee_id": {
                                                        "type": "string"
                                                    },
                                                    "employee_name": {
                                                        "type": "string"
                                                    },
                                                    "declination_count_12m": {
                                                        "type": "integer",
                                                        "minimum": 0
                                                    },
                                                    "total_count": {
                                                        "type": "string"
                                                    },
                                                    "declinations": {
                                                        "type": "array",
                                                        "items": {}
                                                    }
                                                },
                                                "required": [
                                                    "employee_id",
                                                    "employee_name",
                                                    "declination_count_12m",
                                                    "total_count",
                                                    "declinations"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/shift_swaps/{shiftSwap}/approve": {
            "post": {
                "operationId": "tenant.shift_swaps.approve",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "shiftSwap",
                        "in": "path",
                        "required": true,
                        "description": "The shift swap ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ShiftSwapRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ShiftSwapRequestResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/shift_swaps/{shiftSwap}/deny": {
            "post": {
                "operationId": "tenant.shift_swaps.deny",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "shiftSwap",
                        "in": "path",
                        "required": true,
                        "description": "The shift swap ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreShiftSwapDenyRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ShiftSwapRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ShiftSwapRequestResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/units/{unit}/roster_budgets": {
            "get": {
                "operationId": "tenant.units.roster_budgets.index",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "unit",
                        "in": "path",
                        "required": true,
                        "description": "The unit ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `RosterBudgetResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/RosterBudgetResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.units.roster_budgets.store",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "unit",
                        "in": "path",
                        "required": true,
                        "description": "The unit ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreRosterBudgetRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`RosterBudgetResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RosterBudgetResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/roster_budgets/{rosterBudget}": {
            "put": {
                "operationId": "tenant.roster_budgets.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterBudget",
                        "in": "path",
                        "required": true,
                        "description": "The roster budget ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreRosterBudgetRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`RosterBudgetResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RosterBudgetResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.roster_budgets.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "rosterBudget",
                        "in": "path",
                        "required": true,
                        "description": "The roster budget ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/surcharge_rules": {
            "get": {
                "operationId": "tenant.surcharge_rules.index",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `SurchargeRuleResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/SurchargeRuleResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "compensation_type"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.surcharge_rules.store",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreSurchargeRuleRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`SurchargeRuleResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/SurchargeRuleResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "compensation_type"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/surcharge_rules/{surchargeRule}": {
            "get": {
                "operationId": "tenant.surcharge_rules.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "surchargeRule",
                        "in": "path",
                        "required": true,
                        "description": "The surcharge rule ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`SurchargeRuleResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/SurchargeRuleResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "compensation_type"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.surcharge_rules.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "surchargeRule",
                        "in": "path",
                        "required": true,
                        "description": "The surcharge rule ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreSurchargeRuleRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`SurchargeRuleResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/SurchargeRuleResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "compensation_type"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.surcharge_rules.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "surchargeRule",
                        "in": "path",
                        "required": true,
                        "description": "The surcharge rule ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/surcharges/{start}/{end}": {
            "get": {
                "operationId": "tenant.surcharges.index",
                "summary": "GET /rest/surcharges/{start}/{end} \u2014 per-day surcharge breakdown of all\nvisible employees, keyed by employee id and then by date",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "additionalProperties": {
                                                "type": "object",
                                                "additionalProperties": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "rule_id": {
                                                                "type": "string"
                                                            },
                                                            "compensation_type_id": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "hours": {
                                                                "type": "number"
                                                            },
                                                            "amount": {
                                                                "type": [
                                                                    "number",
                                                                    "null"
                                                                ]
                                                            },
                                                            "overlap_ms": {
                                                                "type": "integer"
                                                            },
                                                            "tax_free_amount": {
                                                                "type": [
                                                                    "number",
                                                                    "null"
                                                                ]
                                                            },
                                                            "taxable_amount": {
                                                                "type": [
                                                                    "number",
                                                                    "null"
                                                                ]
                                                            }
                                                        },
                                                        "required": [
                                                            "rule_id",
                                                            "compensation_type_id",
                                                            "hours",
                                                            "amount",
                                                            "overlap_ms",
                                                            "tax_free_amount",
                                                            "taxable_amount"
                                                        ]
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/surcharges/{start}/{end}": {
            "get": {
                "operationId": "tenant.employees.surcharges.show",
                "summary": "GET /rest/employees/{employee}/surcharges/{start}/{end} \u2014 per-day\nsurcharge breakdown of one employee, keyed by date",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "additionalProperties": {
                                                "type": "array",
                                                "items": {
                                                    "type": "object",
                                                    "properties": {
                                                        "rule_id": {
                                                            "type": "string"
                                                        },
                                                        "compensation_type_id": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "hours": {
                                                            "type": "number"
                                                        },
                                                        "amount": {
                                                            "type": [
                                                                "number",
                                                                "null"
                                                            ]
                                                        },
                                                        "overlap_ms": {
                                                            "type": "integer"
                                                        },
                                                        "tax_free_amount": {
                                                            "type": [
                                                                "number",
                                                                "null"
                                                            ]
                                                        },
                                                        "taxable_amount": {
                                                            "type": [
                                                                "number",
                                                                "null"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "rule_id",
                                                        "compensation_type_id",
                                                        "hours",
                                                        "amount",
                                                        "overlap_ms",
                                                        "tax_free_amount",
                                                        "taxable_amount"
                                                    ]
                                                }
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/rosters/{roster}/labor_cost": {
            "get": {
                "operationId": "tenant.rosters.labor_cost",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "roster",
                        "in": "path",
                        "required": true,
                        "description": "The roster ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`LaborCostResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/LaborCostResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/surcharge_settlements/{yearMonth}": {
            "get": {
                "operationId": "tenant.surcharge_settlements.index",
                "summary": "GET /rest/surcharge_settlements/{yearMonth}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "yearMonth",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "employee": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "surname": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "name",
                                                            "surname"
                                                        ]
                                                    },
                                                    "positions": {
                                                        "type": "array",
                                                        "items": {
                                                            "$ref": "#/components/schemas/SurchargeSettlementResource"
                                                        }
                                                    },
                                                    "totals": {
                                                        "type": "object",
                                                        "properties": {
                                                            "hours_ms": {
                                                                "type": "integer"
                                                            },
                                                            "amount_cents": {
                                                                "type": "integer"
                                                            },
                                                            "amount": {
                                                                "type": "string"
                                                            },
                                                            "tax_free_cents": {
                                                                "type": "integer"
                                                            },
                                                            "taxable_cents": {
                                                                "type": "integer"
                                                            },
                                                            "rate_missing": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "hours_ms",
                                                            "amount_cents",
                                                            "amount",
                                                            "tax_free_cents",
                                                            "taxable_cents",
                                                            "rate_missing"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "employee",
                                                    "positions",
                                                    "totals"
                                                ]
                                            }
                                        },
                                        "year_month": {
                                            "type": "string"
                                        },
                                        "period_status": {
                                            "type": "string",
                                            "enum": [
                                                "closed",
                                                "open"
                                            ]
                                        },
                                        "sv_base_wage_cap_cents": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "year_month",
                                        "period_status",
                                        "sv_base_wage_cap_cents"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/surcharge_settlements/{yearMonth}/recalculate": {
            "post": {
                "operationId": "tenant.surcharge_settlements.recalculate",
                "summary": "POST /rest/surcharge_settlements/{yearMonth}/recalculate",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "yearMonth",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "year_month": {
                                                    "type": "string"
                                                },
                                                "employee_count": {
                                                    "type": "integer"
                                                },
                                                "line_count": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "year_month",
                                                "employee_count",
                                                "line_count"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/surcharge_settlements/{yearMonth}/correct": {
            "post": {
                "operationId": "tenant.surcharge_settlements.correct",
                "description": "Correction flow for a CLOSED period: deltas against the frozen lines\nare written into the next open period (design D8).",
                "summary": "POST /rest/surcharge_settlements/{yearMonth}/correct",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "yearMonth",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SurchargeSettlementResource"
                                            }
                                        },
                                        "correction_for_year_month": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "correction_for_year_month"
                                    ]
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/surcharge_settlements/{yearMonth}": {
            "get": {
                "operationId": "tenant.employees.surcharge_settlements.show",
                "summary": "GET /rest/employees/{employee}/surcharge_settlements/{yearMonth}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "yearMonth",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/SurchargeSettlementResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "rule_name"
                                                        ]
                                                    }
                                                ]
                                            }
                                        },
                                        "totals": {
                                            "type": "object",
                                            "properties": {
                                                "hours_ms": {
                                                    "type": "integer"
                                                },
                                                "amount_cents": {
                                                    "type": "integer"
                                                },
                                                "amount": {
                                                    "type": "string"
                                                },
                                                "tax_free_cents": {
                                                    "type": "integer"
                                                },
                                                "taxable_cents": {
                                                    "type": "integer"
                                                },
                                                "rate_missing": {
                                                    "type": "boolean"
                                                }
                                            },
                                            "required": [
                                                "hours_ms",
                                                "amount_cents",
                                                "amount",
                                                "tax_free_cents",
                                                "taxable_cents",
                                                "rate_missing"
                                            ]
                                        },
                                        "year_month": {
                                            "type": "string"
                                        },
                                        "period_status": {
                                            "type": "string",
                                            "enum": [
                                                "closed",
                                                "open"
                                            ]
                                        },
                                        "sv_base_wage_cap_cents": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "totals",
                                        "year_month",
                                        "period_status",
                                        "sv_base_wage_cap_cents"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/reports/employee-status": {
            "get": {
                "operationId": "tenant.reports.employee_status",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "labels": {
                                                    "type": "array",
                                                    "prefixItems": [
                                                        {
                                                            "type": "string",
                                                            "const": "active"
                                                        },
                                                        {
                                                            "type": "string",
                                                            "const": "inactive"
                                                        },
                                                        {
                                                            "type": "string",
                                                            "const": "separated"
                                                        }
                                                    ],
                                                    "minItems": 3,
                                                    "maxItems": 3
                                                },
                                                "datasets": {
                                                    "type": "array",
                                                    "prefixItems": [
                                                        {
                                                            "type": "object",
                                                            "properties": {
                                                                "data": {
                                                                    "type": "array",
                                                                    "prefixItems": [
                                                                        {
                                                                            "type": "integer",
                                                                            "minimum": 0
                                                                        },
                                                                        {
                                                                            "type": "integer",
                                                                            "minimum": 0
                                                                        },
                                                                        {
                                                                            "type": "integer",
                                                                            "minimum": 0
                                                                        }
                                                                    ],
                                                                    "minItems": 3,
                                                                    "maxItems": 3
                                                                }
                                                            },
                                                            "required": [
                                                                "data"
                                                            ]
                                                        }
                                                    ],
                                                    "minItems": 1,
                                                    "maxItems": 1
                                                },
                                                "total": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "labels",
                                                "datasets",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/reports/gender-distribution": {
            "get": {
                "operationId": "tenant.reports.gender_distribution",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "labels": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "datasets": {
                                                    "type": "array",
                                                    "prefixItems": [
                                                        {
                                                            "type": "object",
                                                            "properties": {
                                                                "data": {
                                                                    "type": "array",
                                                                    "items": {}
                                                                }
                                                            },
                                                            "required": [
                                                                "data"
                                                            ]
                                                        }
                                                    ],
                                                    "minItems": 1,
                                                    "maxItems": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "labels",
                                                "datasets",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/reports/gender-by-department": {
            "get": {
                "operationId": "tenant.reports.gender_by_department",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "labels": {
                                                    "type": "object",
                                                    "additionalProperties": {}
                                                },
                                                "datasets": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "data": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "integer",
                                                                    "minimum": 0
                                                                }
                                                            }
                                                        },
                                                        "required": [
                                                            "label",
                                                            "data"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "labels",
                                                "datasets"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/reports/tenure-distribution": {
            "get": {
                "operationId": "tenant.reports.tenure_distribution",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "labels": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "datasets": {
                                                    "type": "array",
                                                    "prefixItems": [
                                                        {
                                                            "type": "object",
                                                            "properties": {
                                                                "data": {
                                                                    "type": "array",
                                                                    "items": {}
                                                                }
                                                            },
                                                            "required": [
                                                                "data"
                                                            ]
                                                        }
                                                    ],
                                                    "minItems": 1,
                                                    "maxItems": 1
                                                }
                                            },
                                            "required": [
                                                "labels",
                                                "datasets"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/reports/age-distribution": {
            "get": {
                "operationId": "tenant.reports.age_distribution",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "labels": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "datasets": {
                                                    "type": "array",
                                                    "prefixItems": [
                                                        {
                                                            "type": "object",
                                                            "properties": {
                                                                "data": {
                                                                    "type": "array",
                                                                    "items": {}
                                                                }
                                                            },
                                                            "required": [
                                                                "data"
                                                            ]
                                                        }
                                                    ],
                                                    "minItems": 1,
                                                    "maxItems": 1
                                                }
                                            },
                                            "required": [
                                                "labels",
                                                "datasets"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/reports/gender-by-position": {
            "get": {
                "operationId": "tenant.reports.gender_by_position",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "labels": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "datasets": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "data": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "integer",
                                                                    "minimum": 0
                                                                }
                                                            }
                                                        },
                                                        "required": [
                                                            "label",
                                                            "data"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "labels",
                                                "datasets"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/reports/gender-by-tenure": {
            "get": {
                "operationId": "tenant.reports.gender_by_tenure",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "labels": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "datasets": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "data": {
                                                                "type": "array",
                                                                "items": {}
                                                            }
                                                        },
                                                        "required": [
                                                            "label",
                                                            "data"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "labels",
                                                "datasets"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/reports/absence-rate": {
            "get": {
                "operationId": "tenant.reports.absence_rate",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "start",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "end",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "rate": {
                                                    "type": "number"
                                                },
                                                "absence_days": {
                                                    "type": "number"
                                                },
                                                "work_days": {
                                                    "type": "integer"
                                                },
                                                "employee_count": {
                                                    "type": "integer",
                                                    "minimum": 0
                                                },
                                                "period": {
                                                    "type": "object",
                                                    "properties": {
                                                        "start": {
                                                            "type": "string"
                                                        },
                                                        "end": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "start",
                                                        "end"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "rate",
                                                "absence_days",
                                                "work_days",
                                                "employee_count",
                                                "period"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/reports/absence-rate-by-department": {
            "get": {
                "operationId": "tenant.reports.absence_rate_by_department",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "start",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "end",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "labels": {
                                                    "type": "object",
                                                    "additionalProperties": {}
                                                },
                                                "datasets": {
                                                    "type": "array",
                                                    "prefixItems": [
                                                        {
                                                            "type": "object",
                                                            "properties": {
                                                                "data": {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "number"
                                                                    }
                                                                }
                                                            },
                                                            "required": [
                                                                "data"
                                                            ]
                                                        }
                                                    ],
                                                    "minItems": 1,
                                                    "maxItems": 1
                                                },
                                                "period": {
                                                    "type": "object",
                                                    "properties": {
                                                        "start": {
                                                            "type": "string"
                                                        },
                                                        "end": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "start",
                                                        "end"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "labels",
                                                "datasets",
                                                "period"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/reports/absence-rate-by-type": {
            "get": {
                "operationId": "tenant.reports.absence_rate_by_type",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "start",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "end",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "labels": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "datasets": {
                                                    "type": "array",
                                                    "prefixItems": [
                                                        {
                                                            "type": "object",
                                                            "properties": {
                                                                "data": {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "number"
                                                                    }
                                                                }
                                                            },
                                                            "required": [
                                                                "data"
                                                            ]
                                                        }
                                                    ],
                                                    "minItems": 1,
                                                    "maxItems": 1
                                                },
                                                "period": {
                                                    "type": "object",
                                                    "properties": {
                                                        "start": {
                                                            "type": "string"
                                                        },
                                                        "end": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "start",
                                                        "end"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "labels",
                                                "datasets",
                                                "period"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/reports/work_activities/{start}/{end}": {
            "get": {
                "operationId": "tenant.reports.work_activities",
                "summary": "GET /rest/reports/work_activities/{start}/{end}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "start",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "end",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "rows": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "totals_by_activity": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "totals_by_project": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "total": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "rows",
                                                "totals_by_activity",
                                                "totals_by_project",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/reports/work_activities/{start}/{end}/csv": {
            "get": {
                "operationId": "tenant.reports.work_activities.csv",
                "summary": "GET /rest/reports/work_activities/{start}/{end}/csv",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "start",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "end",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Projekt- und T\u00e4tigkeitsstunden als CSV-Download",
                        "content": {
                            "text/csv; charset=UTF-8": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "headers": {
                            "Content-Disposition": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/reports/full_day_activities/{year}/{month}": {
            "get": {
                "operationId": "tenant.reports.full_day_activities",
                "summary": "GET /rest/reports/full_day_activities/{year}/{month}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "month",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "year",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 2000,
                            "maximum": 2100
                        }
                    },
                    {
                        "name": "month",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 12
                        }
                    },
                    {
                        "name": "activity",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "activities": {
                                                    "type": "array",
                                                    "items": {}
                                                }
                                            },
                                            "required": [
                                                "activities"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/reports/full_day_activities/{year}/{month}/csv": {
            "get": {
                "operationId": "tenant.reports.full_day_activities.csv",
                "summary": "GET /rest/reports/full_day_activities/{year}/{month}/csv",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "month",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "year",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 2000,
                            "maximum": 2100
                        }
                    },
                    {
                        "name": "month",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 12
                        }
                    },
                    {
                        "name": "activity",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ganztagsbuchungen des Monats als CSV-Download",
                        "content": {
                            "text/csv; charset=UTF-8": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "headers": {
                            "Content-Disposition": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/reports/full_day_activities/{year}/{month}/pdf": {
            "get": {
                "operationId": "tenant.reports.full_day_activities.pdf",
                "summary": "GET /rest/reports/full_day_activities/{year}/{month}/pdf",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "month",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "year",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 2000,
                            "maximum": 2100
                        }
                    },
                    {
                        "name": "month",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 12
                        }
                    },
                    {
                        "name": "activity",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ganztagsbuchungen des Monats als PDF-Download",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "headers": {
                            "Content-Disposition": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/remind-clockin": {
            "post": {
                "operationId": "tenant.employees.remind_clockin",
                "description": "Sends a push notification reminder to an employee who forgot to clock in.\nThe \"time\" value is the employee's scheduled shift start (most useful\ncontext for the recipient), not the send timestamp.",
                "summary": "POST /rest/employees/{employee}/remind-clockin",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "status"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/vacation_reminders": {
            "post": {
                "operationId": "tenant.vacation_reminders.store",
                "summary": "POST /rest/vacation_reminders \u2014 Manually trigger the duty-to-inform\nreminder for every visible employee who still has current-year vacation\nat risk of expiring. Reuses the shared {@see VacationReminderNotifier}\nso inbox, push and e-mail channels behave like the scheduled reminders",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "notified": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "notified"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/manager/inbox": {
            "get": {
                "operationId": "tenant.manager.inbox",
                "summary": "GET /rest/manager/inbox \u2014 all open manager tasks in one roundtrip\n(badge counter + section items). Read-only; actions go through the\nexisting endpoints. Route sits in the `manager` middleware block\nwithout a global module gate \u2014 sections are individually module- and\npermission-gated inside the service",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "counts": {
                                            "type": "object",
                                            "properties": {
                                                "shift_swaps": {
                                                    "type": "integer",
                                                    "minimum": 0
                                                },
                                                "shift_applications": {
                                                    "type": "integer",
                                                    "minimum": 0
                                                },
                                                "leave_requests": {
                                                    "type": "integer",
                                                    "minimum": 0
                                                },
                                                "time_corrections": {
                                                    "type": "integer"
                                                },
                                                "total": {
                                                    "type": "number"
                                                }
                                            },
                                            "required": [
                                                "shift_swaps",
                                                "shift_applications",
                                                "leave_requests",
                                                "time_corrections",
                                                "total"
                                            ]
                                        },
                                        "shift_swaps": {
                                            "type": "array",
                                            "items": {}
                                        },
                                        "shift_applications": {
                                            "type": "string"
                                        },
                                        "leave_requests": {
                                            "type": "array",
                                            "items": {}
                                        },
                                        "time_corrections": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "employee": {
                                                        "type": "object",
                                                        "additionalProperties": {}
                                                    },
                                                    "date": {
                                                        "type": "string"
                                                    },
                                                    "reason": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "created_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "entries": {
                                                        "type": "array",
                                                        "items": {}
                                                    },
                                                    "original_entries": {
                                                        "type": "array",
                                                        "items": {}
                                                    },
                                                    "original_net_ms": {
                                                        "type": "integer"
                                                    },
                                                    "proposed_net_ms": {
                                                        "type": "integer"
                                                    },
                                                    "delta_ms": {
                                                        "type": "integer"
                                                    },
                                                    "assessment": {
                                                        "type": "string"
                                                    },
                                                    "age_days": {
                                                        "type": "integer"
                                                    }
                                                },
                                                "required": [
                                                    "employee",
                                                    "date",
                                                    "reason",
                                                    "created_at",
                                                    "entries",
                                                    "original_entries",
                                                    "original_net_ms",
                                                    "proposed_net_ms",
                                                    "delta_ms",
                                                    "assessment",
                                                    "age_days"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "counts",
                                        "shift_swaps",
                                        "shift_applications",
                                        "leave_requests",
                                        "time_corrections"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/team/live_status": {
            "get": {
                "operationId": "tenant.team.live_status",
                "summary": "GET /rest/team/live_status \u2014 status of all visible employees for one\ncalendar day (planned shift, clock state, lateness, no-show). The\noptional query parameter `date` (`Y-m-d`, tenant timezone) selects the\nday; without it today is returned. Sits in the `manager` block without a\nmodule gate: the roster fields degrade gracefully when the shift_roster\nmodule is disabled",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "date",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "date"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "date": {
                                            "type": "string"
                                        },
                                        "employees": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "surname": {
                                                        "type": "string"
                                                    },
                                                    "avatar_url": {
                                                        "type": "string"
                                                    },
                                                    "unit": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "id": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "name"
                                                        ]
                                                    },
                                                    "phone": {
                                                        "type": "string"
                                                    },
                                                    "planned_shift": {
                                                        "type": [
                                                            "object",
                                                            "null"
                                                        ],
                                                        "properties": {
                                                            "entry_id": {
                                                                "type": "string"
                                                            },
                                                            "shift_name": {
                                                                "type": "string"
                                                            },
                                                            "color": {
                                                                "type": "string"
                                                            },
                                                            "start": {
                                                                "type": "string"
                                                            },
                                                            "end": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "entry_id",
                                                            "shift_name",
                                                            "color",
                                                            "start",
                                                            "end"
                                                        ]
                                                    },
                                                    "clock": {
                                                        "anyOf": [
                                                            {
                                                                "type": "object",
                                                                "properties": {
                                                                    "state": {
                                                                        "type": "string",
                                                                        "const": "out"
                                                                    },
                                                                    "clocked_in_at": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ]
                                                                    },
                                                                    "last_out_at": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ]
                                                                    },
                                                                    "duration_minutes": {
                                                                        "description": "Kontextabh\u00e4ngig, kann null sein."
                                                                    }
                                                                },
                                                                "required": [
                                                                    "state",
                                                                    "clocked_in_at",
                                                                    "last_out_at",
                                                                    "duration_minutes"
                                                                ]
                                                            },
                                                            {
                                                                "type": "object",
                                                                "properties": {
                                                                    "state": {
                                                                        "type": "string",
                                                                        "const": "in"
                                                                    },
                                                                    "clocked_in_at": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ]
                                                                    },
                                                                    "last_out_at": {
                                                                        "description": "Kontextabh\u00e4ngig, kann null sein."
                                                                    },
                                                                    "duration_minutes": {
                                                                        "type": [
                                                                            "integer",
                                                                            "null"
                                                                        ]
                                                                    }
                                                                },
                                                                "required": [
                                                                    "state",
                                                                    "clocked_in_at",
                                                                    "last_out_at",
                                                                    "duration_minutes"
                                                                ]
                                                            },
                                                            {
                                                                "type": "object",
                                                                "properties": {
                                                                    "state": {
                                                                        "type": "string",
                                                                        "const": "none"
                                                                    },
                                                                    "clocked_in_at": {
                                                                        "description": "Kontextabh\u00e4ngig, kann null sein."
                                                                    },
                                                                    "last_out_at": {
                                                                        "description": "Kontextabh\u00e4ngig, kann null sein."
                                                                    },
                                                                    "duration_minutes": {
                                                                        "description": "Kontextabh\u00e4ngig, kann null sein."
                                                                    }
                                                                },
                                                                "required": [
                                                                    "state",
                                                                    "clocked_in_at",
                                                                    "last_out_at",
                                                                    "duration_minutes"
                                                                ]
                                                            }
                                                        ]
                                                    },
                                                    "lateness_minutes": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ]
                                                    },
                                                    "no_show": {
                                                        "type": "boolean"
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "surname",
                                                    "avatar_url",
                                                    "unit",
                                                    "phone",
                                                    "planned_shift",
                                                    "clock",
                                                    "lateness_minutes",
                                                    "no_show"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "date",
                                        "employees"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/print/working_time/{start}/{end}": {
            "get": {
                "operationId": "tenant.print.working_time.all",
                "summary": "GET /rest/print/working_time/{start}/{end} \u2014 PDF for all visible employees",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Arbeitszeitnachweis als PDF-Download",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "headers": {
                            "Content-Disposition": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/print/employees/{employee}/working_time/{start}/{end}": {
            "get": {
                "operationId": "tenant.print.working_time.employee",
                "summary": "GET /rest/print/employees/{employee}/working_time/{start}/{end} \u2014 PDF for single employee",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Arbeitszeitnachweis als PDF-Download",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "headers": {
                            "Content-Disposition": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/working_time_summary/{start}/{end}": {
            "get": {
                "operationId": "tenant.employees.working_time_summary.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`WorkingTimeSummaryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkingTimeSummaryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/time_account/{year}": {
            "get": {
                "operationId": "tenant.employees.time_account.show",
                "summary": "GET /rest/employees/{employee}/time_account/{year}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`TimeAccountResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/TimeAccountResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Ung\u00fcltiges Jahr (erwartet 2000\u20132100)."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/compliance/{start}/{end}": {
            "get": {
                "operationId": "tenant.employees.compliance.show",
                "description": "Returns aggregated ArbZG compliance data for a single employee.",
                "summary": "GET /rest/employees/{employee}/compliance/{start}/{end}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "employee_id": {
                                            "type": "string"
                                        },
                                        "period": {
                                            "type": "object",
                                            "properties": {
                                                "start": {
                                                    "type": "string"
                                                },
                                                "end": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "start",
                                                "end"
                                            ]
                                        },
                                        "summary": {
                                            "type": "object",
                                            "properties": {
                                                "days_over_10h": {
                                                    "type": "integer"
                                                },
                                                "days_over_8h": {
                                                    "type": "integer"
                                                },
                                                "rest_period_violations": {
                                                    "type": "integer"
                                                },
                                                "continuous_work_violations": {
                                                    "type": "integer"
                                                },
                                                "night_work_days": {
                                                    "type": "integer"
                                                },
                                                "night_work_total_ms": {
                                                    "type": "integer"
                                                },
                                                "night_worker_limit_violations": {
                                                    "type": "integer"
                                                },
                                                "total_violation_days": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "days_over_10h",
                                                "days_over_8h",
                                                "rest_period_violations",
                                                "continuous_work_violations",
                                                "night_work_days",
                                                "night_work_total_ms",
                                                "night_worker_limit_violations",
                                                "total_violation_days"
                                            ]
                                        },
                                        "weekly_hours": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "week": {
                                                        "type": "string"
                                                    },
                                                    "net_work_ms": {
                                                        "type": "string"
                                                    },
                                                    "exceeded": {
                                                        "type": "boolean"
                                                    }
                                                },
                                                "required": [
                                                    "week",
                                                    "net_work_ms",
                                                    "exceeded"
                                                ]
                                            }
                                        },
                                        "rolling_average": {
                                            "anyOf": [
                                                {
                                                    "type": "object",
                                                    "properties": {
                                                        "period_weeks": {
                                                            "type": "integer"
                                                        },
                                                        "average_weekly_hours_ms": {
                                                            "type": "integer"
                                                        },
                                                        "limit_ms": {
                                                            "type": "integer"
                                                        },
                                                        "exceeded": {
                                                            "type": "boolean"
                                                        }
                                                    },
                                                    "required": [
                                                        "period_weeks",
                                                        "average_weekly_hours_ms",
                                                        "limit_ms",
                                                        "exceeded"
                                                    ]
                                                },
                                                {
                                                    "type": "object",
                                                    "properties": {
                                                        "period_weeks": {
                                                            "type": "integer"
                                                        },
                                                        "average_weekly_hours_ms": {
                                                            "type": "integer"
                                                        },
                                                        "limit_ms": {
                                                            "type": "integer"
                                                        },
                                                        "exceeded": {
                                                            "type": "boolean"
                                                        }
                                                    },
                                                    "required": [
                                                        "period_weeks",
                                                        "average_weekly_hours_ms",
                                                        "limit_ms",
                                                        "exceeded"
                                                    ]
                                                }
                                            ]
                                        },
                                        "night_work": {
                                            "type": "object",
                                            "properties": {
                                                "total_ms": {
                                                    "type": "integer"
                                                },
                                                "monthly": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "month": {
                                                                "type": "string"
                                                            },
                                                            "night_ms": {
                                                                "type": "string"
                                                            },
                                                            "days": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "required": [
                                                            "month",
                                                            "night_ms",
                                                            "days"
                                                        ]
                                                    }
                                                },
                                                "is_night_worker": {
                                                    "type": "boolean"
                                                },
                                                "classification_reason": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "enum": [
                                                        "frequent_night_work",
                                                        "night_shift_schedule",
                                                        null
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "total_ms",
                                                "monthly",
                                                "is_night_worker",
                                                "classification_reason"
                                            ]
                                        },
                                        "sunday_holiday_work": {
                                            "type": "object",
                                            "properties": {
                                                "worked_sundays": {
                                                    "type": "integer"
                                                },
                                                "free_sundays": {
                                                    "type": "integer"
                                                },
                                                "total_sundays": {
                                                    "type": "integer"
                                                },
                                                "free_sundays_minimum": {
                                                    "type": "integer"
                                                },
                                                "free_sundays_ok": {
                                                    "type": "boolean"
                                                },
                                                "worked_holidays": {
                                                    "type": "integer"
                                                },
                                                "worked_sunday_dates": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "worked_holiday_dates": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "worked_sundays",
                                                "free_sundays",
                                                "total_sundays",
                                                "free_sundays_minimum",
                                                "free_sundays_ok",
                                                "worked_holidays",
                                                "worked_sunday_dates",
                                                "worked_holiday_dates"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "employee_id",
                                        "period",
                                        "summary",
                                        "weekly_hours",
                                        "rolling_average",
                                        "night_work",
                                        "sunday_holiday_work"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/working_time/preview": {
            "post": {
                "operationId": "tenant.employees.working_time.preview",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PreviewWorkingTimeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`WorkingTimePreviewResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WorkingTimePreviewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/approver": {
            "get": {
                "operationId": "tenant.employees.approver",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ApproverResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ApproverResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/holiday_feed": {
            "get": {
                "operationId": "tenant.employees.holiday_feed",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "months",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 24
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `HolidayFeedEntryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/HolidayFeedEntryResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/vacation_allocation_preview": {
            "get": {
                "operationId": "tenant.employees.vacation_allocation_preview",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "start_date",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "end_date",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "is_half_day",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`VacationAllocationPreviewResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/VacationAllocationPreviewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/leave_preview/{start}/{end}": {
            "get": {
                "operationId": "tenant.employees.leave_preview",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "is_half_day",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "first_day_half",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "name": "last_day_half",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`LeavePreviewResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/LeavePreviewResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/payroll": {
            "get": {
                "operationId": "tenant.employees.payroll.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`EmployeePayrollDataResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmployeePayrollDataResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.employees.payroll.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateEmployeePayrollDataRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EmployeePayrollDataResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmployeePayrollDataResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/payroll/children": {
            "put": {
                "operationId": "tenant.employees.payroll.children",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ReplaceEmployeeChildrenRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EmployeePayrollDataResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmployeePayrollDataResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/payroll/capital_formation_contracts": {
            "put": {
                "operationId": "tenant.employees.payroll.capital_formation_contracts",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ReplaceEmployeeCapitalFormationContractsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EmployeePayrollDataResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmployeePayrollDataResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/payroll/previous_employments": {
            "put": {
                "operationId": "tenant.employees.payroll.previous_employments",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ReplaceEmployeePreviousEmploymentsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EmployeePayrollDataResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmployeePayrollDataResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/payroll/other_employments": {
            "put": {
                "operationId": "tenant.employees.payroll.other_employments",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ReplaceEmployeeOtherEmploymentsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EmployeePayrollDataResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmployeePayrollDataResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/payroll/bank_lookup": {
            "post": {
                "operationId": "tenant.payroll.bank_lookup",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/BankLookupRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "iban": {
                                                    "type": "string"
                                                },
                                                "valid": {
                                                    "type": "boolean"
                                                },
                                                "country": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "sepa": {
                                                    "type": "boolean"
                                                },
                                                "bic_required": {
                                                    "type": "boolean"
                                                },
                                                "bank_name": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "bic": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "iban",
                                                "valid",
                                                "country",
                                                "sepa",
                                                "bic_required",
                                                "bank_name",
                                                "bic"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/insurance_history": {
            "get": {
                "operationId": "tenant.employees.insurance_history.index",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EmployeeInsuranceHistoryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmployeeInsuranceHistoryResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.employees.insurance_history.store",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreInsuranceHistoryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`EmployeeInsuranceHistoryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmployeeInsuranceHistoryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/insurance_history/{history}": {
            "delete": {
                "operationId": "tenant.employees.insurance_history.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "history",
                        "in": "path",
                        "required": true,
                        "description": "The history ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/establishment_history": {
            "get": {
                "operationId": "tenant.employees.establishment_history.index",
                "description": "`meta.main_bbnr` ist die Haupt-Betriebsnummer aus den Lohn-Firmeneinstellungen\n(`causer_company_number`), die f\u00fcr Zeiten ohne Zuordnung gilt.",
                "summary": "Betriebsst\u00e4tten-Zuordnungen einer Person",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EmployeeEstablishmentHistoryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmployeeEstablishmentHistoryResource"
                                            }
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "main_bbnr": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "main_bbnr"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.employees.establishment_history.store",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreEstablishmentHistoryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`EmployeeEstablishmentHistoryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmployeeEstablishmentHistoryResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/establishment_history/{history}": {
            "delete": {
                "operationId": "tenant.employees.establishment_history.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "history",
                        "in": "path",
                        "required": true,
                        "description": "The history ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/payroll/establishments": {
            "get": {
                "operationId": "tenant.payroll.establishments.index",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PayrollEstablishmentResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PayrollEstablishmentResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.payroll.establishments.store",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StorePayrollEstablishmentRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`PayrollEstablishmentResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PayrollEstablishmentResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/working_time_audit/{date}": {
            "get": {
                "operationId": "tenant.employees.working_time_audit",
                "description": "Returns audit trail entries for a specific employee's working time on a given date.",
                "summary": "GET /rest/employees/{employee}/working_time_audit/{date}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "date",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `AuditTrailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/AuditTrailResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Keine Berechtigung f\u00fcr die Einsicht der Zeiterfassungshistorie."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/avatar": {
            "post": {
                "operationId": "tenant.employees.avatar.store",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreEmployeeAvatarRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EmployeeResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "unit",
                                                        "location",
                                                        "department",
                                                        "cost_center"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.employees.avatar.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employment_certificates/schema": {
            "get": {
                "operationId": "tenant.employment_certificates.schema",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "schema": {
                            "$ref": "#/components/schemas/EmploymentCertificateType"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`EmploymentCertificateSchemaResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmploymentCertificateSchemaResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/employment_certificates": {
            "get": {
                "operationId": "tenant.employees.employment_certificates.index",
                "summary": "All versions of the employee's certificates, newest first",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EmploymentCertificateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmploymentCertificateResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.employees.employment_certificates.store",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreEmploymentCertificateRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`EmploymentCertificateDraftResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmploymentCertificateDraftResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/employment_certificates/{employmentCertificate}": {
            "get": {
                "operationId": "tenant.employees.employment_certificates.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "employmentCertificate",
                        "in": "path",
                        "required": true,
                        "description": "The employment certificate ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`EmploymentCertificateDraftResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmploymentCertificateDraftResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.employees.employment_certificates.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "employmentCertificate",
                        "in": "path",
                        "required": true,
                        "description": "The employment certificate ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateEmploymentCertificateRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EmploymentCertificateDraftResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmploymentCertificateDraftResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/employment_certificates/{employmentCertificate}/export": {
            "get": {
                "operationId": "tenant.employees.employment_certificates.export",
                "summary": "Frozen snapshot as JSON (contract object `Export`, not wrapped in `data`)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "employmentCertificate",
                        "in": "path",
                        "required": true,
                        "description": "The employment certificate ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "type": {
                                            "type": "string"
                                        },
                                        "version": {
                                            "type": "integer"
                                        },
                                        "schema_version": {
                                            "type": "string"
                                        },
                                        "issued_at": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "employee_id": {
                                            "type": "string"
                                        },
                                        "fields": {
                                            "type": "object",
                                            "additionalProperties": {
                                                "type": "object",
                                                "properties": {
                                                    "value": {},
                                                    "origin": {
                                                        "type": "string"
                                                    },
                                                    "source": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "value",
                                                    "origin",
                                                    "source"
                                                ]
                                            }
                                        },
                                        "messages": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "key": {
                                                        "type": "string"
                                                    },
                                                    "severity": {
                                                        "type": "string"
                                                    },
                                                    "message": {
                                                        "type": "string"
                                                    },
                                                    "link": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "key",
                                                    "severity",
                                                    "message",
                                                    "link"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "type",
                                        "version",
                                        "schema_version",
                                        "issued_at",
                                        "employee_id",
                                        "fields",
                                        "messages"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/employment_certificates/{employmentCertificate}/preview": {
            "get": {
                "operationId": "tenant.employees.employment_certificates.preview",
                "summary": "Draft PDF with watermark (nothing is filed)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "employmentCertificate",
                        "in": "path",
                        "required": true,
                        "description": "The employment certificate ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "headers": {
                            "Content-Disposition": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/employment_certificates/{employmentCertificate}/issue": {
            "post": {
                "operationId": "tenant.employees.employment_certificates.issue",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "employmentCertificate",
                        "in": "path",
                        "required": true,
                        "description": "The employment certificate ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`EmploymentCertificateDraftResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmploymentCertificateDraftResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/employment_certificates/{employmentCertificate}/revise": {
            "post": {
                "operationId": "tenant.employees.employment_certificates.revise",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "employmentCertificate",
                        "in": "path",
                        "required": true,
                        "description": "The employment certificate ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "`EmploymentCertificateDraftResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmploymentCertificateDraftResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/employment_certificates/{employmentCertificate}/cancel": {
            "post": {
                "operationId": "tenant.employees.employment_certificates.cancel",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "employmentCertificate",
                        "in": "path",
                        "required": true,
                        "description": "The employment certificate ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CancelEmploymentCertificateRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EmploymentCertificateResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EmploymentCertificateResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/personnel_questionnaires": {
            "get": {
                "operationId": "tenant.personnel_questionnaires.index",
                "summary": "Overview (B1): questionnaires of persons in the caller's scope; revoked ones only on request",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "status[]",
                        "in": "query",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/components/schemas/PersonnelQuestionnaireStatus"
                            }
                        }
                    },
                    {
                        "name": "group",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "review",
                                "with_employee",
                                "completed",
                                "revoked"
                            ]
                        }
                    },
                    {
                        "name": "employee_id",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "include_revoked",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PersonnelQuestionnaireResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PersonnelQuestionnaireResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.personnel_questionnaires.store",
                "summary": "Send a questionnaire to an existing person (\u201ePersonalfragebogen senden\u201c on the detail page)",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StorePersonnelQuestionnaireRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`PersonnelQuestionnaireDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonnelQuestionnaireDetailResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/personnel_questionnaires/schema": {
            "get": {
                "operationId": "tenant.personnel_questionnaires.schema",
                "summary": "Form schema for the review view (B2): sections, field types, options and label keys. Same\nexport as the wizard's `GET /questionnaire/schema`, here behind the HR permission",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "version": {
                                                    "type": "string"
                                                },
                                                "fields": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "additionalProperties": {}
                                                    }
                                                },
                                                "parts": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "additionalProperties": {}
                                                    }
                                                },
                                                "groups": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "additionalProperties": {}
                                                    }
                                                },
                                                "rules": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "additionalProperties": {}
                                                    }
                                                },
                                                "tables": {
                                                    "type": "object",
                                                    "additionalProperties": {}
                                                }
                                            },
                                            "required": [
                                                "version",
                                                "fields",
                                                "parts",
                                                "groups",
                                                "rules",
                                                "tables"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/personnel_questionnaires/settings": {
            "get": {
                "operationId": "tenant.personnel_questionnaires.settings",
                "summary": "Tenant settings of the module (task 1.5): link validity, reminders, cash payment, privacy\nnotice and construction industry (D16). Behind `personnel-questionnaire:manage`, so HR can\nmaintain them without the admin settings",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "`PersonnelQuestionnaireSettingsResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonnelQuestionnaireSettingsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.personnel_questionnaires.settings.update",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdatePersonnelQuestionnaireSettingsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PersonnelQuestionnaireSettingsResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonnelQuestionnaireSettingsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/personnel_questionnaires/{questionnaire}": {
            "get": {
                "operationId": "tenant.personnel_questionnaires.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "questionnaire",
                        "in": "path",
                        "required": true,
                        "description": "The questionnaire ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PersonnelQuestionnaireDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonnelQuestionnaireDetailResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "patch": {
                "operationId": "tenant.personnel_questionnaires.update",
                "summary": "Employer answers, HR confirmations and the work papers checklist of the review view",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "questionnaire",
                        "in": "path",
                        "required": true,
                        "description": "The questionnaire ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdatePersonnelQuestionnaireRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PersonnelQuestionnaireDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonnelQuestionnaireDetailResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/personnel_questionnaires/{questionnaire}/link": {
            "get": {
                "operationId": "tenant.personnel_questionnaires.link",
                "summary": "The link of the invitation dialog, also days later (D5b)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "questionnaire",
                        "in": "path",
                        "required": true,
                        "description": "The questionnaire ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PersonnelQuestionnaireLinkResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonnelQuestionnaireLinkResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/personnel_questionnaires/{questionnaire}/rotate_link": {
            "post": {
                "operationId": "tenant.personnel_questionnaires.rotate_link",
                "summary": "\u201eNeuen Link erzeugen\u201c: the old link stops working at once",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "questionnaire",
                        "in": "path",
                        "required": true,
                        "description": "The questionnaire ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PersonnelQuestionnaireLinkResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonnelQuestionnaireLinkResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/personnel_questionnaires/{questionnaire}/remind": {
            "post": {
                "operationId": "tenant.personnel_questionnaires.remind",
                "summary": "\u201eErinnern\u201c: same link by mail; `sent` = false when there is no address (show the link dialog)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "questionnaire",
                        "in": "path",
                        "required": true,
                        "description": "The questionnaire ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RemindPersonnelQuestionnaireRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PersonnelQuestionnaireLinkResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonnelQuestionnaireLinkResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/personnel_questionnaires/{questionnaire}/revoke": {
            "post": {
                "operationId": "tenant.personnel_questionnaires.revoke",
                "summary": "\u201eFragebogen abbrechen\u201c (D15)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "questionnaire",
                        "in": "path",
                        "required": true,
                        "description": "The questionnaire ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RevokePersonnelQuestionnaireRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PersonnelQuestionnaireResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonnelQuestionnaireResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/personnel_questionnaires/{questionnaire}/queries": {
            "post": {
                "operationId": "tenant.personnel_questionnaires.queries.store",
                "summary": "R\u00fcckfrage an die Person zu einzelnen Feldern",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "questionnaire",
                        "in": "path",
                        "required": true,
                        "description": "The questionnaire ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StorePersonnelQuestionnaireQueryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PersonnelQuestionnaireDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonnelQuestionnaireDetailResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/personnel_questionnaires/{questionnaire}/reviews": {
            "patch": {
                "operationId": "tenant.personnel_questionnaires.reviews",
                "summary": "Field status of the review view (gepr\u00fcft / ungepr\u00fcft / R\u00fcckfrage)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "questionnaire",
                        "in": "path",
                        "required": true,
                        "description": "The questionnaire ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdatePersonnelQuestionnaireReviewsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PersonnelQuestionnaireDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonnelQuestionnaireDetailResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/personnel_questionnaires/{questionnaire}/master_data_decisions": {
            "patch": {
                "operationId": "tenant.personnel_questionnaires.master_data_decisions",
                "summary": "Decisions for deviations from the existing master data (4.7)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "questionnaire",
                        "in": "path",
                        "required": true,
                        "description": "The questionnaire ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdatePersonnelQuestionnaireDecisionsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PersonnelQuestionnaireDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonnelQuestionnaireDetailResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/personnel_questionnaires/{questionnaire}/complete": {
            "post": {
                "operationId": "tenant.personnel_questionnaires.complete",
                "summary": "\u201ePr\u00fcfen und unterschreiben\u201c (D8): needs `personnel-questionnaire:manage` AND `payroll:manage`.\n409 when the questionnaire changed since it was loaded; repeating a completed call returns it",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "questionnaire",
                        "in": "path",
                        "required": true,
                        "description": "The questionnaire ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CompletePersonnelQuestionnaireRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PersonnelQuestionnaireDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonnelQuestionnaireDetailResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/personnel_questionnaires/{questionnaire}/pdf": {
            "get": {
                "operationId": "tenant.personnel_questionnaires.pdf",
                "summary": "The questionnaire PDF: the signed document after completion, otherwise a preview of the\ncurrent state. Restricted like the document itself (`payroll:manage`)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "questionnaire",
                        "in": "path",
                        "required": true,
                        "description": "The questionnaire ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Personalfragebogen als PDF",
                        "content": {
                            "application/pdf": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "headers": {
                            "Content-Disposition": {
                                "schema": {
                                    "type": "string"
                                }
                            },
                            "Cache-Control": {
                                "schema": {
                                    "type": "string",
                                    "const": "no-store, private"
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/personnel_questionnaires/{questionnaire}/documents/{document}": {
            "get": {
                "operationId": "tenant.personnel_questionnaires.documents.show",
                "summary": "Short-lived download URL of a proof. Only through its questionnaire, only checked files, only\nwith `payroll:manage` (restricted documents)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "questionnaire",
                        "in": "path",
                        "required": true,
                        "description": "The questionnaire ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "document",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "url": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "url"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "423": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Der Nachweis wird noch gepr\u00fcft."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/personnel_questionnaires/{questionnaire}/documents/{document}/transfer": {
            "post": {
                "operationId": "tenant.personnel_questionnaires.documents.transfer",
                "summary": "D15: take a proof over into the personnel file (e.g. before aborting)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "questionnaire",
                        "in": "path",
                        "required": true,
                        "description": "The questionnaire ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "document",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PersonnelQuestionnaireDetailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonnelQuestionnaireDetailResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/recruiting/postings/ai-draft": {
            "post": {
                "operationId": "tenant.recruiting.postings.ai_draft",
                "summary": "POST /rest/recruiting/postings/ai-draft \u2014 a draft of the posting text from key points. Nothing\nis saved; the editor takes the text over. 503 `ai_draft_unavailable` without Azure configuration,\n429 `ai_draft_limit_reached` at the daily limit, 502 `ai_draft_failed` when Azure fails",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/GenerateJobPostingAiDraftRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`JobPostingAiDraftResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/JobPostingAiDraftResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/eau/requests": {
            "get": {
                "operationId": "tenant.eau.requests.index",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee_id",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "employee",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "anyOf": [
                                {
                                    "$ref": "#/components/schemas/EauRequestStatus"
                                },
                                {
                                    "type": "null"
                                }
                            ]
                        }
                    },
                    {
                        "name": "leave_request_ids[]",
                        "in": "query",
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "date"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "date"
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "kasse",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 8
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `EauRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/EauRequestResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "employee_name",
                                                            "latest_response",
                                                            "responses"
                                                        ]
                                                    }
                                                ]
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        },
                                        "existing_requests": {
                                            "anyOf": [
                                                {
                                                    "type": "object"
                                                },
                                                {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                        "type": "object",
                                                        "properties": {
                                                            "request_id": {
                                                                "type": "string"
                                                            },
                                                            "leave_request_id": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "status": {
                                                                "type": "string"
                                                            },
                                                            "absence_start": {
                                                                "type": "string"
                                                            },
                                                            "created_at": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "sent_at": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            }
                                                        },
                                                        "required": [
                                                            "request_id",
                                                            "leave_request_id",
                                                            "status",
                                                            "absence_start",
                                                            "created_at",
                                                            "sent_at"
                                                        ]
                                                    }
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta",
                                        "existing_requests"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Forbidden."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/eau/requests/{eauRequest}": {
            "get": {
                "operationId": "tenant.eau.requests.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "eauRequest",
                        "in": "path",
                        "required": true,
                        "description": "The eau request ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`EauRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EauRequestResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee_name",
                                                        "confirmed_absence",
                                                        "latest_response",
                                                        "responses",
                                                        "events"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/requests/{eauRequest}/re-anfrage": {
            "post": {
                "operationId": "tenant.eau.requests.re_anfrage",
                "description": "Nie automatisch (OpenSpec `eau-anfrage-regeln-praezisierung`, Entscheidung 3): neue Anforderung\nmit neuer Datensatz-ID, verkn\u00fcpft \u00fcber die Vorgangskette, ohne Storno der bisherigen. Eine konkurrierende Anlage desselben Falls (parallele Anfrage, veraltetes Original) liefert\n409, eine Sperrfrist, die Wartezeit nach Annahme, ein abgeschlossener Vorgang oder Kz 1 ohne\nKassenwechsel 422 mit `resubmit_block_reason` (`sperrfrist`, `wartezeit`, `abschliessend`,\n`kassenwechsel_noetig`) und `resubmit_available_from`.",
                "summary": "\u201eErneut anfragen\u201c nach Ablauf der Wiederholsperre (Kat. 04.1/13)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "eauRequest",
                        "in": "path",
                        "required": true,
                        "description": "The eau request ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`EauRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EauRequestResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee_name",
                                                        "latest_response",
                                                        "responses"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Konkurrierende Anlage desselben Falls (andere offene Anfrage, veraltetes Original oder parallele Anlage). Fehler-Envelope nach ADR 0005; Zusatzdaten kanonisch in `errors[0]._meta`, Top-Level-Felder als Kompatibilit\u00e4tsschicht.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "request_id": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "timestamp": {
                                            "type": "string"
                                        },
                                        "message": {
                                            "type": "string"
                                        },
                                        "errors": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "title": {
                                                        "type": "string",
                                                        "const": "Conflict"
                                                    },
                                                    "detail": {
                                                        "type": "string"
                                                    },
                                                    "type": {
                                                        "type": "string"
                                                    },
                                                    "_meta": {
                                                        "type": "object",
                                                        "properties": {
                                                            "path": {
                                                                "type": "string"
                                                            },
                                                            "conflict": {
                                                                "type": "string",
                                                                "enum": [
                                                                    "offene_anforderung",
                                                                    "nicht_massgeblich",
                                                                    "parallele_anlage"
                                                                ]
                                                            },
                                                            "earliest": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "block_reason": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            }
                                                        },
                                                        "required": [
                                                            "path",
                                                            "conflict",
                                                            "earliest",
                                                            "block_reason"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "title",
                                                    "detail",
                                                    "type",
                                                    "_meta"
                                                ]
                                            }
                                        },
                                        "conflict": {
                                            "type": "string",
                                            "enum": [
                                                "offene_anforderung",
                                                "nicht_massgeblich",
                                                "parallele_anlage"
                                            ]
                                        },
                                        "earliest": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "block_reason": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "request_id",
                                        "timestamp",
                                        "message",
                                        "errors",
                                        "conflict",
                                        "earliest",
                                        "block_reason"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "\u201eErneut anfragen\u201c ist (noch) nicht zul\u00e4ssig. Fehler-Envelope nach ADR 0005; Zusatzdaten kanonisch in `errors[0]._meta`, Top-Level-Felder als Kompatibilit\u00e4tsschicht. Regel-Ablehnung: `resubmit_block_reason`, `resubmit_available_from`, dazu der bisherige Sperrgrund `block_reason` (zwischennachricht_4/7/9, ohne_rueckmeldung, abschluss, employment_ended) und `earliest`. Unzul\u00e4ssige Daten (Stammdatenbest\u00e4tigung, Kasse, Annahmestelle): `reasons` und `confirmed_until`.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "request_id": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "timestamp": {
                                            "type": "string"
                                        },
                                        "message": {
                                            "type": "string"
                                        },
                                        "errors": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "title": {
                                                        "type": "string"
                                                    },
                                                    "detail": {
                                                        "type": "string"
                                                    },
                                                    "type": {
                                                        "type": "string"
                                                    },
                                                    "_meta": {
                                                        "type": "object",
                                                        "properties": {
                                                            "path": {
                                                                "type": "string"
                                                            },
                                                            "earliest": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "block_reason": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "resubmit_block_reason": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ],
                                                                "enum": [
                                                                    "sperrfrist",
                                                                    "wartezeit",
                                                                    "abschliessend",
                                                                    "kassenwechsel_noetig",
                                                                    "annahme_offen",
                                                                    "stammdaten_bestaetigen",
                                                                    "beschaeftigung_beendet",
                                                                    null
                                                                ]
                                                            },
                                                            "resubmit_available_from": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "reasons": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "confirmed_until": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            }
                                                        },
                                                        "required": [
                                                            "path"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "title",
                                                    "detail",
                                                    "type",
                                                    "_meta"
                                                ]
                                            }
                                        },
                                        "earliest": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "block_reason": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "resubmit_block_reason": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "enum": [
                                                "sperrfrist",
                                                "wartezeit",
                                                "abschliessend",
                                                "kassenwechsel_noetig",
                                                "annahme_offen",
                                                "stammdaten_bestaetigen",
                                                "beschaeftigung_beendet",
                                                null
                                            ]
                                        },
                                        "resubmit_available_from": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "reasons": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "confirmed_until": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "request_id",
                                        "timestamp",
                                        "message",
                                        "errors"
                                    ]
                                }
                            }
                        }
                    },
                    "502": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/requests/{eauRequest}/storno": {
            "post": {
                "operationId": "tenant.eau.requests.storno",
                "summary": "Storniert eine gesendete Anforderung (Kat. 04.2/7)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "eauRequest",
                        "in": "path",
                        "required": true,
                        "description": "The eau request ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`EauRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EauRequestResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee_name",
                                                        "latest_response",
                                                        "responses"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/requests/{eauRequest}/send": {
            "post": {
                "operationId": "tenant.eau.requests.send",
                "summary": "\u201eJetzt anfragen\": manueller Versand eines Entwurfs ab seinem fr\u00fchesten Versandtag, etwa nach\neiner Sperrfrist wegen Zwischennachricht, die der Versand-Job nie automatisch aufhebt\n(Pflichtenheft-Kriterium 48). Die Sperrfrist wird unmittelbar vorher erneut gepr\u00fcft. Liegt der\nAU-Beginn nach dem Austritt, wird der Entwurf zur\u00fcckgezogen und mit 422 und `reason = employment_ended`\nabgelehnt",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "eauRequest",
                        "in": "path",
                        "required": true,
                        "description": "The eau request ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`EauRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EauRequestResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee_name",
                                                        "latest_response",
                                                        "responses"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/requests/{eauRequest}/resubmit": {
            "post": {
                "operationId": "tenant.eau.requests.resubmit",
                "summary": "\u201eNach Korrektur erneut senden\": neue Anforderung aus den aktuellen Stammdaten nach einem\nPr\u00fcffehler von Kurier oder Annahmestelle, ohne Wiederholsperre (`kurier-kernpruefung-versand` 6.5)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "eauRequest",
                        "in": "path",
                        "required": true,
                        "description": "The eau request ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`EauRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EauRequestResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee_name",
                                                        "latest_response",
                                                        "responses"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "502": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/test-submission": {
            "post": {
                "operationId": "tenant.eau.test_submission",
                "summary": "Bewusst fehlerhafte Testmeldung ohne Kernpr\u00fcfung (nur Admins, nur Kurier-Modus TEST/EVPT,\n`kurier-kernpruefung-versand` 6.6)",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreEauTestSubmissionRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`EauRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EauRequestResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee_name",
                                                        "latest_response",
                                                        "responses"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "502": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/kernpruefung/status": {
            "get": {
                "operationId": "tenant.eau.kernpruefung.status",
                "summary": "Betriebsmodus und Kernpr\u00fcfung des Kurier (`GET /v1/kernpruefung/status`). `test_submission_allowed`\nist nur f\u00fcr Admins und nur au\u00dferhalb des Modus ECHT wahr",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "reachable": {
                                                    "type": "boolean"
                                                },
                                                "available": {
                                                    "type": "boolean"
                                                },
                                                "version": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "mode": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "test_submission_allowed": {
                                                    "type": "boolean"
                                                }
                                            },
                                            "required": [
                                                "reachable",
                                                "available",
                                                "version",
                                                "mode",
                                                "test_submission_allowed"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/requests/{eauRequest}/live": {
            "post": {
                "operationId": "tenant.eau.requests.live",
                "description": "Fristen und Sperrfristen wie bei `POST /eau/requests/{id}/send` (422 mit `earliest` und\n`block_reason`, der Kurier wird dann nicht aufgerufen). Lehnt der Kurier den Versandtrigger ab\n(Mindestabstand, \u00e4lterer Kurier), ist die Anforderung trotzdem \u00fcbergeben: `kurier_state` nennt das,\nder automatische Nachlauf holt den Rest.",
                "summary": "\u201eJetzt anfragen\u201c mit sofortigem Versandlauf des Kurier und Status-Abgleich",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "eauRequest",
                        "in": "path",
                        "required": true,
                        "description": "The eau request ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`EauLiveTransmitResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EauLiveTransmitResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Nur im Testbetrieb verf\u00fcgbar (Kurier meldet ECHT oder ist nicht erreichbar). Fehler-Envelope nach ADR 0005.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "request_id": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "timestamp": {
                                            "type": "string"
                                        },
                                        "message": {
                                            "type": "string"
                                        },
                                        "errors": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "title": {
                                                        "type": "string",
                                                        "const": "Forbidden"
                                                    },
                                                    "detail": {
                                                        "type": "string"
                                                    },
                                                    "type": {
                                                        "type": "string"
                                                    },
                                                    "_meta": {
                                                        "type": "object",
                                                        "properties": {
                                                            "path": {
                                                                "type": "string"
                                                            },
                                                            "reason": {
                                                                "type": "string",
                                                                "const": "live_only_test_mode"
                                                            },
                                                            "mode": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            }
                                                        },
                                                        "required": [
                                                            "path",
                                                            "reason",
                                                            "mode"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "title",
                                                    "detail",
                                                    "type",
                                                    "_meta"
                                                ]
                                            }
                                        },
                                        "reason": {
                                            "type": "string",
                                            "const": "live_only_test_mode"
                                        },
                                        "mode": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "request_id",
                                        "timestamp",
                                        "message",
                                        "errors",
                                        "reason",
                                        "mode"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "502": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "429": {
                        "description": "Kontingent der Sofort-Aufrufe des Mandanten ausgesch\u00f6pft (6 je Minute). Fehler-Envelope nach ADR 0005, Wartezeit in `retry_after_seconds`.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "request_id": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "timestamp": {
                                            "type": "string"
                                        },
                                        "message": {
                                            "type": "string"
                                        },
                                        "errors": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "title": {
                                                        "type": "string",
                                                        "const": "Too Many Requests"
                                                    },
                                                    "detail": {
                                                        "type": "string"
                                                    },
                                                    "type": {
                                                        "type": "string"
                                                    },
                                                    "_meta": {
                                                        "type": "object",
                                                        "properties": {
                                                            "path": {
                                                                "type": "string"
                                                            },
                                                            "retry_after_seconds": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "required": [
                                                            "path",
                                                            "retry_after_seconds"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "title",
                                                    "detail",
                                                    "type",
                                                    "_meta"
                                                ]
                                            }
                                        },
                                        "retry_after_seconds": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "request_id",
                                        "timestamp",
                                        "message",
                                        "errors",
                                        "retry_after_seconds"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/eau/live/fetch": {
            "post": {
                "operationId": "tenant.eau.live.fetch",
                "summary": "R\u00fcckmeldungen jetzt abholen: Abholtrigger des Kurier, danach Status-Updates und R\u00fcckmeldungen\ndes Mandanten. Lehnt der Kurier wegen des KomServer-Mindestabstands ab, wird trotzdem eingelesen\nund mit 429 samt `retry_after_seconds`, `requests` und `responses` geantwortet",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "`EauLiveFetchResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EauLiveFetchResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Nur im Testbetrieb verf\u00fcgbar (Kurier meldet ECHT oder ist nicht erreichbar). Fehler-Envelope nach ADR 0005.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "request_id": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "timestamp": {
                                            "type": "string"
                                        },
                                        "message": {
                                            "type": "string"
                                        },
                                        "errors": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "title": {
                                                        "type": "string",
                                                        "const": "Forbidden"
                                                    },
                                                    "detail": {
                                                        "type": "string"
                                                    },
                                                    "type": {
                                                        "type": "string"
                                                    },
                                                    "_meta": {
                                                        "type": "object",
                                                        "properties": {
                                                            "path": {
                                                                "type": "string"
                                                            },
                                                            "reason": {
                                                                "type": "string",
                                                                "const": "live_only_test_mode"
                                                            },
                                                            "mode": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            }
                                                        },
                                                        "required": [
                                                            "path",
                                                            "reason",
                                                            "mode"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "title",
                                                    "detail",
                                                    "type",
                                                    "_meta"
                                                ]
                                            }
                                        },
                                        "reason": {
                                            "type": "string",
                                            "const": "live_only_test_mode"
                                        },
                                        "mode": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "request_id",
                                        "timestamp",
                                        "message",
                                        "errors",
                                        "reason",
                                        "mode"
                                    ]
                                }
                            }
                        }
                    },
                    "502": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Kontingent des Mandanten ausgesch\u00f6pft oder KomServer-Mindestabstand des Kurier (dann wurde trotzdem eingelesen, Z\u00e4hler in `requests` und `responses`). Fehler-Envelope nach ADR 0005, Wartezeit in `retry_after_seconds`.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "request_id": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "timestamp": {
                                            "type": "string"
                                        },
                                        "message": {
                                            "type": "string"
                                        },
                                        "errors": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "title": {
                                                        "type": "string",
                                                        "const": "Too Many Requests"
                                                    },
                                                    "detail": {
                                                        "type": "string"
                                                    },
                                                    "type": {
                                                        "type": "string"
                                                    },
                                                    "_meta": {
                                                        "type": "object",
                                                        "properties": {
                                                            "path": {
                                                                "type": "string"
                                                            },
                                                            "retry_after_seconds": {
                                                                "type": "integer"
                                                            },
                                                            "requests": {
                                                                "type": "integer"
                                                            },
                                                            "responses": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "required": [
                                                            "path",
                                                            "retry_after_seconds"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "title",
                                                    "detail",
                                                    "type",
                                                    "_meta"
                                                ]
                                            }
                                        },
                                        "retry_after_seconds": {
                                            "type": "integer"
                                        },
                                        "requests": {
                                            "type": "integer"
                                        },
                                        "responses": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "request_id",
                                        "timestamp",
                                        "message",
                                        "errors",
                                        "retry_after_seconds"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/responses/unassigned": {
            "get": {
                "operationId": "tenant.eau.responses.unassigned",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EauResponseResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EauResponseResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/responses/{eauResponse}/assign": {
            "post": {
                "operationId": "tenant.eau.responses.assign",
                "summary": "Ordnet einen Kl\u00e4rungsfall manuell einer Anforderung zu",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "eauResponse",
                        "in": "path",
                        "required": true,
                        "description": "The eau response ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AssignEauResponseRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EauRequestResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EauRequestResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "employee_name",
                                                        "confirmed_absence",
                                                        "latest_response",
                                                        "responses"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Forbidden."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validierungsfehler (`errors`, ohne `code`), R\u00fcckmeldung bereits zugeordnet (ohne `code`) oder simulierte R\u00fcckmeldung zu einer Anforderung ohne Testkasse (`code: simulierte_rueckmeldung_ohne_testkasse`). Fehler-Envelope nach ADR 0005.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        },
                                        "code": {
                                            "type": "string",
                                            "const": "simulierte_rueckmeldung_ohne_testkasse"
                                        },
                                        "errors": {
                                            "type": "object",
                                            "additionalProperties": {}
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/employees/{employee}/stammdaten": {
            "get": {
                "operationId": "tenant.eau.employees.stammdaten",
                "description": "`missing` listet die Pr\u00fcfschl\u00fcssel der Stammdatenpr\u00fcfung, darunter `vsnr_birthdate_unconfirmed`\n(VSNR-Datumsstellen weichen unbest\u00e4tigt vom Geburtsdatum ab).",
                "summary": "Stammdaten-Vollst\u00e4ndigkeit f\u00fcr die eAU eines Mitarbeitenden (Kat. 00/2)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "employee_id": {
                                            "type": "string"
                                        },
                                        "complete": {
                                            "type": "boolean"
                                        },
                                        "missing": {
                                            "anyOf": [
                                                {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string",
                                                        "enum": [
                                                            "first_name",
                                                            "last_name",
                                                            "entry_date",
                                                            "birth_date",
                                                            "payroll_data",
                                                            "insurance_type",
                                                            "insurance_type_not_statutory",
                                                            "health_insurance_company",
                                                            "evpt_nur_testkassen",
                                                            "insurance_number",
                                                            "vsnr_birthdate_unconfirmed"
                                                        ]
                                                    }
                                                },
                                                {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string",
                                                        "enum": [
                                                            "first_name",
                                                            "last_name",
                                                            "entry_date",
                                                            "birth_date",
                                                            "payroll_data"
                                                        ]
                                                    }
                                                }
                                            ]
                                        },
                                        "confirmed": {
                                            "type": "boolean"
                                        },
                                        "confirmed_at": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "confirmed_until": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "confirmation_state": {
                                            "$ref": "#/components/schemas/EauStammdatenBestaetigungsStatus"
                                        }
                                    },
                                    "required": [
                                        "employee_id",
                                        "complete",
                                        "missing",
                                        "confirmed",
                                        "confirmed_at",
                                        "confirmed_until",
                                        "confirmation_state"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/employees/{employee}/stammdaten/confirm": {
            "post": {
                "operationId": "tenant.eau.employees.stammdaten.confirm",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "employee_id": {
                                            "type": "string"
                                        },
                                        "confirmed": {
                                            "type": "boolean"
                                        },
                                        "stammdaten_confirmed_at": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "stammdaten_confirmed_by": {
                                            "type": "string"
                                        },
                                        "stammdaten_confirmed_until": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "stammdaten_confirmation_state": {
                                            "$ref": "#/components/schemas/EauStammdatenBestaetigungsStatus"
                                        },
                                        "stammdaten_confirmed_source": {
                                            "$ref": "#/components/schemas/EauStammdatenBestaetigungsHerkunft"
                                        }
                                    },
                                    "required": [
                                        "employee_id",
                                        "confirmed",
                                        "stammdaten_confirmed_at",
                                        "stammdaten_confirmed_by",
                                        "stammdaten_confirmed_until",
                                        "stammdaten_confirmation_state",
                                        "stammdaten_confirmed_source"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/stammdaten/import": {
            "post": {
                "operationId": "tenant.eau.stammdaten.import",
                "summary": "Upload: ITSG-Feldliste \u2192 gespeicherter Importlauf; bisheriges Format \u2192 Abgleich-Report",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/ImportStammdatenReportRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        },
                                        "meta": {
                                            "description": "Kontextabh\u00e4ngig, kann null sein."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "format": {
                                                    "type": "string",
                                                    "const": "legacy"
                                                },
                                                "rows": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "unmatched": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "skipped": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "format",
                                                "rows",
                                                "unmatched",
                                                "skipped"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/eau/employees/{employee}/stammdaten/apply": {
            "post": {
                "operationId": "tenant.eau.employees.stammdaten.apply",
                "summary": "\u00dcbernimmt ausgew\u00e4hlte Werte f\u00fcr einen Mitarbeitenden. Mit `import_id` + `line` aus der\nProtokollzeile (G\u00fcltigkeit = Abrechnungsmonat), sonst ab heute",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ApplyStammdatenImportRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "employee_id": {
                                            "type": "string"
                                        },
                                        "applied": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "stammdaten_confirmed_at": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "stammdaten_confirmed_until": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "stammdaten_confirmed_source": {
                                            "anyOf": [
                                                {
                                                    "$ref": "#/components/schemas/EauStammdatenBestaetigungsHerkunft"
                                                },
                                                {
                                                    "type": "null"
                                                }
                                            ]
                                        },
                                        "stammdaten_confirmation": {
                                            "type": [
                                                "object",
                                                "null"
                                            ],
                                            "description": "Ergebnis der Import-Best\u00e4tigung dieser Zeile (ITSG 7.2); null ohne Importlauf (bisheriges Format)",
                                            "properties": {
                                                "confirmed": {
                                                    "type": "boolean"
                                                },
                                                "confirmed_until": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Letzter Tag der Sechs-Monats-Frist (`Y-m-d`), nur bei `confirmed`"
                                                },
                                                "reason": {
                                                    "anyOf": [
                                                        {
                                                            "description": "Grund, warum diese \u00dcbernahme nicht (neu) best\u00e4tigt hat; null bei `confirmed`\n| |\n|---|\n| `field_error` <br/> Eine Zeile der Person hat Feld- oder Zeilenfehler. |\n| `vsnr_confirmation_pending` <br/> Eine VSNR mit Geburtsdatums-Hinweis wartet auf die ausdr\u00fcckliche Einzelbest\u00e4tigung. |\n| `proposals_open` <br/> Ge\u00e4nderte Vorschl\u00e4ge wurden (noch) nicht \u00fcbernommen. |\n| `kasse_manual` <br/> Die Krankenkasse kommt nicht aus dem Lohnprogramm und muss manuell erfasst werden. |\n| `differs_from_import` <br/> Die heute g\u00fcltigen Stammdaten weichen von der Importdatei ab (z. B. manueller Kassenwechsel nach dem Upload). |\n| `newer_import` <br/> Ein j\u00fcngerer Importlauf enth\u00e4lt die Person; ma\u00dfgeblich ist dessen Abgleich. |\n| `already_confirmed` <br/> Die bestehende Best\u00e4tigung ist j\u00fcnger als der Abgleich dieses Laufs und bleibt unver\u00e4ndert. |\n| `not_statutory` <br/> Zum \u00dcbernahmetag nicht gesetzlich krankenversichert: keine eAU, nichts zu best\u00e4tigen. |\n| `incomplete` <br/> F\u00fcr die eAU fehlen Angaben ({@see \\App\\Services\\Eau\\EauStammdatenCheck}). |",
                                                            "$ref": "#/components/schemas/EauImportBestaetigungsGrund"
                                                        },
                                                        {
                                                            "type": "null"
                                                        }
                                                    ]
                                                },
                                                "missing": {
                                                    "type": "array",
                                                    "description": "Fehlende Angaben laut eAU-Stammdatenpr\u00fcfung (nur bei `incomplete`)",
                                                    "items": {}
                                                },
                                                "text": {
                                                    "type": "string",
                                                    "description": "Deutscher Klartext f\u00fcr Protokoll und Bericht"
                                                }
                                            },
                                            "required": [
                                                "confirmed",
                                                "confirmed_until",
                                                "reason",
                                                "missing",
                                                "text"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "employee_id",
                                        "applied",
                                        "stammdaten_confirmed_at",
                                        "stammdaten_confirmed_until",
                                        "stammdaten_confirmed_source",
                                        "stammdaten_confirmation"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/stammdaten/imports": {
            "get": {
                "operationId": "tenant.eau.stammdaten.imports.index",
                "summary": "GET /eau/stammdaten/imports: die letzten Importl\u00e4ufe (ohne Zeilen)",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EauStammdatenImportResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EauStammdatenImportResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/stammdaten/imports/{import}": {
            "get": {
                "operationId": "tenant.eau.stammdaten.imports.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "import",
                        "in": "path",
                        "required": true,
                        "description": "The import ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        },
                                        "meta": {
                                            "description": "Kontextabh\u00e4ngig, kann null sein."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/stammdaten/imports/{import}/protocol": {
            "get": {
                "operationId": "tenant.eau.stammdaten.imports.protocol",
                "summary": "GET /eau/stammdaten/imports/{import}/protocol: Importprotokoll als CSV (Semikolon, UTF-8\nmit BOM), eine Zeile je Befund",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "import",
                        "in": "path",
                        "required": true,
                        "description": "The import ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "text/csv; charset=UTF-8": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "headers": {
                            "Transfer-Encoding": {
                                "required": true,
                                "schema": {
                                    "type": "string",
                                    "enum": [
                                        "chunked"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/stammdaten/imports/{import}/apply": {
            "post": {
                "operationId": "tenant.eau.stammdaten.imports.apply",
                "description": "Legt neue Personen nur an, wenn der User Mitarbeitende anlegen darf\n({@see StammdatenImportService::darfAnlegen()}).",
                "summary": "POST /eau/stammdaten/imports/{import}/apply: Sammel\u00fcbernahme",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "import",
                        "in": "path",
                        "required": true,
                        "description": "The import ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "applied_rows": {
                                                    "type": "integer"
                                                },
                                                "skipped_rows": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "integer"
                                                    }
                                                },
                                                "created_rows": {
                                                    "type": "integer"
                                                },
                                                "confirmed_persons": {
                                                    "type": "integer",
                                                    "description": "Personen, deren Stammdatenbest\u00e4tigung die \u00dcbernahme erneuert hat (ITSG 7.2)"
                                                }
                                            },
                                            "required": [
                                                "applied_rows",
                                                "skipped_rows",
                                                "created_rows",
                                                "confirmed_persons"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/stammdaten/import-status": {
            "get": {
                "operationId": "tenant.eau.stammdaten.import_status",
                "summary": "GET /eau/stammdaten/import-status: letzter Import, letzte Kassenpr\u00fcfung, f\u00e4llige Erinnerungen",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "last_payroll_import_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last_kassen_check_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "payroll_import_due": {
                                                    "type": "boolean"
                                                },
                                                "kassen_check_due": {
                                                    "type": "boolean"
                                                }
                                            },
                                            "required": [
                                                "last_payroll_import_at",
                                                "last_kassen_check_at",
                                                "payroll_import_due",
                                                "kassen_check_due"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/stammdaten/kassen-check": {
            "post": {
                "operationId": "tenant.eau.stammdaten.kassen_check",
                "summary": "POST /eau/stammdaten/kassen-check: Aktion \u201eKassen gepr\u00fcft\u201c",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "last_payroll_import_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last_kassen_check_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "payroll_import_due": {
                                                    "type": "boolean"
                                                },
                                                "kassen_check_due": {
                                                    "type": "boolean"
                                                }
                                            },
                                            "required": [
                                                "last_payroll_import_at",
                                                "last_kassen_check_at",
                                                "payroll_import_due",
                                                "kassen_check_due"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/eau/stammdaten_version": {
            "get": {
                "operationId": "tenant.eau.stammdaten_version",
                "summary": "GET /rest/eau/stammdaten_version",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "`GkvStammdatenStandResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/GkvStammdatenStandResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/bulk": {
            "patch": {
                "operationId": "tenant.employees.bulk.update",
                "description": "Only fields present in the request are applied; all selected employees\nreceive the same values (e.g. unit move, export flag, salary types).",
                "summary": "PATCH /rest/employees/bulk \u2014 Mass update a safe subset of employee fields",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/BulkUpdateEmployeesRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "updated": {
                                            "type": "integer"
                                        },
                                        "skipped": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "updated",
                                        "skipped"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "You do not have permission to bulk edit employees."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/assign-personnel-numbers": {
            "post": {
                "operationId": "tenant.employees.assign_personnel_numbers",
                "description": "Auto-assign the next free numeric personnel number to every\nemployee without one (needed for payroll exports).",
                "summary": "POST /rest/employees/assign-personnel-numbers",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "assigned": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "assigned"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "You do not have permission to assign personnel numbers."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/employment_periods": {
            "post": {
                "operationId": "tenant.employees.employment_periods.store",
                "summary": "Record a re-entry (new employment period)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreEmploymentPeriodRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`EmployeeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EmployeeResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "unit"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/employees/{employee}/employment_periods/{period}/exit": {
            "post": {
                "operationId": "tenant.employees.employment_periods.exit",
                "summary": "Record the exit on the latest employment period",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "period",
                        "in": "path",
                        "required": true,
                        "description": "The period ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/RecordEmploymentExitRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EmployeeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EmployeeResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "unit"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/employees/{employee}/enrollment_tokens": {
            "get": {
                "operationId": "tenant.employees.enrollment_tokens.index",
                "summary": "GET /rest/employees/{employee}/enrollment_tokens \u2014 open and redeemed\ntokens of the employee, newest first (audit view, no secrets)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EnrollmentTokenResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EnrollmentTokenResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.employees.enrollment_tokens.store",
                "description": "The plain token is returned exactly once, together with the ready-made\nQR payload; the database only ever sees its SHA-256 hash. Redeeming it is\na full session as the employee, so apart from a workspace admin nobody may\ncreate one for an account with permissions beyond their own (403); the\nemployee is notified when someone else created it.",
                "summary": "POST /rest/employees/{employee}/enrollment_tokens \u2014 create a token",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "employee_id": {
                                                    "type": "string"
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "expires_at": {
                                                    "type": "string"
                                                },
                                                "redeemed_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "redeemed_device": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string",
                                                    "enum": [
                                                        "redeemed",
                                                        "expired",
                                                        "open"
                                                    ]
                                                },
                                                "token": {
                                                    "type": "string"
                                                },
                                                "qr_payload": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "employee_id",
                                                "created_at",
                                                "expires_at",
                                                "redeemed_at",
                                                "redeemed_device",
                                                "status",
                                                "token",
                                                "qr_payload"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "You do not have permission to issue enrollment tokens."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/enrollment_tokens/{enrollmentToken}": {
            "delete": {
                "operationId": "tenant.employees.enrollment_tokens.destroy",
                "summary": "DELETE /rest/employees/{employee}/enrollment_tokens/{enrollmentToken} \u2014\nrevoke a token by deleting it; redeeming it afterwards fails",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "enrollmentToken",
                        "in": "path",
                        "required": true,
                        "description": "The enrollment token ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/skills": {
            "get": {
                "operationId": "tenant.employees.skills.index",
                "summary": "GET /rest/employees/{employee}/skills",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EmployeeSkillResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/EmployeeSkillResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "skill"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.employees.skills.store",
                "summary": "POST /rest/employees/{employee}/skills",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreEmployeeSkillRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`EmployeeSkillResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EmployeeSkillResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "skill"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employee_skills/{employeeSkill}": {
            "put": {
                "operationId": "tenant.employee_skills.update",
                "summary": "PUT /rest/employee_skills/{employeeSkill}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employeeSkill",
                        "in": "path",
                        "required": true,
                        "description": "The employee skill ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateEmployeeSkillRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EmployeeSkillResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EmployeeSkillResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "skill"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.employee_skills.destroy",
                "summary": "DELETE /rest/employee_skills/{employeeSkill} \u2014 no {employee} route\nparameter, so the unit scope is enforced explicitly here",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employeeSkill",
                        "in": "path",
                        "required": true,
                        "description": "The employee skill ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                ""
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/audit_trail": {
            "get": {
                "operationId": "tenant.employees.audit_trail",
                "description": "Returns paginated audit trail for all activity related to an employee.",
                "summary": "GET /rest/employees/{employee}/audit_trail",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "all",
                                "employee",
                                "compensation",
                                "working_time",
                                "leave",
                                "schedule"
                            ]
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "description": "Capped at 50 by the controller, see IndexAuditLogRequest.",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `AuditTrailResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/AuditTrailResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/mood/summary/{start}/{end}": {
            "get": {
                "operationId": "tenant.mood.summary",
                "summary": "Aggregated mood summary per day across all visible employees (manager view)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "date": {
                                                        "type": "string"
                                                    },
                                                    "average_rating": {
                                                        "type": "number"
                                                    },
                                                    "count": {
                                                        "type": "integer"
                                                    }
                                                },
                                                "required": [
                                                    "date",
                                                    "average_rating",
                                                    "count"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/moods/{start}/{end}": {
            "get": {
                "operationId": "tenant.employees.moods.index",
                "summary": "Get mood entries for a specific employee (manager view)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EmployeeMoodResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmployeeMoodResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/overtime_payouts": {
            "get": {
                "operationId": "tenant.employees.overtime_payouts.index",
                "summary": "GET /rest/employees/{employee}/overtime_payouts",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "employee_id": {
                                                        "type": "string"
                                                    },
                                                    "year_month": {
                                                        "type": "string"
                                                    },
                                                    "amount": {
                                                        "type": "string"
                                                    },
                                                    "hours": {
                                                        "type": "number"
                                                    },
                                                    "comment": {
                                                        "type": "string"
                                                    },
                                                    "created_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "employee_id",
                                                    "year_month",
                                                    "amount",
                                                    "hours",
                                                    "comment",
                                                    "created_at"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.employees.overtime_payouts.store",
                "summary": "POST /rest/employees/{employee}/overtime_payouts",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreOvertimePayoutRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "employee_id": {
                                                    "type": "string"
                                                },
                                                "year_month": {
                                                    "type": "string"
                                                },
                                                "amount": {
                                                    "type": "string"
                                                },
                                                "hours": {
                                                    "type": "number"
                                                },
                                                "comment": {
                                                    "type": "string"
                                                },
                                                "created_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "employee_id",
                                                "year_month",
                                                "amount",
                                                "hours",
                                                "comment",
                                                "created_at"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/overtime_payouts/{payout}": {
            "delete": {
                "operationId": "tenant.employees.overtime_payouts.destroy",
                "summary": "DELETE /rest/employees/{employee}/overtime_payouts/{payout}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "payout",
                        "in": "path",
                        "required": true,
                        "description": "The payout ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/work_activities": {
            "get": {
                "operationId": "tenant.work_activities.index",
                "summary": "GET /rest/work_activities \u2014 management list (manager/admin)",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `WorkActivityResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/WorkActivityResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "unit_ids"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.work_activities.store",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreWorkActivityRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`WorkActivityResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/WorkActivityResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "unit_ids"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/work_activities/{workActivity}": {
            "get": {
                "operationId": "tenant.work_activities.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "workActivity",
                        "in": "path",
                        "required": true,
                        "description": "The work activity ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`WorkActivityResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/WorkActivityResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "unit_ids"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.work_activities.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "workActivity",
                        "in": "path",
                        "required": true,
                        "description": "The work activity ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateWorkActivityRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`WorkActivityResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/WorkActivityResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "unit_ids"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.work_activities.destroy",
                "description": "Activities that already carry bookings are deactivated instead of\ndeleted so historic sessions and reports keep their activity.",
                "summary": "DELETE /rest/work_activities/{workActivity}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "workActivity",
                        "in": "path",
                        "required": true,
                        "description": "The work activity ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/payroll/settlements/{yearMonth}": {
            "get": {
                "operationId": "tenant.payroll.settlements.index",
                "summary": "GET /rest/payroll/settlements/{yearMonth}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "yearMonth",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "anyOf": [
                                        {
                                            "type": "object",
                                            "properties": {
                                                "enabled": {
                                                    "type": "boolean"
                                                },
                                                "data": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/HourlyWageSettlementResource"
                                                    }
                                                },
                                                "year_month": {
                                                    "type": "string"
                                                },
                                                "period": {
                                                    "type": "object",
                                                    "properties": {
                                                        "status": {
                                                            "type": "string",
                                                            "enum": [
                                                                "closed",
                                                                "open"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "status"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "enabled",
                                                "data",
                                                "year_month",
                                                "period"
                                            ]
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "enabled": {
                                                    "type": "boolean"
                                                },
                                                "data": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    },
                                                    "minItems": 0,
                                                    "maxItems": 0
                                                }
                                            },
                                            "required": [
                                                "enabled",
                                                "data"
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/payroll/settlements/{yearMonth}/csv": {
            "get": {
                "operationId": "tenant.payroll.settlements.csv",
                "summary": "GET /rest/payroll/settlements/{yearMonth}/csv",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "yearMonth",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Abrechnungen des Monats als CSV-Download",
                        "content": {
                            "text/csv; charset=UTF-8": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "headers": {
                            "Content-Disposition": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/compensations": {
            "get": {
                "operationId": "tenant.employees.compensations.index",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EmployeeCompensationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/EmployeeCompensationResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "compensation_type"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.employees.compensations.store",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreEmployeeCompensationRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`EmployeeCompensationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EmployeeCompensationResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "compensation_type"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/compensations/active": {
            "get": {
                "operationId": "tenant.employees.compensations.active",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EmployeeCompensationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EmployeeCompensationResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/compensations/{compensation}": {
            "put": {
                "operationId": "tenant.employees.compensations.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "compensation",
                        "in": "path",
                        "required": true,
                        "description": "The compensation ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateEmployeeCompensationRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EmployeeCompensationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/EmployeeCompensationResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "compensation_type"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.employees.compensations.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "compensation",
                        "in": "path",
                        "required": true,
                        "description": "The compensation ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/workspace": {
            "put": {
                "operationId": "tenant.workspace.update",
                "description": "The tenant is resolved from the request domain, so a workspace admin\ncan only ever modify their own tenant; there is no tenant identifier\nin the request to point at someone else's workspace.",
                "summary": "PUT /rest/workspace \u2014 Update the current tenant",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateWorkspaceRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "timezone": {
                                                    "type": "string"
                                                },
                                                "plan": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "name",
                                                "timezone",
                                                "plan"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/settings": {
            "get": {
                "operationId": "tenant.settings.index",
                "description": "All values are strings; the keys are the ones listed in\n{@see SettingController::KNOWN_SETTINGS} plus `pause_staged` and\n`export_format` from the tenant record.",
                "summary": "GET /rest/settings \u2014 Read all tenant settings",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "additionalProperties": {
                                                "type": "string"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.settings.update",
                "description": "Returns the full settings map after the update (same shape as GET).",
                "summary": "PUT /rest/settings \u2014 Bulk-update tenant settings",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateSettingsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "additionalProperties": {
                                                "type": "string"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/import/dls/preview": {
            "post": {
                "operationId": "tenant.import.dls.preview",
                "summary": "Parse the uploaded export and return what an import would do (no writes)",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/DlsImportRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "employer": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "additionalProperties": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "employees": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "personnel_number": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "surname": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "full_name": {
                                                                "type": "string"
                                                            },
                                                            "position": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "employed_start": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "employed_end": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "has_payroll_data": {
                                                                "type": "boolean"
                                                            },
                                                            "status": {
                                                                "type": "string"
                                                            },
                                                            "warnings": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            }
                                                        },
                                                        "required": [
                                                            "personnel_number",
                                                            "name",
                                                            "surname",
                                                            "full_name",
                                                            "position",
                                                            "employed_start",
                                                            "employed_end",
                                                            "has_payroll_data",
                                                            "status",
                                                            "warnings"
                                                        ]
                                                    }
                                                },
                                                "stats": {
                                                    "type": "object",
                                                    "properties": {
                                                        "total": {
                                                            "type": "integer"
                                                        },
                                                        "new": {
                                                            "type": "integer"
                                                        },
                                                        "existing": {
                                                            "type": "integer"
                                                        },
                                                        "departed": {
                                                            "type": "integer"
                                                        },
                                                        "conflicts": {
                                                            "type": "integer"
                                                        }
                                                    },
                                                    "required": [
                                                        "total",
                                                        "new",
                                                        "existing",
                                                        "departed",
                                                        "conflicts"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "employer",
                                                "employees",
                                                "stats"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/import/dls/commit": {
            "post": {
                "operationId": "tenant.import.dls.commit",
                "summary": "Import the export: create new employees and, when `update` is set, refresh\nexisting ones matched by personnel number",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/DlsImportRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "imported": {
                                                    "type": "integer"
                                                },
                                                "updated": {
                                                    "type": "integer"
                                                },
                                                "skipped": {
                                                    "type": "integer"
                                                },
                                                "departed": {
                                                    "type": "integer"
                                                },
                                                "conflicts": {
                                                    "type": "integer"
                                                },
                                                "employees": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "personnel_number": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "surname": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "full_name": {
                                                                "type": "string"
                                                            },
                                                            "position": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "employed_start": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "employed_end": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "has_payroll_data": {
                                                                "type": "boolean"
                                                            },
                                                            "status": {
                                                                "type": "string"
                                                            },
                                                            "warnings": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string"
                                                                }
                                                            }
                                                        },
                                                        "required": [
                                                            "personnel_number",
                                                            "name",
                                                            "surname",
                                                            "full_name",
                                                            "position",
                                                            "employed_start",
                                                            "employed_end",
                                                            "has_payroll_data",
                                                            "status",
                                                            "warnings"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "imported",
                                                "updated",
                                                "skipped",
                                                "departed",
                                                "conflicts",
                                                "employees"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/settings/document-folder-template": {
            "get": {
                "operationId": "tenant.document_template.show",
                "summary": "GET /rest/settings/document-folder-template \u2014 default folder template",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "key": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "visible_to_employee": {
                                                        "type": "boolean"
                                                    }
                                                },
                                                "required": [
                                                    "key",
                                                    "name",
                                                    "visible_to_employee"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.document_template.update",
                "summary": "PUT /rest/settings/document-folder-template \u2014 replace the folder template",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateDocumentFolderTemplateRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "key": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "visible_to_employee": {
                                                        "type": "boolean"
                                                    }
                                                },
                                                "required": [
                                                    "key",
                                                    "name",
                                                    "visible_to_employee"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/credentials/preview": {
            "post": {
                "operationId": "tenant.credentials.preview",
                "summary": "Compute the planned logins without writing anything",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PreviewCredentialsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "employee_id": {
                                                        "type": "string"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "current_code": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "login": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "action": {
                                                        "type": "string"
                                                    },
                                                    "channel": {
                                                        "type": "string"
                                                    },
                                                    "issue": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "employee_id",
                                                    "name",
                                                    "current_code",
                                                    "login",
                                                    "action",
                                                    "channel",
                                                    "issue"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/credentials": {
            "post": {
                "operationId": "tenant.credentials.generate",
                "summary": "Apply: set logins/passwords, e-mail those with an address, and return the\nplaintext credentials of the rest for download",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/GenerateCredentialsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "generated": {
                                                    "type": "integer"
                                                },
                                                "emailed": {
                                                    "type": "integer"
                                                },
                                                "skipped": {
                                                    "type": "integer"
                                                },
                                                "credentials": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    },
                                                    "minItems": 0,
                                                    "maxItems": 0
                                                }
                                            },
                                            "required": [
                                                "generated",
                                                "emailed",
                                                "skipped",
                                                "credentials"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/orders/chips": {
            "post": {
                "operationId": "tenant.orders.chips",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/OrderChipsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Order submitted"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/roles": {
            "get": {
                "operationId": "tenant.roles.index",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `RoleResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/RoleResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "permissions"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.roles.store",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreRoleRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`RoleResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/RoleResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "permissions"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/roles/{role}": {
            "put": {
                "operationId": "tenant.roles.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "role",
                        "in": "path",
                        "required": true,
                        "description": "The role ID",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateRoleRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`RoleResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/RoleResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "permissions"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Workspace Admin permissions cannot be modified."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.roles.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "role",
                        "in": "path",
                        "required": true,
                        "description": "The role ID",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "System roles cannot be deleted."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/locations": {
            "get": {
                "operationId": "tenant.locations.index",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `LocationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/LocationResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "holidays"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.locations.store",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreLocationRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`LocationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/LocationResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            }
        },
        "/locations/{location}": {
            "get": {
                "operationId": "tenant.locations.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "location",
                        "in": "path",
                        "required": true,
                        "description": "The location ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`LocationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/LocationResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "holidays"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.locations.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "location",
                        "in": "path",
                        "required": true,
                        "description": "The location ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateLocationRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`LocationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/LocationResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "holidays"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "403": {
                        "$ref": "#/components/responses/AuthorizationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.locations.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "location",
                        "in": "path",
                        "required": true,
                        "description": "The location ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/locations/{location}/employees": {
            "get": {
                "operationId": "tenant.locations.employees.index",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "location",
                        "in": "path",
                        "required": true,
                        "description": "The location ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EmployeeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "allOf": [
                                                    {
                                                        "$ref": "#/components/schemas/EmployeeResource"
                                                    },
                                                    {
                                                        "type": "object",
                                                        "required": [
                                                            "unit",
                                                            "department",
                                                            "cost_center"
                                                        ]
                                                    }
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.locations.employees.assign",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "location",
                        "in": "path",
                        "required": true,
                        "description": "The location ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AssignLocationEmployeesRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Employees assigned."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/locations/{location}/employees/{employee}": {
            "delete": {
                "operationId": "tenant.locations.employees.unassign",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "location",
                        "in": "path",
                        "required": true,
                        "description": "The location ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/locations/{location}/holidays": {
            "post": {
                "operationId": "tenant.locations.holidays.assign",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "location",
                        "in": "path",
                        "required": true,
                        "description": "The location ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AssignLocationHolidaysRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`LocationResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/LocationResource"
                                                },
                                                {
                                                    "type": "object",
                                                    "required": [
                                                        "holidays"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/locations/{location}/holidays/{holiday}": {
            "delete": {
                "operationId": "tenant.locations.holidays.unassign",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "location",
                        "in": "path",
                        "required": true,
                        "description": "The location ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "holiday",
                        "in": "path",
                        "required": true,
                        "description": "The holiday ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/absence_types/{absenceType}": {
            "put": {
                "operationId": "tenant.absence_types.update",
                "summary": "PUT /rest/absence_types/{absenceType} \u2014 Update an absence type",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "absenceType",
                        "in": "path",
                        "required": true,
                        "description": "The absence type ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateAbsenceTypeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`AbsenceTypeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/AbsenceTypeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.absence_types.destroy",
                "summary": "DELETE /rest/absence_types/{absenceType} \u2014 Delete a custom absence type",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "absenceType",
                        "in": "path",
                        "required": true,
                        "description": "The absence type ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "anyOf": [
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "const": "Abwesenheitsart gel\u00f6scht."
                                                }
                                            },
                                            "required": [
                                                "message"
                                            ]
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "const": "Abwesenheitsart deaktiviert, da noch Abwesenheitsantr\u00e4ge existieren."
                                                }
                                            },
                                            "required": [
                                                "message"
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Systemseitige Abwesenheitsarten k\u00f6nnen nicht gel\u00f6scht werden."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/short_work": {
            "get": {
                "operationId": "tenant.short_work.index",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "employee_id",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ShortWorkResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/ShortWorkResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.short_work.store",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreShortWorkRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`ShortWorkResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ShortWorkResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/short_work/{shortWork}": {
            "put": {
                "operationId": "tenant.short_work.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "shortWork",
                        "in": "path",
                        "required": true,
                        "description": "The short work ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreShortWorkRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ShortWorkResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ShortWorkResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.short_work.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "shortWork",
                        "in": "path",
                        "required": true,
                        "description": "The short work ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/payroll/company": {
            "get": {
                "operationId": "tenant.payroll.company.index",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "`PayrollCompanySettingsResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PayrollCompanySettingsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.payroll.company.update",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdatePayrollCompanySettingsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PayrollCompanySettingsResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PayrollCompanySettingsResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/payroll/establishments/{establishment}": {
            "put": {
                "operationId": "tenant.payroll.establishments.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "establishment",
                        "in": "path",
                        "required": true,
                        "description": "The establishment ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdatePayrollEstablishmentRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`PayrollEstablishmentResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PayrollEstablishmentResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.payroll.establishments.destroy",
                "summary": "L\u00f6schschutz: mit Zuordnungen nur archivieren (200 + archivierte Ressource), sonst endg\u00fcltig\nl\u00f6schen (204)",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "establishment",
                        "in": "path",
                        "required": true,
                        "description": "The establishment ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/payroll/compensation-types": {
            "get": {
                "operationId": "tenant.payroll.compensation_types.index",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `CompensationTypeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/CompensationTypeResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.payroll.compensation_types.store",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreCompensationTypeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`CompensationTypeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CompensationTypeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/payroll/compensation-types/{compensationType}": {
            "put": {
                "operationId": "tenant.payroll.compensation_types.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "compensationType",
                        "in": "path",
                        "required": true,
                        "description": "The compensation type ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreCompensationTypeRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`CompensationTypeResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CompensationTypeResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.payroll.compensation_types.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "compensationType",
                        "in": "path",
                        "required": true,
                        "description": "The compensation type ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "422": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "System compensation types cannot be deleted."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/payroll/periods/{year}": {
            "get": {
                "operationId": "tenant.payroll.periods.index",
                "summary": "GET /rest/payroll/periods/{year}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `PayrollPeriodResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PayrollPeriodResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/payroll/periods/{yearMonth}/warnings": {
            "get": {
                "operationId": "tenant.payroll.periods.warnings",
                "summary": "GET /rest/payroll/periods/{yearMonth}/warnings \u2014 pre-close check",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "yearMonth",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "warnings": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        }
                                    },
                                    "required": [
                                        "warnings"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/payroll/periods/{yearMonth}/readiness": {
            "get": {
                "operationId": "tenant.payroll.periods.readiness",
                "summary": "GET /rest/payroll/periods/{yearMonth}/readiness \u2014 per-employee close readiness",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "yearMonth",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PayrollReadinessResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PayrollReadinessResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/payroll/periods/{yearMonth}/close": {
            "post": {
                "operationId": "tenant.payroll.periods.close",
                "summary": "POST /rest/payroll/periods/{yearMonth}/close",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "yearMonth",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ClosePayrollPeriodRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PayrollPeriodResource"
                                        },
                                        "warnings": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "warnings"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/payroll/periods/{yearMonth}/reopen": {
            "post": {
                "operationId": "tenant.payroll.periods.reopen",
                "summary": "POST /rest/payroll/periods/{yearMonth}/reopen",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "yearMonth",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`PayrollPeriodResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PayrollPeriodResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/datev/connect": {
            "get": {
                "operationId": "tenant.datev.connect",
                "description": "Returns the DATEV OAuth2 authorization URL.\nThe frontend redirects the user to this URL.\n\nThe connection data (Beraternummer, Mandantennummer, etc.) is stored in\ncache until the callback processes it. The callback happens on the\ncentral callback domain and redirects back to the tenant frontend.",
                "summary": "GET /rest/datev/connect",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "berater_nummer",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "maxLength": 20
                        }
                    },
                    {
                        "name": "mandanten_nummer",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "maxLength": 20
                        }
                    },
                    {
                        "name": "target_system",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "lug",
                                "lodas"
                            ]
                        }
                    },
                    {
                        "name": "notification_email",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "email",
                            "maxLength": 255
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "url": {
                                            "type": "string"
                                        },
                                        "redirect_uri": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "url",
                                        "redirect_uri"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/datev/disconnect": {
            "post": {
                "operationId": "tenant.datev.disconnect",
                "summary": "POST /rest/datev/disconnect",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/datev/status": {
            "get": {
                "operationId": "tenant.datev.status",
                "summary": "GET /rest/datev/status",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "anyOf": [
                                        {
                                            "type": "object",
                                            "properties": {
                                                "connected": {
                                                    "type": "boolean"
                                                },
                                                "connection": {
                                                    "$ref": "#/components/schemas/DatevConnectionResource"
                                                },
                                                "redirect_uri": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "connected",
                                                "connection",
                                                "redirect_uri"
                                            ]
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "connected": {
                                                    "type": "boolean"
                                                },
                                                "connection": {
                                                    "description": "Kontextabh\u00e4ngig, kann null sein."
                                                },
                                                "redirect_uri": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "connected",
                                                "connection",
                                                "redirect_uri"
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/datev/verify": {
            "post": {
                "operationId": "tenant.datev.verify",
                "description": "Re-verify the existing connection.",
                "summary": "POST /rest/datev/verify",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "verified": {
                                            "type": "boolean"
                                        },
                                        "connection": {
                                            "$ref": "#/components/schemas/DatevConnectionResource"
                                        }
                                    },
                                    "required": [
                                        "verified",
                                        "connection"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/datev/lohnart-mappings": {
            "get": {
                "operationId": "tenant.datev.lohnart_mappings.index",
                "summary": "GET /rest/datev/lohnart-mappings?provider=datev|agenda",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `DatevLohnartMappingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/DatevLohnartMappingResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.datev.lohnart_mappings.update",
                "description": "Bulk upsert: syncs the full set of mappings for one provider.",
                "summary": "PUT /rest/datev/lohnart-mappings?provider=datev|agenda",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateDatevLohnartMappingsRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Array of `DatevLohnartMappingResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/DatevLohnartMappingResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/datev/export/preview/{year}/{month}": {
            "get": {
                "operationId": "tenant.datev.export.preview",
                "description": "Preview what will be exported without actually uploading.",
                "summary": "GET /rest/datev/export/preview/{year}/{month}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "month",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "entries": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "employee_name": {
                                                        "type": "string"
                                                    },
                                                    "personnel_no": {
                                                        "type": "string"
                                                    },
                                                    "lines": {
                                                        "type": "array",
                                                        "items": {
                                                            "anyOf": [
                                                                {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "lohnart": {
                                                                            "anyOf": [
                                                                                {
                                                                                    "type": "string"
                                                                                },
                                                                                {
                                                                                    "type": "string",
                                                                                    "enum": [
                                                                                        "???"
                                                                                    ]
                                                                                }
                                                                            ]
                                                                        },
                                                                        "label": {
                                                                            "type": "string"
                                                                        },
                                                                        "value": {
                                                                            "type": "string"
                                                                        },
                                                                        "unit": {
                                                                            "type": "string",
                                                                            "const": "Std"
                                                                        }
                                                                    },
                                                                    "required": [
                                                                        "lohnart",
                                                                        "label",
                                                                        "value",
                                                                        "unit"
                                                                    ]
                                                                },
                                                                {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "lohnart": {
                                                                            "anyOf": [
                                                                                {
                                                                                    "type": "string"
                                                                                },
                                                                                {
                                                                                    "type": "string",
                                                                                    "enum": [
                                                                                        "???"
                                                                                    ]
                                                                                }
                                                                            ]
                                                                        },
                                                                        "label": {
                                                                            "type": "string"
                                                                        },
                                                                        "value": {
                                                                            "type": "string"
                                                                        },
                                                                        "unit": {
                                                                            "type": "string",
                                                                            "enum": [
                                                                                "Std",
                                                                                "Tage"
                                                                            ]
                                                                        }
                                                                    },
                                                                    "required": [
                                                                        "lohnart",
                                                                        "label",
                                                                        "value",
                                                                        "unit"
                                                                    ]
                                                                },
                                                                {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "lohnart": {
                                                                            "anyOf": [
                                                                                {
                                                                                    "type": "string"
                                                                                },
                                                                                {
                                                                                    "type": "string",
                                                                                    "enum": [
                                                                                        "???"
                                                                                    ]
                                                                                }
                                                                            ]
                                                                        },
                                                                        "label": {
                                                                            "type": "string"
                                                                        },
                                                                        "value": {
                                                                            "type": "number"
                                                                        },
                                                                        "unit": {
                                                                            "type": "string",
                                                                            "const": "Std"
                                                                        }
                                                                    },
                                                                    "required": [
                                                                        "lohnart",
                                                                        "label",
                                                                        "value",
                                                                        "unit"
                                                                    ]
                                                                }
                                                            ]
                                                        }
                                                    },
                                                    "hourly_settlement_amount_cents": {
                                                        "type": [
                                                            "integer",
                                                            "null"
                                                        ],
                                                        "description": "Base wage control amount (integer cents): the value itself\nis NOT exported \u2014 DATEV L&G calculates from its own master\ndata rate; this is the reviewer's cross-check (design D6)."
                                                    }
                                                },
                                                "required": [
                                                    "employee_name",
                                                    "personnel_no",
                                                    "lines",
                                                    "hourly_settlement_amount_cents"
                                                ]
                                            }
                                        },
                                        "warnings": {
                                            "type": "array",
                                            "items": {}
                                        },
                                        "surcharge_source": {
                                            "type": "string",
                                            "enum": [
                                                "rules",
                                                "flags"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "entries",
                                        "warnings",
                                        "surcharge_source"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/datev/export/download/{year}/{month}": {
            "get": {
                "operationId": "tenant.datev.export.download",
                "description": "Generate the BWD file and return it as a download (no DATEV upload).\nWorks without a verified DATEV connection.",
                "summary": "GET /rest/datev/export/download/{year}/{month}?granularity=month|calendar",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "month",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "DATEV-BWD-Datei als Text-Download",
                        "content": {
                            "text/plain; charset=UTF-8": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "headers": {
                            "Content-Disposition": {
                                "schema": {
                                    "type": "string"
                                }
                            },
                            "X-Export-Warnings": {
                                "schema": {
                                    "type": [
                                        "string",
                                        "object"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/datev/export/stammdaten/download": {
            "get": {
                "operationId": "tenant.datev.export.stammdaten.download",
                "description": "Generate the PSD master data file and return it as a download.",
                "summary": "GET /rest/datev/export/stammdaten/download",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "DATEV-PSD-Stammdatendatei als Text-Download",
                        "content": {
                            "text/plain; charset=UTF-8": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "headers": {
                            "Content-Disposition": {
                                "schema": {
                                    "type": "string",
                                    "const": "attachment; filename=\"datev_lug_stammdaten.txt\""
                                }
                            },
                            "X-Export-Warnings": {
                                "schema": {
                                    "type": [
                                        "string",
                                        "object"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/datev/export/stammdaten": {
            "post": {
                "operationId": "tenant.datev.export.stammdaten",
                "description": "Generate PSD master data file and upload to DATEV.",
                "summary": "POST /rest/datev/export/stammdaten",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "`DatevExportLogResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/DatevExportLogResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/datev/export/format-description": {
            "get": {
                "operationId": "tenant.datev.export.format_description",
                "description": "Download the record format description for the tax advisor's\none-time ASCII import assistant setup in DATEV Lohn und Gehalt.",
                "summary": "GET /rest/datev/export/format-description",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Satzbeschreibung f\u00fcr den ASCII-Importassistenten",
                        "content": {
                            "text/plain; charset=UTF-8": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "headers": {
                            "Content-Disposition": {
                                "schema": {
                                    "type": "string",
                                    "const": "attachment; filename=\"datev_lug_formatbeschreibung.txt\""
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/datev/export/{year}/{month}": {
            "post": {
                "operationId": "tenant.datev.export",
                "description": "Generate BWD file and upload to DATEV.",
                "summary": "POST /rest/datev/export/{year}/{month}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "month",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`DatevExportLogResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/DatevExportLogResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/datev/export/logs": {
            "get": {
                "operationId": "tenant.datev.export.logs",
                "summary": "GET /rest/datev/export/logs",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `DatevExportLogResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/DatevExportLogResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/datev/exchange/employees/{year}/{month}": {
            "post": {
                "operationId": "tenant.datev.exchange.employees",
                "description": "Push employee master data via Lohnaustauschdatenservice.",
                "summary": "POST /rest/datev/exchange/employees/{year}/{month}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "month",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "pushed": {
                                            "type": "integer"
                                        },
                                        "warnings": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "responses": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "personnel_no": {
                                                        "type": "string"
                                                    },
                                                    "status": {
                                                        "type": "integer"
                                                    },
                                                    "job_id": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "personnel_no",
                                                    "status",
                                                    "job_id"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "pushed",
                                        "warnings",
                                        "responses"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/datev/exchange/absences/{year}/{month}": {
            "post": {
                "operationId": "tenant.datev.exchange.absences",
                "description": "Push approved absences of the month.",
                "summary": "POST /rest/datev/exchange/absences/{year}/{month}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "month",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "pushed": {
                                            "type": "integer"
                                        },
                                        "warnings": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "pushed",
                                        "warnings"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/datev/exchange/month-records/{year}/{month}": {
            "post": {
                "operationId": "tenant.datev.exchange.month_records",
                "description": "Push aggregated month records (hours per Lohnart).",
                "summary": "POST /rest/datev/exchange/month-records/{year}/{month}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "month",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "pushed": {
                                            "type": "integer"
                                        },
                                        "warnings": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "pushed",
                                        "warnings"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/datev/exchange/jobs/{jobId}/errors": {
            "get": {
                "operationId": "tenant.datev.exchange.job_errors",
                "summary": "GET /rest/datev/exchange/jobs/{jobId}/errors",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "jobId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errors": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "errors"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/datev/export/status/{exportLog}": {
            "get": {
                "operationId": "tenant.datev.export.status",
                "description": "Poll DATEV for the current status of an upload.",
                "summary": "GET /rest/datev/export/status/{exportLog}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "exportLog",
                        "in": "path",
                        "required": true,
                        "description": "The export log ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`DatevExportLogResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/DatevExportLogResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/webhooks": {
            "get": {
                "operationId": "tenant.webhooks.index",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `WebhookResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/WebhookResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.webhooks.store",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreWebhookRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`WebhookCreatedResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WebhookCreatedResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/webhooks/{webhook}": {
            "get": {
                "operationId": "tenant.webhooks.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "webhook",
                        "in": "path",
                        "required": true,
                        "description": "The webhook ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`WebhookResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WebhookResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.webhooks.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "webhook",
                        "in": "path",
                        "required": true,
                        "description": "The webhook ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateWebhookRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`WebhookResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WebhookResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.webhooks.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "webhook",
                        "in": "path",
                        "required": true,
                        "description": "The webhook ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/webhooks/{webhook}/ping": {
            "post": {
                "operationId": "tenant.webhooks.ping",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "webhook",
                        "in": "path",
                        "required": true,
                        "description": "The webhook ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "Ping dispatched"
                                        },
                                        "delivery_id": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message",
                                        "delivery_id"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/webhooks/{webhook}/deliveries": {
            "get": {
                "operationId": "tenant.webhooks.deliveries",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "webhook",
                        "in": "path",
                        "required": true,
                        "description": "The webhook ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `WebhookDeliveryResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/WebhookDeliveryResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/nfc_tags": {
            "get": {
                "operationId": "tenant.nfc_tags.index",
                "tags": [
                    "Sonstiges"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `NfcTagResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/NfcTagResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "post": {
                "operationId": "tenant.nfc_tags.store",
                "tags": [
                    "Sonstiges"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/StoreNfcTagRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`NfcTagResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/NfcTagResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/nfc_tags/{nfcTag}": {
            "get": {
                "operationId": "tenant.nfc_tags.show",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "nfcTag",
                        "in": "path",
                        "required": true,
                        "description": "The nfc tag ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`NfcTagResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/NfcTagResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.nfc_tags.update",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "nfcTag",
                        "in": "path",
                        "required": true,
                        "description": "The nfc tag ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateNfcTagRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`NfcTagResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/NfcTagResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "tenant.nfc_tags.destroy",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "nfcTag",
                        "in": "path",
                        "required": true,
                        "description": "The nfc tag ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/audit/requests": {
            "get": {
                "operationId": "tenant.audit.requests.index",
                "description": "List audit log entries for the current tenant with filtering and pagination.",
                "summary": "GET /rest/audit/requests",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "Deliberately no max: an oversized limit is capped by the\ncontroller instead of rejected, which keeps existing clients\nworking. The rule only guarantees the type.",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "offset",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "method",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "GET",
                                "POST",
                                "PUT",
                                "PATCH",
                                "DELETE",
                                "HEAD",
                                "OPTIONS",
                                "get",
                                "post",
                                "put",
                                "patch",
                                "delete",
                                "head",
                                "options",
                                null
                            ]
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 100,
                            "maximum": 599
                        }
                    },
                    {
                        "name": "path",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 255
                        }
                    },
                    {
                        "name": "client_ip",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "user_id",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "request_id",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 64
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "date-time"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "correlation_id": {
                                                        "type": "string"
                                                    },
                                                    "user_id": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "client_ip": {
                                                        "type": "string"
                                                    },
                                                    "method": {
                                                        "type": "string"
                                                    },
                                                    "uri": {
                                                        "type": "string"
                                                    },
                                                    "status_code": {
                                                        "type": "integer"
                                                    },
                                                    "duration_ms": {
                                                        "type": "number"
                                                    },
                                                    "timestamp": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "correlation_id",
                                                    "user_id",
                                                    "client_ip",
                                                    "method",
                                                    "uri",
                                                    "status_code",
                                                    "duration_ms",
                                                    "timestamp"
                                                ]
                                            }
                                        },
                                        "total": {
                                            "type": "integer"
                                        },
                                        "limit": {
                                            "type": "integer"
                                        },
                                        "offset": {
                                            "type": "integer"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "total",
                                        "limit",
                                        "offset"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/audit/requests/{correlationId}": {
            "get": {
                "operationId": "tenant.audit.requests.show",
                "description": "Detail view of a single request including headers, payload and response.",
                "summary": "GET /rest/audit/requests/{correlationId}",
                "tags": [
                    "Sonstiges"
                ],
                "parameters": [
                    {
                        "name": "correlationId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "correlation_id": {
                                                    "type": "string"
                                                },
                                                "tenant_id": {
                                                    "type": "string"
                                                },
                                                "user_id": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "client_ip": {
                                                    "type": "string"
                                                },
                                                "method": {
                                                    "type": "string"
                                                },
                                                "uri": {
                                                    "type": "string"
                                                },
                                                "request_headers": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "payload": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "status_code": {
                                                    "type": "integer"
                                                },
                                                "response_headers": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "response_body": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "duration_ms": {
                                                    "type": "number"
                                                },
                                                "timestamp": {
                                                    "type": "string"
                                                },
                                                "hostname": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "correlation_id",
                                                "tenant_id",
                                                "user_id",
                                                "client_ip",
                                                "method",
                                                "uri",
                                                "request_headers",
                                                "payload",
                                                "status_code",
                                                "response_headers",
                                                "response_body",
                                                "duration_ms",
                                                "timestamp",
                                                "hostname"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/terminal/{code}": {
            "post": {
                "operationId": "tenant.terminal",
                "description": "Flat body (ADR 0005, frozen hardware contract \u2014 TerminalResponsePinTest):\nthe EventResource fields plus the top-level `terminal_message`. Documented\nexplicitly because the shape is assembled from a resolved resource, which\nleaves nothing inferrable for the schema generator.",
                "summary": "POST /rest/terminal/{code} \u2014 Terminal clock-in/out (no auth required)",
                "tags": [
                    "Stempelungen"
                ],
                "parameters": [
                    {
                        "name": "code",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Stempelung erfasst",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string"
                                        },
                                        "employee_id": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "state": {
                                            "type": "integer"
                                        },
                                        "type": {
                                            "type": "integer"
                                        },
                                        "timestamp": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "latitude": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "longitude": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "accuracy": {
                                            "type": [
                                                "number",
                                                "null"
                                            ]
                                        },
                                        "nfc_tag_id": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "client_ip": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "metadata": {
                                            "type": [
                                                "object",
                                                "null"
                                            ],
                                            "additionalProperties": {}
                                        },
                                        "early": {
                                            "type": "integer"
                                        },
                                        "created_at": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "updated_at": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "terminal_message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "employee_id",
                                        "state",
                                        "type",
                                        "timestamp",
                                        "latitude",
                                        "longitude",
                                        "accuracy",
                                        "nfc_tag_id",
                                        "client_ip",
                                        "metadata",
                                        "created_at",
                                        "updated_at",
                                        "terminal_message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        },
                                        "code": {
                                            "type": "string",
                                            "const": "CLOCK_IN_TOO_EARLY"
                                        },
                                        "earliest_clock_in": {
                                            "type": "string"
                                        },
                                        "shift_start": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message",
                                        "code",
                                        "earliest_clock_in",
                                        "shift_start"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview."
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "Terminal-Stempelung nicht erlaubt."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/mobile": {
            "post": {
                "operationId": "tenant.mobile.clock",
                "description": "Documented exception to the `data`-envelope standard (ADR 0005): the\npayload stays flat for the mobile clients. `early` is only present when\nthe clock-in happened before the rostered start (milliseconds early).",
                "summary": "POST /rest/mobile \u2014 Mobile clock-in/out (authenticated)",
                "tags": [
                    "Stempelungen"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/MobileClockRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Stempelung erfasst",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string"
                                        },
                                        "state": {
                                            "type": "string"
                                        },
                                        "timestamp": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "location": {
                                            "type": "boolean"
                                        },
                                        "early": {
                                            "type": "integer"
                                        },
                                        "target_duration_seconds": {
                                            "type": "integer"
                                        },
                                        "weekly_target_seconds": {
                                            "type": "integer"
                                        },
                                        "weekly_seconds": {
                                            "type": "integer"
                                        },
                                        "today_work_seconds": {
                                            "type": "integer"
                                        },
                                        "today_pause_seconds": {
                                            "type": "integer"
                                        },
                                        "overtime_account_seconds": {
                                            "type": "integer"
                                        },
                                        "overtime_month_seconds": {
                                            "type": "integer"
                                        },
                                        "company_name": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "state",
                                        "timestamp",
                                        "location",
                                        "target_duration_seconds",
                                        "weekly_target_seconds",
                                        "weekly_seconds",
                                        "today_work_seconds",
                                        "today_pause_seconds",
                                        "overtime_account_seconds",
                                        "overtime_month_seconds",
                                        "company_name"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error\n\nAn error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "anyOf": [
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "description": "Error overview.",
                                                    "examples": [
                                                        "Keine Berechtigung f\u00fcr mobile Stempelung."
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "message"
                                            ]
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "description": "Error overview.",
                                                    "examples": [
                                                        "No employee record."
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "message"
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "get": {
                "operationId": "tenant.mobile.status",
                "description": "Documented exception to the `data`-envelope standard (ADR 0005): the\npayload stays flat for the mobile clients.",
                "summary": "GET /rest/mobile \u2014 Mobile clock status (authenticated)",
                "tags": [
                    "Stempelungen"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "clocked_in": {
                                            "type": "boolean"
                                        },
                                        "last_event": {
                                            "anyOf": [
                                                {
                                                    "$ref": "#/components/schemas/EventResource"
                                                },
                                                {
                                                    "type": "null"
                                                }
                                            ]
                                        },
                                        "next_state": {
                                            "type": "string"
                                        },
                                        "target_duration_seconds": {
                                            "type": "integer"
                                        },
                                        "weekly_target_seconds": {
                                            "type": "integer"
                                        },
                                        "weekly_seconds": {
                                            "type": "integer"
                                        },
                                        "today_work_seconds": {
                                            "type": "integer"
                                        },
                                        "today_pause_seconds": {
                                            "type": "integer"
                                        },
                                        "overtime_account_seconds": {
                                            "type": "integer"
                                        },
                                        "overtime_month_seconds": {
                                            "type": "integer"
                                        },
                                        "company_name": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "clocked_in",
                                        "last_event",
                                        "next_state",
                                        "target_duration_seconds",
                                        "weekly_target_seconds",
                                        "weekly_seconds",
                                        "today_work_seconds",
                                        "today_pause_seconds",
                                        "overtime_account_seconds",
                                        "overtime_month_seconds",
                                        "company_name"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "No employee record."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/events/{start}/{end}": {
            "get": {
                "operationId": "tenant.employees.events.index",
                "summary": "GET /rest/employees/{employee}/events/{start}/{end} \u2014 Events for a date range",
                "tags": [
                    "Stempelungen"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "start",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `EventResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EventResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/vacation_entitlements": {
            "get": {
                "operationId": "tenant.employees.vacation_entitlements.index",
                "summary": "GET /rest/employees/{employee}/vacation_entitlements",
                "tags": [
                    "Urlaubsanspruch"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `VacationEntitlementResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/VacationEntitlementResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.employees.vacation_entitlements.update",
                "description": "Create or update a vacation entitlement for a year. Value changes are\nrouted through the ledger allocator as `grant` (creation) or\n`adjustment` (existing) transactions so the ledger stays authoritative.",
                "summary": "PUT /rest/employees/{employee}/vacation_entitlements",
                "tags": [
                    "Urlaubsanspruch"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateVacationEntitlementRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`VacationEntitlementResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/VacationEntitlementResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/employees/{employee}/vacation_transactions/{year}": {
            "get": {
                "operationId": "tenant.employees.vacation_transactions.index",
                "description": "Chronological booking history (ascending) for one employee and year,\nstraight from the append-only ledger. Visibility scoping is enforced by\nthe route middleware (self-or-manager), identical to `index()`.",
                "summary": "GET /rest/employees/{employee}/vacation_transactions/{year}",
                "tags": [
                    "Urlaubsanspruch"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "year",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `VacationTransactionResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/VacationTransactionResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            }
        },
        "/employees/{employee}/overtime_accounts": {
            "get": {
                "operationId": "tenant.employees.overtime_accounts.index",
                "summary": "GET /rest/employees/{employee}/overtime_accounts",
                "tags": [
                    "\u00dcberstundenkonto"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `OvertimeAccountResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/OvertimeAccountResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    }
                }
            },
            "put": {
                "operationId": "tenant.employees.overtime_accounts.update",
                "summary": "PUT /rest/employees/{employee}/overtime_accounts \u2014 Manual balance correction",
                "tags": [
                    "\u00dcberstundenkonto"
                ],
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "required": true,
                        "description": "The employee ID",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/UpdateOvertimeAccountRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`OvertimeAccountResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/OvertimeAccountResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "401": {
                        "$ref": "#/components/responses/AuthenticationException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "http": {
                "type": "http",
                "description": "Bearer-Token, erhalten \u00fcber den Login-Endpunkt (POST /rest/login).",
                "scheme": "bearer"
            },
            "questionnaireToken": {
                "type": "apiKey",
                "description": "Token des Personalfragebogen-Links (nur im Header, nie in URL oder Query).",
                "in": "header",
                "name": "X-Questionnaire-Token"
            },
            "applicationDraft": {
                "type": "apiKey",
                "description": "Entwurfs-Token einer Bewerbung aus POST /careers/jobs/{slug}/application-drafts (nur im Header).",
                "in": "header",
                "name": "X-Application-Draft"
            }
        },
        "schemas": {
            "AbsenceCategory": {
                "type": "string",
                "enum": [
                    "standard",
                    "productive"
                ],
                "title": "AbsenceCategory"
            },
            "AbsenceTypeResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "slug": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "color": {
                        "type": "string"
                    },
                    "icon": {
                        "type": "string"
                    },
                    "is_system": {
                        "type": "string"
                    },
                    "category": {
                        "type": "string"
                    },
                    "unit": {
                        "type": "string"
                    },
                    "half_day_allowed": {
                        "type": "string"
                    },
                    "affects_vacation": {
                        "type": "string"
                    },
                    "target_work_factor": {
                        "type": "number"
                    },
                    "working_time_flag": {
                        "type": "string"
                    },
                    "requires_approval": {
                        "type": "string"
                    },
                    "is_paid": {
                        "type": "string"
                    },
                    "certificate_required": {
                        "type": "string"
                    },
                    "certificate_deadline_days": {
                        "type": "string"
                    },
                    "substitute_option": {
                        "type": "string"
                    },
                    "count_weekdays_only": {
                        "type": "string"
                    },
                    "is_active": {
                        "type": "string"
                    },
                    "eau_relevant": {
                        "type": "boolean"
                    },
                    "sort_order": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "slug",
                    "name",
                    "color",
                    "icon",
                    "is_system",
                    "category",
                    "unit",
                    "half_day_allowed",
                    "affects_vacation",
                    "target_work_factor",
                    "working_time_flag",
                    "requires_approval",
                    "is_paid",
                    "certificate_required",
                    "certificate_deadline_days",
                    "substitute_option",
                    "count_weekdays_only",
                    "is_active",
                    "eau_relevant",
                    "sort_order"
                ],
                "title": "AbsenceTypeResource"
            },
            "AlteredEventResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "state": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "timestamp": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "reason": {
                        "type": "string"
                    },
                    "altered_by": {
                        "type": "string"
                    },
                    "pending": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "decided_by": {
                        "type": "string"
                    },
                    "decided_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "decision_note": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "date",
                    "state",
                    "type",
                    "timestamp",
                    "reason",
                    "altered_by",
                    "pending",
                    "status",
                    "decided_by",
                    "decided_at",
                    "decision_note",
                    "created_at",
                    "updated_at"
                ],
                "title": "AlteredEventResource"
            },
            "AppChannelPolicy": {
                "type": "string",
                "description": "Three-state policy an app channel setting can take (tenant settings `apps.{channel}.{feature}`): the feature is unavailable, offered to the employee, or mandated by the company.\n",
                "enum": [
                    "off",
                    "optional",
                    "required"
                ],
                "title": "AppChannelPolicy"
            },
            "ApplicationDraftDocumentResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "kind": {
                        "$ref": "#/components/schemas/JobApplicationDocumentKind"
                    },
                    "mime_type": {
                        "type": "string"
                    },
                    "size_bytes": {
                        "type": "integer"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "checking",
                            "checked"
                        ]
                    }
                },
                "required": [
                    "id",
                    "kind",
                    "mime_type",
                    "size_bytes",
                    "status"
                ],
                "title": "ApplicationDraftDocumentResource"
            },
            "ApplicationDraftResource": {
                "type": "object",
                "properties": {
                    "token": {
                        "type": "string"
                    },
                    "expires_at": {
                        "type": "string"
                    },
                    "uploads": {
                        "type": "object",
                        "properties": {
                            "max_files": {
                                "type": "integer"
                            },
                            "max_file_bytes": {
                                "type": "integer"
                            },
                            "max_total_bytes": {
                                "type": "integer"
                            },
                            "allowed_mime_types": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            }
                        },
                        "required": [
                            "max_files",
                            "max_file_bytes",
                            "max_total_bytes",
                            "allowed_mime_types"
                        ]
                    }
                },
                "required": [
                    "token",
                    "expires_at",
                    "uploads"
                ],
                "title": "ApplicationDraftResource"
            },
            "ApplyForShiftRequest": {
                "type": "object",
                "description": "Body of POST /rest/roster_entries/{rosterEntry}/apply. The note is stored\nverbatim on the application and shown to the deciding manager.",
                "properties": {
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    }
                },
                "title": "ApplyForShiftRequest"
            },
            "ApplyStammdatenImportRequest": {
                "type": "object",
                "description": "Body von POST /rest/eau/employees/{employee}/stammdaten/apply.\n\nMit `import_id` + `line` kommen Werte und G\u00fcltigkeit aus der Protokollzeile des Importlaufs;\n`fields` darf dann nur eine Teilmenge der Vorschl\u00e4ge mit identischen Werten sein (gepr\u00fcft im\n{@see StammdatenImportService}). Ohne `import_id` bleibt das bisherige Verhalten (\u00dcbernahme ab\nheute) mit Feldregeln je Wert.",
                "properties": {
                    "import_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "line": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "fields": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "minItems": 1
                    },
                    "vsnr_birthdate_confirmed": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "fields"
                ],
                "title": "ApplyStammdatenImportRequest"
            },
            "ApproveAlteredEventRequest": {
                "type": "object",
                "description": "Body of PATCH /rest/employees/{employee}/working_time/approve \u2014 the day\nwhose pending correction is accepted.",
                "properties": {
                    "date": {
                        "type": "string",
                        "format": "date-time"
                    }
                },
                "required": [
                    "date"
                ],
                "title": "ApproveAlteredEventRequest"
            },
            "ApproverResource": {
                "type": "object",
                "properties": {
                    "employee_id": {
                        "type": "string"
                    },
                    "approver": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "employee_id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            },
                            "surname": {
                                "type": "string"
                            },
                            "full_name": {
                                "type": "string"
                            },
                            "position": {
                                "type": "string"
                            },
                            "unit_id": {
                                "type": "string"
                            },
                            "unit_name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "employee_id",
                            "name",
                            "surname",
                            "full_name",
                            "position",
                            "unit_id",
                            "unit_name"
                        ]
                    },
                    "typical_decision_hours": {
                        "type": "string"
                    }
                },
                "required": [
                    "employee_id",
                    "approver",
                    "typical_decision_hours"
                ],
                "title": "ApproverResource"
            },
            "AssignEauResponseRequest": {
                "type": "object",
                "description": "Manuelle Zuordnung eines Kl\u00e4rungsfalls zu einer eAU-Anforderung\n(POST /rest/eau/responses/{eauResponse}/assign, eau-rueckmeldungen-betrieb 3.5/3.6).\nBerechtigung und Sichtbarkeit pr\u00fcft der Controller.",
                "properties": {
                    "eau_request_id": {
                        "type": "string",
                        "format": "uuid"
                    }
                },
                "required": [
                    "eau_request_id"
                ],
                "title": "AssignEauResponseRequest"
            },
            "AssignLocationEmployeesRequest": {
                "type": "object",
                "description": "Zuweisung von Mitarbeitenden an einen Standort. `valid_after` ist der Beginn der daraus\nabgeleiteten Betriebsst\u00e4tten-Zuordnung (Default: heute in der Tenant-Zeitzone).",
                "properties": {
                    "employee_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "minItems": 1
                    },
                    "valid_after": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    }
                },
                "required": [
                    "employee_ids"
                ],
                "title": "AssignLocationEmployeesRequest"
            },
            "AssignLocationHolidaysRequest": {
                "type": "object",
                "properties": {
                    "holiday_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "holiday_ids"
                ],
                "title": "AssignLocationHolidaysRequest"
            },
            "AssignRoleRequest": {
                "type": "object",
                "properties": {
                    "role": {
                        "type": "string"
                    }
                },
                "required": [
                    "role"
                ],
                "title": "AssignRoleRequest"
            },
            "AssignmentCandidateResource": {
                "type": "object",
                "properties": {
                    "employee_id": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "signals": {
                        "type": "string"
                    }
                },
                "required": [
                    "employee_id",
                    "status",
                    "signals"
                ],
                "title": "AssignmentCandidateResource"
            },
            "AuditTrailResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "event": {
                        "type": "string"
                    },
                    "subject_type": {
                        "type": "string"
                    },
                    "subject_label": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "string",
                                "enum": [
                                    "Sonstiges"
                                ]
                            }
                        ]
                    },
                    "causer_name": {
                        "type": "string"
                    },
                    "causer_id": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "changes": {
                        "type": "object",
                        "properties": {
                            "old": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "new": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "old",
                            "new"
                        ]
                    },
                    "created_at": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "event",
                    "subject_type",
                    "subject_label",
                    "causer_name",
                    "causer_id",
                    "description",
                    "changes",
                    "created_at"
                ],
                "title": "AuditTrailResource"
            },
            "AvailabilityType": {
                "type": "integer",
                "enum": [
                    0,
                    1,
                    2
                ],
                "title": "AvailabilityType"
            },
            "BankLookupRequest": {
                "type": "object",
                "description": "IBAN f\u00fcr den Bank-Lookup. Die formale Pr\u00fcfung geh\u00f6rt zur Antwort (`valid`), nicht zur Validierung,\ndamit das Formular auch eine ung\u00fcltige Eingabe live einordnen kann.",
                "properties": {
                    "iban": {
                        "type": "string",
                        "maxLength": 64
                    }
                },
                "required": [
                    "iban"
                ],
                "title": "BankLookupRequest"
            },
            "BulkCorrectionDecisionRequest": {
                "type": "object",
                "properties": {
                    "action": {
                        "type": "string",
                        "enum": [
                            "approve",
                            "reject"
                        ]
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "minLength": 3,
                        "maxLength": 1000
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "employee_id": {
                                    "type": "string",
                                    "format": "uuid"
                                },
                                "date": {
                                    "type": "string",
                                    "format": "date-time"
                                }
                            },
                            "required": [
                                "employee_id",
                                "date"
                            ]
                        },
                        "minItems": 1,
                        "maxItems": 50
                    }
                },
                "required": [
                    "action",
                    "items"
                ],
                "title": "BulkCorrectionDecisionRequest"
            },
            "BulkShiftRequirementRequest": {
                "type": "object",
                "properties": {
                    "requirements": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "shift_id": {
                                    "type": "string",
                                    "format": "uuid"
                                },
                                "weekday": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 7
                                },
                                "min_count": {
                                    "type": "integer",
                                    "minimum": 0
                                },
                                "optimal_count": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "minimum": 0
                                },
                                "skill_requirements": {
                                    "type": [
                                        "array",
                                        "null"
                                    ],
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "skill_id": {
                                                "type": "string",
                                                "format": "uuid"
                                            },
                                            "required_count": {
                                                "type": [
                                                    "integer",
                                                    "null"
                                                ],
                                                "minimum": 1
                                            },
                                            "min_level": {
                                                "type": [
                                                    "integer",
                                                    "null"
                                                ],
                                                "minimum": 1
                                            }
                                        },
                                        "required": [
                                            "skill_id"
                                        ]
                                    }
                                }
                            },
                            "required": [
                                "shift_id",
                                "weekday",
                                "min_count"
                            ]
                        }
                    }
                },
                "required": [
                    "requirements"
                ],
                "title": "BulkShiftRequirementRequest"
            },
            "BulkStoreAvailabilitiesRequest": {
                "type": "object",
                "properties": {
                    "availabilities": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "date": {
                                    "type": "string",
                                    "format": "date-time"
                                },
                                "type": {
                                    "$ref": "#/components/schemas/AvailabilityType"
                                },
                                "shift_id": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "format": "uuid"
                                },
                                "note": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "weight": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 3
                                }
                            },
                            "required": [
                                "date",
                                "type"
                            ]
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "availabilities"
                ],
                "title": "BulkStoreAvailabilitiesRequest"
            },
            "BulkStoreRosterEntriesRequest": {
                "type": "object",
                "properties": {
                    "entries": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "employee_id": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "format": "uuid"
                                },
                                "date": {
                                    "type": "string",
                                    "format": "date-time"
                                },
                                "shift_id": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "format": "uuid"
                                },
                                "start_time": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "end_time": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "note": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "work_area_id": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "format": "uuid"
                                },
                                "status": {
                                    "anyOf": [
                                        {
                                            "$ref": "#/components/schemas/RosterEntryStatus"
                                        },
                                        {
                                            "type": "null"
                                        }
                                    ]
                                }
                            },
                            "required": [
                                "date"
                            ]
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "entries"
                ],
                "title": "BulkStoreRosterEntriesRequest"
            },
            "BulkUpdateEmployeesRequest": {
                "type": "object",
                "description": "Mass update of a safe subset of employee fields (`PATCH /rest/employees/bulk`).",
                "properties": {
                    "employee_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "minItems": 1,
                        "maxItems": 500
                    },
                    "fields": {
                        "type": "object",
                        "properties": {
                            "unit_id": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "format": "uuid"
                            },
                            "department_id": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "format": "uuid"
                            },
                            "cost_center_id": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "format": "uuid"
                            },
                            "location_id": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "format": "uuid"
                            },
                            "active": {
                                "type": "boolean"
                            },
                            "include_in_export": {
                                "type": "boolean"
                            },
                            "salary_type_work": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "maxLength": 10
                            },
                            "salary_type_overtime": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "maxLength": 10
                            },
                            "vacation_days": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 365
                            }
                        }
                    }
                },
                "required": [
                    "employee_ids",
                    "fields"
                ],
                "title": "BulkUpdateEmployeesRequest"
            },
            "CancelEmploymentCertificateRequest": {
                "type": "object",
                "description": "Cancel an employment certificate (`POST .../employment_certificates/{employmentCertificate}/cancel`).",
                "properties": {
                    "reason": {
                        "type": "string",
                        "maxLength": 1000
                    }
                },
                "required": [
                    "reason"
                ],
                "title": "CancelEmploymentCertificateRequest"
            },
            "CardFormat": {
                "type": "string",
                "enum": [
                    "dec_10",
                    "dec_6",
                    "hex_6",
                    "hex_14"
                ],
                "title": "CardFormat"
            },
            "CareerJobResource": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "path": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "employment_type": {
                        "$ref": "#/components/schemas/JobEmploymentType"
                    },
                    "workplace_type": {
                        "$ref": "#/components/schemas/JobWorkplaceType"
                    },
                    "location": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            },
                            "city": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "postal_code": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "id",
                            "name",
                            "city",
                            "postal_code"
                        ]
                    },
                    "salary": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "min_cents": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "max_cents": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "period": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "currency": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "min_cents",
                            "max_cents",
                            "period",
                            "currency"
                        ]
                    },
                    "published_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "valid_through": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "url": {
                        "type": "string"
                    },
                    "description_html": {
                        "type": "string"
                    },
                    "structured_data": {
                        "type": "object",
                        "properties": {
                            "@context": {
                                "type": "string",
                                "const": "https://schema.org"
                            },
                            "@type": {
                                "type": "string",
                                "const": "JobPosting"
                            },
                            "title": {
                                "type": "string"
                            },
                            "description": {
                                "type": "string"
                            },
                            "datePosted": {
                                "type": "string"
                            },
                            "validThrough": {
                                "type": "string"
                            },
                            "employmentType": {
                                "type": "string",
                                "enum": [
                                    "FULL_TIME",
                                    "PART_TIME",
                                    "INTERN",
                                    "TEMPORARY",
                                    "CONTRACTOR"
                                ]
                            },
                            "hiringOrganization": {
                                "type": "object",
                                "properties": {
                                    "@type": {
                                        "type": "string",
                                        "const": "Organization"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "sameAs": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "logo": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                },
                                "required": [
                                    "@type",
                                    "name",
                                    "sameAs",
                                    "logo"
                                ]
                            },
                            "identifier": {
                                "type": "object",
                                "properties": {
                                    "@type": {
                                        "type": "string",
                                        "const": "PropertyValue"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "value": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "@type",
                                    "name",
                                    "value"
                                ]
                            },
                            "jobLocationType": {
                                "type": "string",
                                "const": "TELECOMMUTE"
                            },
                            "applicantLocationRequirements": {
                                "type": "object",
                                "properties": {
                                    "@type": {
                                        "type": "string",
                                        "const": "Country"
                                    },
                                    "name": {
                                        "type": "string",
                                        "const": "DE"
                                    }
                                },
                                "required": [
                                    "@type",
                                    "name"
                                ]
                            },
                            "jobLocation": {
                                "type": "object",
                                "properties": {
                                    "@type": {
                                        "type": "string",
                                        "const": "Place"
                                    },
                                    "address": {
                                        "type": "array",
                                        "items": {}
                                    }
                                },
                                "required": [
                                    "@type",
                                    "address"
                                ]
                            },
                            "baseSalary": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "properties": {
                                    "@type": {
                                        "type": "string",
                                        "const": "MonetaryAmount"
                                    },
                                    "currency": {
                                        "type": "string",
                                        "const": "EUR"
                                    },
                                    "value": {
                                        "type": "object",
                                        "properties": {
                                            "@type": {
                                                "type": "string",
                                                "const": "QuantitativeValue"
                                            },
                                            "minValue": {
                                                "type": "number"
                                            },
                                            "maxValue": {
                                                "type": "number"
                                            },
                                            "value": {
                                                "type": "number"
                                            },
                                            "unitText": {
                                                "type": "string",
                                                "enum": [
                                                    "HOUR",
                                                    "MONTH",
                                                    "YEAR"
                                                ]
                                            }
                                        },
                                        "required": [
                                            "@type",
                                            "minValue",
                                            "maxValue",
                                            "value",
                                            "unitText"
                                        ]
                                    }
                                },
                                "required": [
                                    "@type",
                                    "currency",
                                    "value"
                                ]
                            },
                            "directApply": {
                                "type": "boolean"
                            },
                            "url": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "@context",
                            "@type",
                            "title",
                            "description",
                            "datePosted",
                            "validThrough",
                            "employmentType",
                            "hiringOrganization",
                            "identifier",
                            "jobLocationType",
                            "applicantLocationRequirements",
                            "jobLocation",
                            "baseSalary",
                            "directApply",
                            "url"
                        ]
                    },
                    "company": {
                        "type": "object",
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "logo_url": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "accent_color": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "description": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "website": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "name",
                            "logo_url",
                            "accent_color",
                            "description",
                            "website"
                        ]
                    },
                    "privacy_notice": {
                        "type": "object",
                        "properties": {
                            "text": {
                                "type": "string"
                            },
                            "version": {
                                "type": "integer"
                            }
                        },
                        "required": [
                            "text",
                            "version"
                        ]
                    },
                    "application_form": {
                        "type": "object",
                        "properties": {
                            "max_files": {
                                "type": "integer"
                            },
                            "max_file_bytes": {
                                "type": "integer"
                            },
                            "max_total_bytes": {
                                "type": "integer"
                            },
                            "allowed_mime_types": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            }
                        },
                        "required": [
                            "max_files",
                            "max_file_bytes",
                            "max_total_bytes",
                            "allowed_mime_types"
                        ]
                    }
                },
                "required": [
                    "slug",
                    "path",
                    "title",
                    "employment_type",
                    "workplace_type",
                    "location",
                    "salary",
                    "published_at",
                    "valid_through",
                    "url",
                    "description_html",
                    "structured_data",
                    "company",
                    "privacy_notice",
                    "application_form"
                ],
                "title": "CareerJobResource"
            },
            "CareerJobSummaryResource": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "path": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "employment_type": {
                        "$ref": "#/components/schemas/JobEmploymentType"
                    },
                    "workplace_type": {
                        "$ref": "#/components/schemas/JobWorkplaceType"
                    },
                    "location": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            },
                            "city": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "postal_code": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "id",
                            "name",
                            "city",
                            "postal_code"
                        ]
                    },
                    "salary": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "min_cents": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "max_cents": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "period": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "currency": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "min_cents",
                            "max_cents",
                            "period",
                            "currency"
                        ]
                    },
                    "published_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "valid_through": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "slug",
                    "path",
                    "title",
                    "employment_type",
                    "workplace_type",
                    "location",
                    "salary",
                    "published_at",
                    "valid_through"
                ],
                "title": "CareerJobSummaryResource"
            },
            "CareerPageResource": {
                "type": "object",
                "properties": {
                    "company": {
                        "type": "object",
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "logo_url": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "accent_color": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "description": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "website": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "name",
                            "logo_url",
                            "accent_color",
                            "description",
                            "website"
                        ]
                    },
                    "jobs": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CareerJobSummaryResource"
                        }
                    }
                },
                "required": [
                    "company",
                    "jobs"
                ],
                "title": "CareerPageResource"
            },
            "CareerWidgetResource": {
                "type": "object",
                "properties": {
                    "company": {
                        "type": "object",
                        "properties": {
                            "name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "name"
                        ]
                    },
                    "default_locale": {
                        "type": "string"
                    },
                    "config": {
                        "type": "object",
                        "properties": {
                            "filters": {
                                "type": "object",
                                "properties": {
                                    "location": {
                                        "type": "boolean"
                                    },
                                    "employment_type": {
                                        "type": "boolean"
                                    }
                                },
                                "required": [
                                    "location",
                                    "employment_type"
                                ]
                            },
                            "card_fields": {
                                "type": "object",
                                "properties": {
                                    "location": {
                                        "type": "boolean"
                                    },
                                    "employment_type": {
                                        "type": "boolean"
                                    },
                                    "workplace_type": {
                                        "type": "boolean"
                                    },
                                    "salary": {
                                        "type": "boolean"
                                    },
                                    "published_at": {
                                        "type": "boolean"
                                    }
                                },
                                "required": [
                                    "location",
                                    "employment_type",
                                    "workplace_type",
                                    "salary",
                                    "published_at"
                                ]
                            },
                            "per_page": {
                                "type": "integer"
                            },
                            "colors": {
                                "type": "object",
                                "properties": {
                                    "background": {
                                        "type": "string"
                                    },
                                    "card": {
                                        "type": "string"
                                    },
                                    "border": {
                                        "type": "string"
                                    },
                                    "text": {
                                        "type": "string"
                                    },
                                    "accent": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "background",
                                    "card",
                                    "border",
                                    "text",
                                    "accent"
                                ]
                            },
                            "preselect": {
                                "type": "object",
                                "properties": {
                                    "location_id": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    },
                                    "employment_type": {
                                        "type": [
                                            "string",
                                            "null"
                                        ]
                                    }
                                },
                                "required": [
                                    "location_id",
                                    "employment_type"
                                ]
                            }
                        },
                        "required": [
                            "filters",
                            "card_fields",
                            "per_page",
                            "colors",
                            "preselect"
                        ]
                    },
                    "jobs": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CareerJobSummaryResource"
                        }
                    }
                },
                "required": [
                    "company",
                    "default_locale",
                    "config",
                    "jobs"
                ],
                "title": "CareerWidgetResource"
            },
            "CertificateRequester": {
                "type": "string",
                "description": "Who requested an employment certificate (\u00a7 312 Abs. 1 SGB III), `employment_certificates.requested_by`.\n",
                "enum": [
                    "agency",
                    "employee"
                ],
                "title": "CertificateRequester"
            },
            "ChangePasswordRequest": {
                "type": "object",
                "properties": {
                    "current_password": {
                        "type": "string"
                    },
                    "password": {
                        "type": "string",
                        "minLength": 8
                    }
                },
                "required": [
                    "current_password",
                    "password"
                ],
                "title": "ChangePasswordRequest"
            },
            "ClosePayrollPeriodRequest": {
                "type": "object",
                "description": "Body of POST /rest/payroll/periods/{yearMonth}/close \u2014 an optional note\nkept with the closing record.",
                "properties": {
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    }
                },
                "title": "ClosePayrollPeriodRequest"
            },
            "CompensationCategory": {
                "type": "string",
                "enum": [
                    "fixed_salary",
                    "hourly_salary",
                    "recurring",
                    "one_time",
                    "benefit_in_kind",
                    "advance_payment"
                ],
                "title": "CompensationCategory"
            },
            "CompensationInterval": {
                "type": "string",
                "enum": [
                    "monthly",
                    "quarterly",
                    "half_yearly",
                    "yearly",
                    "one_time"
                ],
                "title": "CompensationInterval"
            },
            "CompensationTypeResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "category": {
                        "type": "string"
                    },
                    "is_system": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "name",
                    "category",
                    "is_system"
                ],
                "title": "CompensationTypeResource"
            },
            "CompletePersonnelQuestionnaireRequest": {
                "type": "object",
                "description": "\u201ePr\u00fcfen und unterschreiben\u201c: Unterschrift der Personalabteilung (Name, optional Zeichnung) f\u00fcr\ngenau die gepr\u00fcfte Revision und den gepr\u00fcften Stand (`lock_version`).",
                "properties": {
                    "lock_version": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "revision": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "signature": {
                        "type": "object",
                        "properties": {
                            "name": {
                                "type": "string",
                                "maxLength": 255
                            },
                            "image": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "maxLength": 300000
                            }
                        },
                        "required": [
                            "name"
                        ]
                    }
                },
                "required": [
                    "lock_version",
                    "revision",
                    "signature"
                ],
                "title": "CompletePersonnelQuestionnaireRequest"
            },
            "ContractType": {
                "type": "string",
                "description": "Art des Arbeitsvertrags (Personalfragebogen Abschnitt 7): Befristung und Umfang, Grundlage der 9. Stelle des T\u00e4tigkeitsschl\u00fcssels.\n",
                "enum": [
                    "permanent_full_time",
                    "permanent_part_time",
                    "fixed_term_full_time",
                    "fixed_term_part_time"
                ],
                "title": "ContractType"
            },
            "ControllingAttentionResource": {
                "type": "object",
                "properties": {
                    "severity": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string"
                    },
                    "kpi": {
                        "type": "string"
                    },
                    "value": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "formatted": {
                        "type": "string"
                    },
                    "count": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "department_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "months": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "link": {
                        "type": "object",
                        "properties": {
                            "type": {
                                "type": "string"
                            },
                            "target": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "type",
                            "target"
                        ]
                    }
                },
                "required": [
                    "severity",
                    "code",
                    "kpi",
                    "value",
                    "formatted",
                    "count",
                    "department_id",
                    "months",
                    "link"
                ],
                "title": "ControllingAttentionResource"
            },
            "ControllingBudgetResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "scope": {
                        "type": "string"
                    },
                    "department_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "department_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "effective_from": {
                        "type": "string"
                    },
                    "amount_cents": {
                        "type": "integer"
                    },
                    "currency": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "scope",
                    "department_id",
                    "department_name",
                    "effective_from",
                    "amount_cents",
                    "currency"
                ],
                "title": "ControllingBudgetResource"
            },
            "ControllingCostCenterResource": {
                "type": "object",
                "properties": {
                    "cost_center_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "personnel_cost_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "previous_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "delta_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "reason": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/ControllingReason"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "previous_reason": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/ControllingReason"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                },
                "required": [
                    "cost_center_id",
                    "name",
                    "personnel_cost_cents",
                    "previous_cents",
                    "delta_cents",
                    "reason",
                    "previous_reason"
                ],
                "title": "ControllingCostCenterResource"
            },
            "ControllingCostTypeResource": {
                "type": "object",
                "properties": {
                    "type": {
                        "type": "string"
                    },
                    "amount_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "previous_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "delta_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "delta_percent": {
                        "type": [
                            "number",
                            "null"
                        ]
                    }
                },
                "required": [
                    "type",
                    "amount_cents",
                    "previous_cents",
                    "delta_cents",
                    "delta_percent"
                ],
                "title": "ControllingCostTypeResource"
            },
            "ControllingDepartmentResource": {
                "type": "object",
                "properties": {
                    "key": {
                        "type": "string"
                    },
                    "department_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "headcount": {
                        "type": "number"
                    },
                    "headcount_previous": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "headcount_delta": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "fte": {
                        "type": "number"
                    },
                    "illness_rate": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "illness_rate_previous": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "illness_target_status": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/ControllingKpiStatus"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "absence_rate": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "absence_rate_previous": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "overtime_rate": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "overtime_rate_previous": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "turnover_rate": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "turnover_rate_previous": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "personnel_cost_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "cost_per_fte_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "budget_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "budget_deviation_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "budget_deviation_percent": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "budget_reason": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/ControllingReason"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                },
                "required": [
                    "key",
                    "department_id",
                    "name",
                    "headcount",
                    "headcount_previous",
                    "headcount_delta",
                    "fte",
                    "illness_rate",
                    "illness_rate_previous",
                    "illness_target_status",
                    "absence_rate",
                    "absence_rate_previous",
                    "overtime_rate",
                    "overtime_rate_previous",
                    "turnover_rate",
                    "turnover_rate_previous",
                    "personnel_cost_cents",
                    "cost_per_fte_cents",
                    "budget_cents",
                    "budget_deviation_cents",
                    "budget_deviation_percent",
                    "budget_reason"
                ],
                "title": "ControllingDepartmentResource"
            },
            "ControllingKpi": {
                "type": "string",
                "description": "Catalog of the personnel controlling KPIs (OpenSpec personalcontrolling-dashboard, D6). Single source for the validation of target values, the KPI list of the overview response and the frontend types (i18n key `controlling.kpi.<value>`). Suggested targets live in `config/controlling.php` so they can be tuned without touching code.\n",
                "enum": [
                    "illness_rate",
                    "absence_rate",
                    "overtime_rate",
                    "turnover_rate",
                    "compliance_violation_days",
                    "minijob_exceeded",
                    "personnel_cost",
                    "cost_per_fte",
                    "personnel_cost_ratio",
                    "budget_deviation"
                ],
                "title": "ControllingKpi"
            },
            "ControllingKpiResource": {
                "type": "object",
                "properties": {
                    "key": {
                        "$ref": "#/components/schemas/ControllingKpi"
                    },
                    "value": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "unit": {
                        "type": "string"
                    },
                    "previous": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "previous_reason": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/ControllingReason"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "delta": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "target": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "tolerance": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "direction": {
                        "type": "string"
                    },
                    "status": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/ControllingKpiStatus"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "reason": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/ControllingReason"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "estimated": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "key",
                    "value",
                    "unit",
                    "previous",
                    "previous_reason",
                    "delta",
                    "target",
                    "tolerance",
                    "direction",
                    "status",
                    "reason",
                    "estimated"
                ],
                "title": "ControllingKpiResource"
            },
            "ControllingKpiStatus": {
                "type": "string",
                "description": "Traffic light of a controlling KPI against its target (OpenSpec personalcontrolling-dashboard).\n",
                "enum": [
                    "on_target",
                    "near_target",
                    "off_target"
                ],
                "title": "ControllingKpiStatus"
            },
            "ControllingOverviewResource": {
                "type": "object",
                "properties": {
                    "period": {
                        "type": "object",
                        "properties": {
                            "from": {
                                "type": "string"
                            },
                            "to": {
                                "type": "string"
                            },
                            "months": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            }
                        },
                        "required": [
                            "from",
                            "to",
                            "months"
                        ]
                    },
                    "previous_period": {
                        "type": "object",
                        "properties": {
                            "from": {
                                "type": "string"
                            },
                            "to": {
                                "type": "string"
                            },
                            "months": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            }
                        },
                        "required": [
                            "from",
                            "to",
                            "months"
                        ]
                    },
                    "scope": {
                        "type": "string"
                    },
                    "provisional_months": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "missing_months": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "kpis": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ControllingKpiResource"
                        }
                    },
                    "attention": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ControllingAttentionResource"
                        }
                    },
                    "series": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ControllingSeriesPointResource"
                        }
                    },
                    "by_department": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ControllingDepartmentResource"
                        }
                    },
                    "by_cost_center": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ControllingCostCenterResource"
                        }
                    },
                    "cost": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "by_type": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/ControllingCostTypeResource"
                                }
                            },
                            "total_cents": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "previous_total_cents": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "marginal_share": {
                                "type": "object",
                                "properties": {
                                    "amount_cents": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "share_percent": {
                                        "type": [
                                            "number",
                                            "null"
                                        ]
                                    },
                                    "previous_cents": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "previous_share_percent": {
                                        "type": [
                                            "number",
                                            "null"
                                        ]
                                    },
                                    "marginal_count": {
                                        "type": "integer"
                                    },
                                    "exceeded_count": {
                                        "type": "integer"
                                    }
                                },
                                "required": [
                                    "amount_cents",
                                    "share_percent",
                                    "previous_cents",
                                    "previous_share_percent",
                                    "marginal_count",
                                    "exceeded_count"
                                ]
                            },
                            "budget": {
                                "type": "object",
                                "properties": {
                                    "budget_cents": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "deviation_cents": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "deviation_percent": {
                                        "type": [
                                            "number",
                                            "null"
                                        ]
                                    },
                                    "reason": {
                                        "anyOf": [
                                            {
                                                "$ref": "#/components/schemas/ControllingReason"
                                            },
                                            {
                                                "type": "null"
                                            }
                                        ]
                                    }
                                },
                                "required": [
                                    "budget_cents",
                                    "deviation_cents",
                                    "deviation_percent",
                                    "reason"
                                ]
                            },
                            "rate_missing_count": {
                                "type": "integer"
                            },
                            "fte_missing_count": {
                                "type": "integer"
                            },
                            "estimated_count": {
                                "type": "integer"
                            },
                            "employer_rate": {
                                "type": "number"
                            },
                            "employer_rate_marginal": {
                                "type": "number"
                            },
                            "employer_rate_source": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "by_type",
                            "total_cents",
                            "previous_total_cents",
                            "marginal_share",
                            "budget",
                            "rate_missing_count",
                            "fte_missing_count",
                            "estimated_count",
                            "employer_rate",
                            "employer_rate_marginal",
                            "employer_rate_source"
                        ]
                    },
                    "cost_available": {
                        "type": "boolean"
                    },
                    "computed_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "period",
                    "previous_period",
                    "scope",
                    "provisional_months",
                    "missing_months",
                    "kpis",
                    "attention",
                    "series",
                    "by_department",
                    "by_cost_center",
                    "cost",
                    "cost_available",
                    "computed_at"
                ],
                "title": "ControllingOverviewResource"
            },
            "ControllingReason": {
                "type": "string",
                "description": "Why a controlling KPI has no value (OpenSpec personalcontrolling-dashboard, D11). A KPI without sufficient data is delivered as `value: null` with one of these reasons, never as 0.\n| |\n|---|\n| `no_revenue` <br/> Revenue missing or 0 in at least one month of the period. |\n| `no_budget` <br/> Budget missing or 0 in at least one month of the period. |\n| `no_data` <br/> No aggregates, or a denominator is 0 (scheduled days, target time, headcount, FTE). |\n| `missing_months` <br/> At least one month of the period has never been computed. |\n| `partial_scope` <br/> Tenant-wide comparison not available for a person who sees only part of the employees. |",
                "enum": [
                    "no_revenue",
                    "no_budget",
                    "no_data",
                    "missing_months",
                    "partial_scope"
                ],
                "title": "ControllingReason"
            },
            "ControllingRevenueResource": {
                "type": "object",
                "properties": {
                    "year_month": {
                        "type": "string"
                    },
                    "amount_cents": {
                        "type": "integer"
                    },
                    "currency": {
                        "type": "string"
                    }
                },
                "required": [
                    "year_month",
                    "amount_cents",
                    "currency"
                ],
                "title": "ControllingRevenueResource"
            },
            "ControllingSeriesPointResource": {
                "type": "object",
                "properties": {
                    "month": {
                        "type": "string"
                    },
                    "period": {
                        "type": "string"
                    },
                    "computed": {
                        "type": "boolean"
                    },
                    "provisional": {
                        "type": "boolean"
                    },
                    "headcount": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "fte": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "net_ms": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "target_ms": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "illness_days": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "absence_days": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "personnel_cost_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "budget_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "revenue_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "personnel_cost_ratio": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "rate_missing_count": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    }
                },
                "required": [
                    "month",
                    "period",
                    "computed",
                    "provisional",
                    "headcount",
                    "fte",
                    "net_ms",
                    "target_ms",
                    "illness_days",
                    "absence_days",
                    "personnel_cost_cents",
                    "budget_cents",
                    "revenue_cents",
                    "personnel_cost_ratio",
                    "rate_missing_count"
                ],
                "title": "ControllingSeriesPointResource"
            },
            "ControllingSettingsResource": {
                "type": "object",
                "properties": {
                    "targets": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "object",
                            "properties": {
                                "value": {
                                    "type": "number"
                                },
                                "tolerance": {
                                    "type": "number"
                                },
                                "source": {
                                    "type": "string"
                                },
                                "unit": {
                                    "type": "string"
                                },
                                "direction": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "value",
                                "tolerance",
                                "source",
                                "unit",
                                "direction"
                            ]
                        }
                    },
                    "default_tolerance": {
                        "type": "number"
                    },
                    "employer_contribution_rate": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "employer_contribution_rate_marginal": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "employer_contribution_source": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "employer_contribution_marginal_source": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "cost_available": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "targets",
                    "default_tolerance",
                    "employer_contribution_rate",
                    "employer_contribution_rate_marginal",
                    "employer_contribution_source",
                    "employer_contribution_marginal_source",
                    "cost_available"
                ],
                "title": "ControllingSettingsResource"
            },
            "ConvertJobApplicationRequest": {
                "type": "object",
                "description": "Conversion of an application into an employee (OpenSpec add-recruiting, D14, task 9.2):\npersonnel number (unique) and entry date; first and last name default to the application;\n`send_questionnaire` creates a personnel questionnaire sent to the application address when that\nmodule is active (ignored otherwise).",
                "properties": {
                    "reference_no": {
                        "type": "string",
                        "maxLength": 50
                    },
                    "employed_start": {
                        "type": "string",
                        "format": "date"
                    },
                    "first_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "last_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "send_questionnaire": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "reference_no",
                    "employed_start"
                ],
                "title": "ConvertJobApplicationRequest"
            },
            "CostCenterResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "code",
                    "name",
                    "description",
                    "created_at",
                    "updated_at"
                ],
                "title": "CostCenterResource"
            },
            "DatevConnectionResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "berater_nummer": {
                        "type": "string"
                    },
                    "mandanten_nummer": {
                        "type": "string"
                    },
                    "target_system": {
                        "type": "string"
                    },
                    "notification_email": {
                        "type": "string"
                    },
                    "is_verified": {
                        "type": "string"
                    },
                    "last_verified_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "has_valid_token": {
                        "type": "boolean"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "berater_nummer",
                    "mandanten_nummer",
                    "target_system",
                    "notification_email",
                    "is_verified",
                    "last_verified_at",
                    "has_valid_token",
                    "updated_at"
                ],
                "title": "DatevConnectionResource"
            },
            "DatevExportLogResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "job_id": {
                        "type": "string"
                    },
                    "import_file_type": {
                        "type": "string"
                    },
                    "target_system": {
                        "type": "string"
                    },
                    "payroll_accounting_month": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "type": "string"
                    },
                    "transfer": {
                        "type": "string"
                    },
                    "granularity": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "error_message": {
                        "type": "string"
                    },
                    "employee_count": {
                        "type": "string"
                    },
                    "uploaded_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "last_status_check_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "job_id",
                    "import_file_type",
                    "target_system",
                    "payroll_accounting_month",
                    "status",
                    "transfer",
                    "granularity",
                    "error_message",
                    "employee_count",
                    "uploaded_at",
                    "last_status_check_at",
                    "created_at"
                ],
                "title": "DatevExportLogResource"
            },
            "DatevLohnartMappingResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "provider": {
                        "type": "string"
                    },
                    "time_category": {
                        "type": "string"
                    },
                    "absence_type_id": {
                        "type": "string"
                    },
                    "lohnart_nummer": {
                        "type": "string"
                    },
                    "ausfall_schluessel": {
                        "type": "string"
                    },
                    "label": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "provider",
                    "time_category",
                    "absence_type_id",
                    "lohnart_nummer",
                    "ausfall_schluessel",
                    "label"
                ],
                "title": "DatevLohnartMappingResource"
            },
            "DecideLeaveRequestRequest": {
                "type": "object",
                "properties": {
                    "status": {
                        "type": "string",
                        "enum": [
                            "approved",
                            "denied"
                        ]
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    }
                },
                "required": [
                    "status"
                ],
                "title": "DecideLeaveRequestRequest"
            },
            "DepartmentResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "name",
                    "description",
                    "created_at",
                    "updated_at"
                ],
                "title": "DepartmentResource"
            },
            "DlsImportRequest": {
                "type": "object",
                "properties": {
                    "file": {
                        "type": "string",
                        "format": "binary",
                        "contentMediaType": "application/octet-stream",
                        "description": "Maximum file size: 20480 kilobytes."
                    },
                    "update": {
                        "type": "boolean"
                    },
                    "include_departed": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "file"
                ],
                "title": "DlsImportRequest"
            },
            "DocumentFolderResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "system_key": {
                        "type": "string"
                    },
                    "is_default": {
                        "type": "string"
                    },
                    "visible_to_employee": {
                        "type": "string"
                    },
                    "sort_order": {
                        "type": "string"
                    },
                    "document_count": {
                        "type": "integer"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "name",
                    "system_key",
                    "is_default",
                    "visible_to_employee",
                    "sort_order",
                    "created_at",
                    "updated_at"
                ],
                "title": "DocumentFolderResource"
            },
            "DuplicateRosterRequest": {
                "type": "object",
                "description": "Body of POST /rest/rosters/{roster}/duplicate \u2014 the first day of the\nperiod the copy is placed on.",
                "properties": {
                    "period_start": {
                        "type": "string",
                        "format": "date-time"
                    }
                },
                "required": [
                    "period_start"
                ],
                "title": "DuplicateRosterRequest"
            },
            "EauImportBestaetigungsGrund": {
                "type": "string",
                "description": "Warum die \u00dcbernahme eines Datenimports die eAU-Stammdatenbest\u00e4tigung einer Person nicht (neu) gesetzt hat ({@see \\App\\Services\\Eau\\StammdatenImportBestaetigung}, ITSG-Bemerkung 7.2).\n| |\n|---|\n| `field_error` <br/> Eine Zeile der Person hat Feld- oder Zeilenfehler. |\n| `vsnr_confirmation_pending` <br/> Eine VSNR mit Geburtsdatums-Hinweis wartet auf die ausdr\u00fcckliche Einzelbest\u00e4tigung. |\n| `proposals_open` <br/> Ge\u00e4nderte Vorschl\u00e4ge wurden (noch) nicht \u00fcbernommen. |\n| `kasse_manual` <br/> Die Krankenkasse kommt nicht aus dem Lohnprogramm und muss manuell erfasst werden. |\n| `differs_from_import` <br/> Die heute g\u00fcltigen Stammdaten weichen von der Importdatei ab (z. B. manueller Kassenwechsel nach dem Upload). |\n| `newer_import` <br/> Ein j\u00fcngerer Importlauf enth\u00e4lt die Person; ma\u00dfgeblich ist dessen Abgleich. |\n| `already_confirmed` <br/> Die bestehende Best\u00e4tigung ist j\u00fcnger als der Abgleich dieses Laufs und bleibt unver\u00e4ndert. |\n| `not_statutory` <br/> Zum \u00dcbernahmetag nicht gesetzlich krankenversichert: keine eAU, nichts zu best\u00e4tigen. |\n| `incomplete` <br/> F\u00fcr die eAU fehlen Angaben ({@see \\App\\Services\\Eau\\EauStammdatenCheck}). |",
                "enum": [
                    "field_error",
                    "vsnr_confirmation_pending",
                    "proposals_open",
                    "kasse_manual",
                    "differs_from_import",
                    "newer_import",
                    "already_confirmed",
                    "not_statutory",
                    "incomplete"
                ],
                "title": "EauImportBestaetigungsGrund"
            },
            "EauLiveFetchResource": {
                "type": "object",
                "properties": {
                    "kurier_state": {
                        "type": "string",
                        "description": "Zustand des Kurier-Triggers: abgeschlossen, laeuft_weiter, mindestabstand, nicht_verfuegbar, fehler oder uebersprungen."
                    },
                    "kurier_fetched": {
                        "type": "integer"
                    },
                    "requests": {
                        "type": "integer"
                    },
                    "responses": {
                        "type": "integer"
                    },
                    "follow_up_seconds": {
                        "type": "array",
                        "description": "Verz\u00f6gerungen des automatischen Nachlaufs in Sekunden ab dem Aufruf.",
                        "items": {}
                    }
                },
                "required": [
                    "kurier_state",
                    "kurier_fetched",
                    "requests",
                    "responses",
                    "follow_up_seconds"
                ],
                "title": "EauLiveFetchResource"
            },
            "EauLiveTransmitResource": {
                "type": "object",
                "properties": {
                    "request": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/EauRequestResource"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "employee_name",
                                    "confirmed_absence",
                                    "latest_response",
                                    "responses",
                                    "events"
                                ]
                            }
                        ]
                    },
                    "kurier_state": {
                        "type": "string",
                        "description": "Zustand des Kurier-Triggers: abgeschlossen, laeuft_weiter, mindestabstand, nicht_verfuegbar, fehler oder uebersprungen."
                    },
                    "kurier_sent": {
                        "type": "integer"
                    },
                    "kurier_retry_after_seconds": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "status_updates": {
                        "type": "integer"
                    },
                    "follow_up_seconds": {
                        "type": "array",
                        "description": "Verz\u00f6gerungen des automatischen Nachlaufs in Sekunden ab dem Aufruf.",
                        "items": {}
                    }
                },
                "required": [
                    "request",
                    "kurier_state",
                    "kurier_sent",
                    "kurier_retry_after_seconds",
                    "status_updates",
                    "follow_up_seconds"
                ],
                "title": "EauLiveTransmitResource"
            },
            "EauRequestEventResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "event": {
                        "type": "string"
                    },
                    "from_status": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "draft",
                            "validated",
                            "submitted",
                            "sent",
                            "accepted",
                            "interim",
                            "answered",
                            "cancelled",
                            "rejected",
                            "core_check_failed",
                            null
                        ]
                    },
                    "to_status": {
                        "type": "string",
                        "enum": [
                            "draft",
                            "validated",
                            "submitted",
                            "sent",
                            "accepted",
                            "interim",
                            "answered",
                            "cancelled",
                            "rejected",
                            "core_check_failed"
                        ]
                    },
                    "occurred_at": {
                        "type": "string"
                    },
                    "actor_type": {
                        "type": "string"
                    },
                    "actor_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "response_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "response_code": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Kennzeichen und Kasse der ausl\u00f6senden R\u00fcckmeldung (bei response/insurer_cancellation)."
                    },
                    "insurer_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "event",
                    "from_status",
                    "to_status",
                    "occurred_at",
                    "actor_type",
                    "actor_name",
                    "response_id",
                    "response_code",
                    "insurer_name"
                ],
                "title": "EauRequestEventResource"
            },
            "EauRequestResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "employee_name": {
                        "type": "string"
                    },
                    "leave_request_id": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "cancel_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Grund, aus dem die App einen nie gesendeten Entwurf zur\u00fcckgezogen hat: `employment_ended`\n(AU-Beginn nach dem Austritt), sonst null. Dazu das Austrittsdatum der Person."
                    },
                    "employment_end_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "clarification_reasons": {
                        "type": "array",
                        "items": {}
                    },
                    "eau_not_applicable_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Grund, warum f\u00fcr den AU-Beginn keine eAU angefragt werden kann (`insurance_type_not_statutory`:\nzum AU-Beginn nicht gesetzlich versichert); nur bei noch nicht versendeten Entw\u00fcrfen, sonst null."
                    },
                    "health_insurance_company_number": {
                        "type": "string"
                    },
                    "data_acceptance_office_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "absence_start": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "reference": {
                        "type": "string"
                    },
                    "record_id": {
                        "type": "string"
                    },
                    "is_cancellable": {
                        "type": "boolean"
                    },
                    "earliest_send_on": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Fr\u00fchester Versandtag eines noch nicht versendeten Entwurfs (eAU-Abruf-Tag oder Sperrfrist)."
                    },
                    "re_request_possible_from": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Fr\u00fchester Tag einer erneuten Anfrage, solange die Sperrfrist der Vorgangskette greift."
                    },
                    "block_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Sperrgrund: zwischennachricht_4, zwischennachricht_9, zwischennachricht_7, ohne_rueckmeldung, abruf_tag oder abschluss."
                    },
                    "is_re_requestable": {
                        "type": "boolean",
                        "description": "Ob eine Re-Anfrage grunds\u00e4tzlich angeboten wird (vor dem fr\u00fchesten Tag deaktiviert)."
                    },
                    "resubmit_available": {
                        "type": "boolean",
                        "description": "\u201eErneut anfragen\u201c (eau-anfrage-regeln-praezisierung, Entscheidung 3): jetzt verf\u00fcgbar,\nsonst ab wann (Sperrfrist, Wartezeit) und warum (sperrfrist, wartezeit, abschliessend,\nkassenwechsel_noetig). Beides null: keine Aktion anbieten (Entwurf, ersetzt, Storno-Datensatz)."
                    },
                    "resubmit_available_from": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "resubmit_block_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "sperrfrist",
                            "abschliessend",
                            "wartezeit",
                            "kassenwechsel_noetig",
                            "annahme_offen",
                            "stammdaten_bestaetigen",
                            "beschaeftigung_beendet",
                            null
                        ]
                    },
                    "cancelled_request_id": {
                        "type": "string"
                    },
                    "original_record_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Datensatz-ID der stornierten Ursprungsmeldung (nur bei Storno-Datens\u00e4tzen, eau-xml-pruefansicht)."
                    },
                    "chain": {
                        "type": "array",
                        "description": "Vorgang: alle Datens\u00e4tze derselben Person zum selben AU-Beginn (Abfrage, Stornierung, neue\nAbfrage) chronologisch, dazu der Storno-Datensatz, der diese Abfrage storniert.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "kind": {
                                    "type": "string",
                                    "enum": [
                                        "cancellation",
                                        "request"
                                    ]
                                },
                                "status": {
                                    "type": "string"
                                },
                                "record_id": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "created_at": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "sent_at": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "accepted_at": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "cancelled_request_id": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "replaced_request_id": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "is_re_requestable": {
                                    "type": "boolean",
                                    "description": "Re-Anfrage ab diesem Datensatz m\u00f6glich und ab wann (Sperrfrist der Kette), damit die UI den\nSchritt \u201eNeue Abfrage\u201c auch vom Storno-Datensatz aus richtig anbietet."
                                },
                                "re_request_possible_from": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "id",
                                "kind",
                                "status",
                                "record_id",
                                "created_at",
                                "sent_at",
                                "accepted_at",
                                "cancelled_request_id",
                                "replaced_request_id",
                                "is_re_requestable",
                                "re_request_possible_from"
                            ]
                        }
                    },
                    "cancelled_by_request_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "check_errors": {
                        "type": "array",
                        "description": "Pr\u00fcffehler aus Kernpr\u00fcfung/Kurier (`core_check_failed`) oder Annahmestelle (`rejected`):\nCode, betroffenes Stammdatenfeld, Klartext (null bei unbekanntem Code) und Originaltext.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "code": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "field": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "message": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "original_text": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "code",
                                "field",
                                "message",
                                "original_text"
                            ]
                        }
                    },
                    "check_error_source": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Fehlerquelle: KERNPRUEFUNG, SCHEMA, MAPPING, DATUMSGRENZE oder ANNAHMESTELLE."
                    },
                    "is_test_submission": {
                        "type": "boolean"
                    },
                    "replaced_request_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Durch diese Anforderung ersetzte fehlerhafte Anforderung (Neuversand nach Korrektur)."
                    },
                    "replaced_by_request_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Neue Anforderung, die diese nach einem Pr\u00fcffehler ersetzt hat."
                    },
                    "is_resubmittable": {
                        "type": "boolean",
                        "description": "\u201eNach Korrektur erneut senden\" wird angeboten."
                    },
                    "submitted_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "sent_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "snapshot": {
                        "type": "object",
                        "properties": {
                            "first_name": {
                                "type": "string"
                            },
                            "last_name": {
                                "type": "string"
                            },
                            "birth_date": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "birth_name": {
                                "type": "string"
                            },
                            "birth_place": {
                                "type": "string"
                            },
                            "insurance_number": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "first_name",
                            "last_name",
                            "birth_date",
                            "birth_name",
                            "birth_place",
                            "insurance_number"
                        ]
                    },
                    "confirmed_absence": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "from": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "until": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "determined_at": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "recorded_from": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "recorded_until": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "from",
                            "until",
                            "determined_at",
                            "recorded_from",
                            "recorded_until"
                        ]
                    },
                    "latest_response": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "code": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "label": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "is_interim": {
                                "type": "boolean"
                            },
                            "is_cancellation": {
                                "type": "boolean"
                            },
                            "valid": {
                                "type": "boolean"
                            },
                            "nachweis_from": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "nachweis_until": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "nachweis_until_expected": {
                                "type": "boolean"
                            },
                            "received_at": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "invalidated_at": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "insurance_company_number": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "insurance_company_name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "assignment": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "certificate_kind": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "enum": [
                                    "initial",
                                    "follow_up",
                                    null
                                ]
                            },
                            "inpatient_from": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "inpatient_until": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "inpatient_until_estimated": {
                                "type": [
                                    "boolean",
                                    "null"
                                ]
                            },
                            "diagnosed_on": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "work_accident": {
                                "type": [
                                    "boolean",
                                    "null"
                                ]
                            },
                            "accident_physician_assigned": {
                                "type": [
                                    "boolean",
                                    "null"
                                ]
                            },
                            "other_accident": {
                                "type": [
                                    "boolean",
                                    "null"
                                ]
                            },
                            "is_final": {
                                "type": "boolean"
                            },
                            "created_at_insurer": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "next_request_possible_on": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "simulated": {
                                "type": "boolean"
                            },
                            "mock_case": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "mock_case_label": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "id",
                            "code",
                            "label",
                            "is_interim",
                            "is_cancellation",
                            "valid",
                            "nachweis_from",
                            "nachweis_until",
                            "nachweis_until_expected",
                            "received_at",
                            "invalidated_at",
                            "insurance_company_number",
                            "insurance_company_name",
                            "assignment",
                            "certificate_kind",
                            "inpatient_from",
                            "inpatient_until",
                            "inpatient_until_estimated",
                            "diagnosed_on",
                            "work_accident",
                            "accident_physician_assigned",
                            "other_accident",
                            "is_final",
                            "created_at_insurer",
                            "next_request_possible_on",
                            "simulated",
                            "mock_case",
                            "mock_case_label"
                        ]
                    },
                    "responses": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "code": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "label": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "is_interim": {
                                    "type": "boolean"
                                },
                                "is_cancellation": {
                                    "type": "boolean"
                                },
                                "valid": {
                                    "type": "boolean"
                                },
                                "nachweis_from": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "nachweis_until": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "nachweis_until_expected": {
                                    "type": "boolean"
                                },
                                "received_at": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "invalidated_at": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "insurance_company_number": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "insurance_company_name": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "assignment": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "certificate_kind": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "enum": [
                                        "initial",
                                        "follow_up",
                                        null
                                    ]
                                },
                                "inpatient_from": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "inpatient_until": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "inpatient_until_estimated": {
                                    "type": [
                                        "boolean",
                                        "null"
                                    ]
                                },
                                "diagnosed_on": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "work_accident": {
                                    "type": [
                                        "boolean",
                                        "null"
                                    ]
                                },
                                "accident_physician_assigned": {
                                    "type": [
                                        "boolean",
                                        "null"
                                    ]
                                },
                                "other_accident": {
                                    "type": [
                                        "boolean",
                                        "null"
                                    ]
                                },
                                "is_final": {
                                    "type": "boolean"
                                },
                                "created_at_insurer": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "next_request_possible_on": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "simulated": {
                                    "type": "boolean"
                                },
                                "mock_case": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "mock_case_label": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "id",
                                "code",
                                "label",
                                "is_interim",
                                "is_cancellation",
                                "valid",
                                "nachweis_from",
                                "nachweis_until",
                                "nachweis_until_expected",
                                "received_at",
                                "invalidated_at",
                                "insurance_company_number",
                                "insurance_company_name",
                                "assignment",
                                "certificate_kind",
                                "inpatient_from",
                                "inpatient_until",
                                "inpatient_until_estimated",
                                "diagnosed_on",
                                "work_accident",
                                "accident_physician_assigned",
                                "other_accident",
                                "is_final",
                                "created_at_insurer",
                                "next_request_possible_on",
                                "simulated",
                                "mock_case",
                                "mock_case_label"
                            ]
                        }
                    },
                    "planned_send_on": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "eau-vorgangsstatus: fachlich vorgesehenes Abfragedatum (bleibt nach dem Versand),\nAnnahme durch die Datenannahmestelle, Grund einer fehlenden Stornierung\n(final_response, blocking_period_expired, not_sent, cancelled, cancellation_record,\nrejected), offene\nKassen-Stornierung und der Verlauf (nur in der Detailansicht geladen)."
                    },
                    "accepted_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "cancel_block_reason": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "insurer_cancellation_open": {
                        "type": "boolean"
                    },
                    "events": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/EauRequestEventResource"
                        }
                    },
                    "kasse_ist_testkasse": {
                        "type": "boolean",
                        "description": "eau-testsystem: Kasse ist eine ITSG-Testkasse (Pr\u00e4fix 993) und ihr Szenario im Kurier."
                    },
                    "mock_scenario": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "leave_request_id",
                    "status",
                    "cancel_reason",
                    "employment_end_date",
                    "clarification_reasons",
                    "eau_not_applicable_reason",
                    "health_insurance_company_number",
                    "data_acceptance_office_number",
                    "absence_start",
                    "reference",
                    "record_id",
                    "is_cancellable",
                    "earliest_send_on",
                    "re_request_possible_from",
                    "block_reason",
                    "is_re_requestable",
                    "resubmit_available",
                    "resubmit_available_from",
                    "resubmit_block_reason",
                    "cancelled_request_id",
                    "original_record_id",
                    "chain",
                    "cancelled_by_request_id",
                    "check_errors",
                    "check_error_source",
                    "is_test_submission",
                    "replaced_request_id",
                    "replaced_by_request_id",
                    "is_resubmittable",
                    "submitted_at",
                    "sent_at",
                    "created_at",
                    "snapshot",
                    "planned_send_on",
                    "accepted_at",
                    "cancel_block_reason",
                    "insurer_cancellation_open",
                    "kasse_ist_testkasse",
                    "mock_scenario"
                ],
                "title": "EauRequestResource"
            },
            "EauRequestStatus": {
                "type": "string",
                "description": "Zustand einer eAU-Anforderung im Lebenszyklus (Pflichtenheft Kat. 04, add-eau Design D3). `Draft` \u2192 `Validated` \u2192 `Submitted` \u2192 `Sent` \u2192 `Accepted` \u2192 (`Interim` \u2192) `Answered` | `Cancelled` | `Rejected`. Aus `Submitted` endet ein Datensatz, den Kurier vor dem Versand ausschlie\u00dft (Kernpr\u00fcfung, Schema, Mapping, Datumsgrenze), in `CoreCheckFailed`; eine Abweisung der Annahmestelle in `Rejected`. Die konkrete Zwischennachricht (Kennzeichen 4/7/9) wird an der zugeh\u00f6rigen R\u00fcckmeldung festgehalten, nicht als eigener Status.\n| |\n|---|\n| `draft` <br/> Erfasst, aber nicht versandbereit (noch nicht gepr\u00fcft oder Kl\u00e4rfall mit `klaerung_gruende`). |\n| `validated` <br/> Zul\u00e4ssigkeit + fr\u00fcheste Versandfrist gepr\u00fcft, versandbereit. |\n| `submitted` <br/> Vom Meldecenter (Kurier) angenommen, aber noch nicht an den Kommunikationsserver \u00fcbertragen. |\n| `sent` <br/> Beim Kommunikationsserver angekommen (Kurier-Status `GESENDET`). |\n| `accepted` <br/> Positives Verarbeitungsergebnis der Datenannahmestelle (Kurier-Status `BESTAETIGT`): die Datei wurde fehlerfrei angenommen, die R\u00fcckmeldung der Kasse steht aus (`eau-vorgangsstatus`). |\n| `interim` <br/> Vorl\u00e4ufige R\u00fcckmeldung erhalten (Kennzeichen 4/7/9); weitere R\u00fcckmeldung wird erwartet. |\n| `answered` <br/> Fachliche R\u00fcckmeldung liegt vor. |\n| `cancelled` <br/> Vom Anwender storniert. |\n| `rejected` <br/> Von der Datenannahmestelle abgewiesen (Kurier `ABGEWIESEN` mit Quelle `ANNAHMESTELLE`). |\n| `core_check_failed` <br/> Von Kurier vor dem Versand ausgeschlossen: Kernpr\u00fcfung, Schemapr\u00fcfung, Mapping oder Datumsgrenze (`kurier-kernpruefung-versand` Entscheidung 8). Nie bei der Kasse angekommen, daher ohne Wiederholsperre korrigiert neu versendbar. |",
                "enum": [
                    "draft",
                    "validated",
                    "submitted",
                    "sent",
                    "accepted",
                    "interim",
                    "answered",
                    "cancelled",
                    "rejected",
                    "core_check_failed"
                ],
                "title": "EauRequestStatus"
            },
            "EauResponseResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "eau_request_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "record_id": {
                        "type": "string"
                    },
                    "reference_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "code": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "label": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "is_interim": {
                        "type": "boolean"
                    },
                    "is_cancellation": {
                        "type": "boolean"
                    },
                    "valid": {
                        "type": "boolean"
                    },
                    "insurance_company_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "insurance_company_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "assignment": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "assignment_reason": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "file_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "insurance_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "absence_start": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "nachweis_from": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "nachweis_until": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at_insurer": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "received_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "invalidated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "certificate_kind": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "eau-vorgangsstatus: Erst-/Folgebescheinigung, station\u00e4r, Feststellungsdatum, Abschluss.",
                        "enum": [
                            "initial",
                            "follow_up",
                            null
                        ]
                    },
                    "inpatient_from": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "inpatient_until": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "inpatient_until_estimated": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "diagnosed_on": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "work_accident": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "accident_physician_assigned": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "other_accident": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "is_final": {
                        "type": "boolean"
                    },
                    "next_request_possible_on": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "simulated": {
                        "type": "boolean",
                        "description": "eau-testsystem: Antwort der simulierten Annahmestelle, Szenario/Variante und Kl\u00e4rungsgrund."
                    },
                    "mock_case": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "mock_case_label": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "klaerung_grund": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "eau_request_id",
                    "record_id",
                    "reference_id",
                    "code",
                    "label",
                    "is_interim",
                    "is_cancellation",
                    "valid",
                    "insurance_company_number",
                    "insurance_company_name",
                    "assignment",
                    "assignment_reason",
                    "file_number",
                    "insurance_number",
                    "absence_start",
                    "nachweis_from",
                    "nachweis_until",
                    "created_at_insurer",
                    "received_at",
                    "invalidated_at",
                    "certificate_kind",
                    "inpatient_from",
                    "inpatient_until",
                    "inpatient_until_estimated",
                    "diagnosed_on",
                    "work_accident",
                    "accident_physician_assigned",
                    "other_accident",
                    "is_final",
                    "next_request_possible_on",
                    "simulated",
                    "mock_case",
                    "mock_case_label",
                    "klaerung_grund"
                ],
                "title": "EauResponseResource"
            },
            "EauRetrievalRule": {
                "type": "string",
                "description": "Regel f\u00fcr den fr\u00fchesten eAU-Abruftag je Arbeitgeber (Firmenstammdaten \u201eeAU-Abruf-Tag\"). - `Statutory`: gesetzliche Regelung, fr\u00fchester Abruf am 5. Kalendertag der AU   (Feststellung sp\u00e4testens am 4. Kalendertag, \u00a7 5 Abs. 1 Satz 2 und Abs. 1a EntgFG). - `FromDay`: Arbeitgeber verlangt den Nachweis fr\u00fcher (\u00a7 5 Abs. 1 Satz 3 EntgFG), Abruf ab   Kalendertag `eau_retrieval_day` (2 bis 4).\n",
                "enum": [
                    "statutory",
                    "from_day"
                ],
                "title": "EauRetrievalRule"
            },
            "EauStammdatenBestaetigungsHerkunft": {
                "type": "string",
                "description": "Herkunft der eAU-Stammdatenbest\u00e4tigung (`employee_payroll_data.stammdaten_confirmed_source`). ITSG-Systemberatung 05.11.2026 (Bericht 106908 Bemerkung 7.2, Kriterium 00/2): Der Datenimport aus dem Lohnprogramm ist der Stammdatenabgleich und startet die Sechs-Monats-Frist neu.\n| |\n|---|\n| `manual` <br/> Aktion \u201eStammdaten best\u00e4tigen\u201c in der Personalakte (auch Altbestand vor Einf\u00fchrung der Herkunft). |\n| `import` <br/> \u00dcbernahme eines Datenimports aus dem Lohnprogramm ohne Feldfehler und ohne offene Angaben. |",
                "enum": [
                    "manual",
                    "import"
                ],
                "title": "EauStammdatenBestaetigungsHerkunft"
            },
            "EauStammdatenBestaetigungsStatus": {
                "type": "string",
                "description": "Stand der eAU-Stammdatenbest\u00e4tigung einer Person gemessen an der Sechs-Monats-Frist (ITSG-Systemberatung, Bericht 106908 Bemerkung 7.2). `expired` sperrt den eAU-Versand, bis erneut best\u00e4tigt wird; `expiring` k\u00fcndigt das rechtzeitig an.\n| |\n|---|\n| `missing` <br/> Noch nie best\u00e4tigt oder Best\u00e4tigung durch \u00c4nderung an KV-Art/Kasse zur\u00fcckgesetzt. |\n| `valid` <br/> Best\u00e4tigt, mehr als die Warnschwelle bis zum Fristende. |\n| `expiring` <br/> Best\u00e4tigt, Fristende liegt innerhalb der Warnschwelle (Fristende-Tag eingeschlossen). |\n| `expired` <br/> Fristende liegt in der Vergangenheit: eAU-Abfragen werden erst nach erneuter Best\u00e4tigung gesendet. |",
                "enum": [
                    "missing",
                    "valid",
                    "expiring",
                    "expired"
                ],
                "title": "EauStammdatenBestaetigungsStatus"
            },
            "EauStammdatenImportResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "filename": {
                        "type": "string"
                    },
                    "format": {
                        "type": "string"
                    },
                    "file_type": {
                        "type": "string"
                    },
                    "row_count": {
                        "type": "integer"
                    },
                    "counts": {
                        "type": "object",
                        "properties": {
                            "applied": {
                                "type": "integer"
                            },
                            "hint": {
                                "type": "integer"
                            },
                            "field_error": {
                                "type": "integer"
                            },
                            "row_error": {
                                "type": "integer"
                            },
                            "new": {
                                "type": "integer",
                                "description": "Zeilen mit unbekannter Personalnummer, die die \u00dcbernahme neu anlegt (ITSG 00/2)"
                            }
                        },
                        "required": [
                            "applied",
                            "hint",
                            "field_error",
                            "row_error",
                            "new"
                        ]
                    },
                    "ignored_columns": {
                        "type": "array",
                        "items": {}
                    },
                    "applied_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_by": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "rows": {
                        "type": "array",
                        "description": "Always present (empty for list views) so the OpenAPI schema stays a plain typed array.",
                        "items": {}
                    }
                },
                "required": [
                    "id",
                    "filename",
                    "format",
                    "file_type",
                    "row_count",
                    "counts",
                    "ignored_columns",
                    "applied_at",
                    "created_at",
                    "created_by",
                    "rows"
                ],
                "title": "EauStammdatenImportResource"
            },
            "EmployeeAvailabilityResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "date": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "shift_id": {
                        "type": "string"
                    },
                    "note": {
                        "type": "string"
                    },
                    "weight": {
                        "type": "integer"
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "date",
                    "type",
                    "shift_id",
                    "note",
                    "weight"
                ],
                "title": "EmployeeAvailabilityResource"
            },
            "EmployeeCapitalFormationContractResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "recipient": {
                        "type": "string"
                    },
                    "contract_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "since": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "iban": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "bic": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "amount": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "employer_share": {
                        "type": [
                            "number",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "recipient",
                    "contract_number",
                    "since",
                    "iban",
                    "bic",
                    "amount",
                    "employer_share"
                ],
                "title": "EmployeeCapitalFormationContractResource"
            },
            "EmployeeChildResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "surname": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "first_name": {
                        "type": "string"
                    },
                    "birth_date": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "surname",
                    "first_name",
                    "birth_date"
                ],
                "title": "EmployeeChildResource"
            },
            "EmployeeCompensationResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "compensation_type": {
                        "$ref": "#/components/schemas/CompensationTypeResource"
                    },
                    "compensation_type_id": {
                        "type": "string"
                    },
                    "value": {
                        "type": "number"
                    },
                    "currency": {
                        "type": "string"
                    },
                    "effective_from": {
                        "type": "string"
                    },
                    "interval": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "weekly_working_hours": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "full_time_weekly_working_hours": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "suggested_weekly_hours": {},
                    "hours_mismatch": {},
                    "schedule_model_weekly_hours": {},
                    "comment": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "compensation_type_id",
                    "value",
                    "currency",
                    "effective_from",
                    "interval",
                    "weekly_working_hours",
                    "full_time_weekly_working_hours",
                    "comment",
                    "created_at",
                    "updated_at"
                ],
                "title": "EmployeeCompensationResource"
            },
            "EmployeeDocumentResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "folder_id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "original_filename": {
                        "type": "string"
                    },
                    "mime_type": {
                        "type": "string"
                    },
                    "size_bytes": {
                        "type": "string"
                    },
                    "visible_to_employee": {
                        "type": "string"
                    },
                    "restricted": {
                        "type": "boolean",
                        "description": "Payroll-sensitive document: list, preview and download additionally need payroll:manage"
                    },
                    "source_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Process that generated the document (e.g. `employment_certificate`): such documents\ncannot be renamed, moved or deleted through the personnel file"
                    },
                    "uploaded_by": {
                        "type": "string"
                    },
                    "uploaded_by_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "folder_id",
                    "name",
                    "original_filename",
                    "mime_type",
                    "size_bytes",
                    "visible_to_employee",
                    "restricted",
                    "source_type",
                    "uploaded_by",
                    "created_at",
                    "updated_at"
                ],
                "title": "EmployeeDocumentResource"
            },
            "EmployeeEstablishmentHistoryResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "establishment_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "is_main_bbnr": {
                        "type": "boolean"
                    },
                    "valid_after": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "establishment_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "establishment_bbnr": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "establishment_city": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "establishment_archived": {
                        "type": "boolean"
                    },
                    "source": {
                        "type": "string"
                    },
                    "location": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "id",
                            "name"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "establishment_id",
                    "is_main_bbnr",
                    "valid_after",
                    "establishment_name",
                    "establishment_bbnr",
                    "establishment_city",
                    "establishment_archived",
                    "source",
                    "location",
                    "created_at"
                ],
                "title": "EmployeeEstablishmentHistoryResource"
            },
            "EmployeeInsuranceHistoryResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "valid_after": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "insurance_type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "kasse_bbnr": {
                        "type": "string"
                    },
                    "collection_agency_bbnr": {
                        "type": "string"
                    },
                    "source": {
                        "type": "string",
                        "description": "`manual` oder `employment_end` (automatischer Abschlusseintrag ab Austritt plus 1 Tag)."
                    },
                    "after_employment_end": {
                        "type": "boolean",
                        "description": "Hinweis (keine Sperre): gepflegter Eintrag ab einem Tag nach dem Austritt, ohne Wiedereintritt."
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "valid_after",
                    "insurance_type",
                    "kasse_bbnr",
                    "collection_agency_bbnr",
                    "source",
                    "after_employment_end",
                    "created_at"
                ],
                "title": "EmployeeInsuranceHistoryResource"
            },
            "EmployeeMoodResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "date": {
                        "type": "string"
                    },
                    "rating": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "date",
                    "rating",
                    "created_at",
                    "updated_at"
                ],
                "title": "EmployeeMoodResource"
            },
            "EmployeeOtherEmploymentResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "from": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "to": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "employer": {
                        "type": "string"
                    },
                    "activity": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "weekly_hours": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "kind": {
                        "$ref": "#/components/schemas/OtherEmploymentKind"
                    },
                    "monthly_pay": {
                        "type": [
                            "number",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "from",
                    "to",
                    "employer",
                    "activity",
                    "weekly_hours",
                    "kind",
                    "monthly_pay"
                ],
                "title": "EmployeeOtherEmploymentResource"
            },
            "EmployeePayrollDataResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "birth_name": {
                        "type": "string",
                        "description": "Personal"
                    },
                    "sv_first_name": {
                        "type": "string"
                    },
                    "sv_last_name": {
                        "type": "string"
                    },
                    "name_prefix": {
                        "type": "string"
                    },
                    "name_suffix": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "street": {
                        "type": "string"
                    },
                    "postal_code": {
                        "type": "string"
                    },
                    "city": {
                        "type": "string"
                    },
                    "address_affix": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "address_country": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "ISO-3166-Alpha-2; leer bedeutet Deutschland."
                    },
                    "birth_date": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Alias aus employees.birthday (einzige Quelle), bleibt f\u00fcr Mobile/Desktop im Payload."
                    },
                    "birth_place": {
                        "type": "string"
                    },
                    "nationality": {
                        "type": "string"
                    },
                    "birth_country": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "severely_disabled": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Besondere Kategorie (Art. 9 DSGVO), null = keine Angabe."
                    },
                    "gender": {
                        "anyOf": [
                            {
                                "description": "Alias: SV-Kennzeichen (m/f/d/x) abgeleitet aus employees.gender.",
                                "$ref": "#/components/schemas/PayrollGender"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "marital_status": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "tax_id": {
                        "type": "string",
                        "description": "Tax"
                    },
                    "tax_class": {
                        "type": "string"
                    },
                    "tax_factor": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "religion": {
                        "type": "string"
                    },
                    "spouse_religion": {
                        "type": "string"
                    },
                    "number_of_children": {
                        "type": "string"
                    },
                    "child_tax_allowance": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "pension_obligation": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "flat_rate_taxation": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/FlatRateTaxation"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "flat_rate_passed_on": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "insurance_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Health insurance"
                    },
                    "employment_type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "health_insurance_name": {
                        "type": "string"
                    },
                    "health_insurance_number": {
                        "type": "string"
                    },
                    "health_insurance_company_number": {
                        "type": "string"
                    },
                    "health_insurance_member_number": {
                        "type": "string"
                    },
                    "pkv_provider": {
                        "type": "string"
                    },
                    "pkv_monthly_premium": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "pkv_subsidy_requested": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "contribution_groups": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "uv_hazard_tariff": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "rv_exemption_existing": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "rv_exemption_requested": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "rv_exemption_received_on": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "pension_insurance_number": {
                        "type": "string",
                        "description": "Pension"
                    },
                    "vsnr_birthdate_confirmed_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "vsnr_hints": {
                        "anyOf": [
                            {
                                "type": "array",
                                "prefixItems": [
                                    {
                                        "type": "object",
                                        "properties": {
                                            "code": {
                                                "type": "string",
                                                "const": "birthdate_mismatch"
                                            },
                                            "message": {
                                                "type": "string"
                                            },
                                            "confirmed": {
                                                "type": "boolean"
                                            }
                                        },
                                        "required": [
                                            "code",
                                            "message",
                                            "confirmed"
                                        ]
                                    }
                                ],
                                "minItems": 1,
                                "maxItems": 1
                            },
                            {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                },
                                "minItems": 0,
                                "maxItems": 0
                            }
                        ]
                    },
                    "pension_fund": {
                        "type": "string"
                    },
                    "pension_fund_member_number": {
                        "type": "string"
                    },
                    "social_fund": {
                        "type": "string",
                        "description": "Social fund"
                    },
                    "social_fund_employee_number": {
                        "type": "string"
                    },
                    "outpatient_care": {
                        "type": "string",
                        "description": "Employment"
                    },
                    "lbnr": {
                        "type": "string"
                    },
                    "job_title": {
                        "type": "string"
                    },
                    "profession": {
                        "type": "string"
                    },
                    "education_level": {
                        "type": "string",
                        "description": "Veraltet (ersetzt durch school_degree/vocational_training), nur noch lesend."
                    },
                    "school_degree": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/SchoolDegree"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "vocational_training": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/VocationalTraining"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "training_start": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "training_end_expected": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "first_entry_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "is_secondary_employment": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "construction_industry_since": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "probation_months": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "status_at_start": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/EmploymentStatusAtStart"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "status_at_start_other": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status_at_start_flags": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/EmploymentStatusFlag"
                        }
                    },
                    "contract_type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/ContractType"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "fixed_term_written": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "fixed_term_purpose": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "contract_signed_on": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "is_shareholder": {
                        "type": "string",
                        "description": "Special"
                    },
                    "is_student": {
                        "type": "string"
                    },
                    "multiple_employment": {
                        "type": "string"
                    },
                    "other_employment_limit_kept": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "disability_degree": {
                        "type": "string"
                    },
                    "bank_account_holder": {
                        "type": "string",
                        "description": "Bank"
                    },
                    "iban": {
                        "type": "string"
                    },
                    "bic": {
                        "type": "string"
                    },
                    "payment_method": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/PaymentMethod"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "children": {
                        "type": "array",
                        "description": "Listen (Personalfragebogen Abschnitte 11 bis 14)",
                        "items": {
                            "$ref": "#/components/schemas/EmployeeChildResource"
                        }
                    },
                    "capital_formation_contracts": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/EmployeeCapitalFormationContractResource"
                        }
                    },
                    "previous_employments": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/EmployeePreviousEmploymentResource"
                        }
                    },
                    "other_employments": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/EmployeeOtherEmploymentResource"
                        }
                    },
                    "stammdaten_confirmed_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "eAU Stammdaten-Best\u00e4tigung"
                    },
                    "stammdaten_confirmed_by": {
                        "type": "string"
                    },
                    "stammdaten_confirmed_until": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "stammdaten_confirmation_state": {
                        "$ref": "#/components/schemas/EauStammdatenBestaetigungsStatus"
                    },
                    "stammdaten_confirmed_source": {
                        "anyOf": [
                            {
                                "description": "Herkunft der Best\u00e4tigung (`manual` | `import`, ITSG 7.2), null ohne Best\u00e4tigung\n| |\n|---|\n| `manual` <br/> Aktion \u201eStammdaten best\u00e4tigen\u201c in der Personalakte (auch Altbestand vor Einf\u00fchrung der Herkunft). |\n| `import` <br/> \u00dcbernahme eines Datenimports aus dem Lohnprogramm ohne Feldfehler und ohne offene Angaben. |",
                                "$ref": "#/components/schemas/EauStammdatenBestaetigungsHerkunft"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "birth_name",
                    "sv_first_name",
                    "sv_last_name",
                    "name_prefix",
                    "name_suffix",
                    "title",
                    "street",
                    "postal_code",
                    "city",
                    "address_affix",
                    "address_country",
                    "birth_date",
                    "birth_place",
                    "nationality",
                    "birth_country",
                    "severely_disabled",
                    "gender",
                    "marital_status",
                    "tax_id",
                    "tax_class",
                    "tax_factor",
                    "religion",
                    "spouse_religion",
                    "number_of_children",
                    "child_tax_allowance",
                    "pension_obligation",
                    "flat_rate_taxation",
                    "flat_rate_passed_on",
                    "insurance_type",
                    "employment_type",
                    "health_insurance_name",
                    "health_insurance_number",
                    "health_insurance_company_number",
                    "health_insurance_member_number",
                    "pkv_provider",
                    "pkv_monthly_premium",
                    "pkv_subsidy_requested",
                    "contribution_groups",
                    "uv_hazard_tariff",
                    "rv_exemption_existing",
                    "rv_exemption_requested",
                    "rv_exemption_received_on",
                    "pension_insurance_number",
                    "vsnr_birthdate_confirmed_at",
                    "vsnr_hints",
                    "pension_fund",
                    "pension_fund_member_number",
                    "social_fund",
                    "social_fund_employee_number",
                    "outpatient_care",
                    "lbnr",
                    "job_title",
                    "profession",
                    "education_level",
                    "school_degree",
                    "vocational_training",
                    "training_start",
                    "training_end_expected",
                    "first_entry_date",
                    "is_secondary_employment",
                    "construction_industry_since",
                    "probation_months",
                    "status_at_start",
                    "status_at_start_other",
                    "status_at_start_flags",
                    "contract_type",
                    "fixed_term_written",
                    "fixed_term_purpose",
                    "contract_signed_on",
                    "is_shareholder",
                    "is_student",
                    "multiple_employment",
                    "other_employment_limit_kept",
                    "disability_degree",
                    "bank_account_holder",
                    "iban",
                    "bic",
                    "payment_method",
                    "children",
                    "capital_formation_contracts",
                    "previous_employments",
                    "other_employments",
                    "stammdaten_confirmed_at",
                    "stammdaten_confirmed_by",
                    "stammdaten_confirmed_until",
                    "stammdaten_confirmation_state",
                    "stammdaten_confirmed_source",
                    "updated_at"
                ],
                "title": "EmployeePayrollDataResource"
            },
            "EmployeePreviousEmploymentResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "from": {
                        "type": "string"
                    },
                    "to": {
                        "type": "string"
                    },
                    "kind": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "days": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "from",
                    "to",
                    "kind",
                    "days"
                ],
                "title": "EmployeePreviousEmploymentResource"
            },
            "EmployeeResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "surname": {
                        "type": "string"
                    },
                    "gender": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/Gender"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "birthday": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "working_hours": {
                        "type": "string"
                    },
                    "vacation_days": {
                        "type": "number"
                    },
                    "employed_start": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "employed_end": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "employment_status": {
                        "$ref": "#/components/schemas/EmploymentStatus"
                    },
                    "unit": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/UnitResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "location": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/LocationResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "department": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/DepartmentResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "cost_center": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/CostCenterResource"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "position": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "avatar_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "locale": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/Locale"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "private_email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "emergency_contact_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "emergency_contact_relation": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "emergency_contact_phone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "role": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "role_display_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "uses_projects": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "reference_no": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "salary_type_work": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "salary_type_overtime": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "include_in_export": {
                        "type": "boolean"
                    },
                    "time_account_enabled": {
                        "type": "boolean"
                    },
                    "weekly_hours_limit": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "holiday_auto_compensation": {
                        "type": "boolean"
                    },
                    "latest_overtime_account": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "year_month": {
                                "type": "string"
                            },
                            "balance_ms": {
                                "type": "string"
                            },
                            "earned_ms": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "year_month",
                            "balance_ms",
                            "earned_ms"
                        ]
                    },
                    "work_area_ids": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "onboarding_pending": {
                        "type": "boolean",
                        "description": "Personalfragebogen offen (D13/D15): Hinweis in Liste und Detailseite, kein Exportausschluss"
                    },
                    "onboarding": {
                        "type": "object",
                        "properties": {
                            "has_reference_no": {
                                "type": "boolean"
                            },
                            "has_email": {
                                "type": "boolean"
                            },
                            "has_schedule_model": {
                                "type": "boolean"
                            },
                            "has_holiday_calendar": {
                                "type": "boolean"
                            },
                            "has_payroll_data": {
                                "type": "boolean"
                            },
                            "personnel_questionnaire": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "properties": {
                                    "id": {
                                        "type": "string"
                                    },
                                    "status": {
                                        "$ref": "#/components/schemas/PersonnelQuestionnaireStatus"
                                    },
                                    "link_expired": {
                                        "type": "boolean"
                                    }
                                },
                                "required": [
                                    "id",
                                    "status",
                                    "link_expired"
                                ]
                            }
                        },
                        "required": [
                            "has_reference_no",
                            "has_email",
                            "has_schedule_model",
                            "has_holiday_calendar",
                            "has_payroll_data",
                            "personnel_questionnaire"
                        ]
                    },
                    "has_exports": {
                        "type": "boolean"
                    },
                    "employment_periods": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/EmploymentPeriodResource"
                        }
                    },
                    "reference_no_history": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ReferenceNoHistoryResource"
                        }
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "code",
                    "name",
                    "surname",
                    "gender",
                    "birthday",
                    "working_hours",
                    "vacation_days",
                    "employed_start",
                    "employed_end",
                    "employment_status",
                    "position",
                    "avatar_url",
                    "private_email",
                    "phone",
                    "emergency_contact_name",
                    "emergency_contact_relation",
                    "emergency_contact_phone",
                    "active",
                    "uses_projects",
                    "reference_no",
                    "salary_type_work",
                    "salary_type_overtime",
                    "include_in_export",
                    "time_account_enabled",
                    "weekly_hours_limit",
                    "holiday_auto_compensation",
                    "latest_overtime_account",
                    "onboarding_pending",
                    "created_at",
                    "updated_at"
                ],
                "title": "EmployeeResource"
            },
            "EmployeeSkillResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "skill_id": {
                        "type": "string"
                    },
                    "skill": {
                        "$ref": "#/components/schemas/SkillResource"
                    },
                    "level": {
                        "type": "string"
                    },
                    "valid_from": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "valid_until": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "proof_reference": {
                        "type": "string"
                    },
                    "note": {
                        "type": "string"
                    },
                    "is_expired": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "skill_id",
                    "level",
                    "valid_from",
                    "valid_until",
                    "proof_reference",
                    "note",
                    "is_expired"
                ],
                "title": "EmployeeSkillResource"
            },
            "EmploymentCertificateDraftResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "employment_period_id": {
                        "type": "string"
                    },
                    "type": {
                        "$ref": "#/components/schemas/EmploymentCertificateType"
                    },
                    "status": {
                        "$ref": "#/components/schemas/EmploymentCertificateStatus"
                    },
                    "version": {
                        "type": "integer"
                    },
                    "supersedes_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "requested_by": {
                        "$ref": "#/components/schemas/CertificateRequester"
                    },
                    "request_options": {
                        "type": "object",
                        "properties": {
                            "earnings_24_months": {
                                "type": "boolean"
                            },
                            "period_from": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "period_to": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "earnings_24_months",
                            "period_from",
                            "period_to"
                        ]
                    },
                    "schema_version": {
                        "type": "string"
                    },
                    "document_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "file_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "issued_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "issued_by": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "id",
                            "name"
                        ]
                    },
                    "cancelled_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "cancel_reason": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": "string"
                    },
                    "updated_at": {
                        "type": "string"
                    },
                    "draft": {
                        "type": "object",
                        "properties": {
                            "schema_version": {
                                "type": "string"
                            },
                            "fields": {
                                "type": "object",
                                "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                        "key": {
                                            "type": "string"
                                        },
                                        "value": {},
                                        "origin": {
                                            "type": "string"
                                        },
                                        "source": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "original_value": {}
                                    },
                                    "required": [
                                        "key",
                                        "value",
                                        "origin",
                                        "source",
                                        "original_value"
                                    ]
                                }
                            },
                            "messages": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "key": {
                                            "type": "string"
                                        },
                                        "severity": {
                                            "type": "string"
                                        },
                                        "message": {
                                            "type": "string"
                                        },
                                        "link": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "key",
                                        "severity",
                                        "message",
                                        "link"
                                    ]
                                }
                            },
                            "has_errors": {
                                "type": "boolean"
                            }
                        },
                        "required": [
                            "schema_version",
                            "fields",
                            "messages",
                            "has_errors"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "employment_period_id",
                    "type",
                    "status",
                    "version",
                    "supersedes_id",
                    "requested_by",
                    "request_options",
                    "schema_version",
                    "document_id",
                    "file_name",
                    "issued_at",
                    "issued_by",
                    "cancelled_at",
                    "cancel_reason",
                    "created_at",
                    "updated_at",
                    "draft"
                ],
                "title": "EmploymentCertificateDraftResource"
            },
            "EmploymentCertificateResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "employment_period_id": {
                        "type": "string"
                    },
                    "type": {
                        "$ref": "#/components/schemas/EmploymentCertificateType"
                    },
                    "status": {
                        "$ref": "#/components/schemas/EmploymentCertificateStatus"
                    },
                    "version": {
                        "type": "integer"
                    },
                    "supersedes_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "requested_by": {
                        "$ref": "#/components/schemas/CertificateRequester"
                    },
                    "request_options": {
                        "type": "object",
                        "properties": {
                            "earnings_24_months": {
                                "type": "boolean"
                            },
                            "period_from": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "period_to": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "earnings_24_months",
                            "period_from",
                            "period_to"
                        ]
                    },
                    "schema_version": {
                        "type": "string"
                    },
                    "document_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "file_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "issued_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "issued_by": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "id",
                            "name"
                        ]
                    },
                    "cancelled_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "cancel_reason": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": "string"
                    },
                    "updated_at": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "employment_period_id",
                    "type",
                    "status",
                    "version",
                    "supersedes_id",
                    "requested_by",
                    "request_options",
                    "schema_version",
                    "document_id",
                    "file_name",
                    "issued_at",
                    "issued_by",
                    "cancelled_at",
                    "cancel_reason",
                    "created_at",
                    "updated_at"
                ],
                "title": "EmploymentCertificateResource"
            },
            "EmploymentCertificateSchemaResource": {
                "type": "object",
                "properties": {
                    "version": {
                        "type": "string"
                    },
                    "sections": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "code": {
                                    "type": "string"
                                },
                                "title": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "code",
                                "title"
                            ]
                        }
                    },
                    "fields": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "key": {
                                    "type": "string"
                                },
                                "ziffern": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                },
                                "section": {
                                    "type": "string"
                                },
                                "label": {
                                    "type": "string"
                                },
                                "type": {
                                    "type": "string"
                                },
                                "origin": {
                                    "type": "string"
                                },
                                "source": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "required": {
                                    "anyOf": [
                                        {
                                            "type": "boolean"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "field": {
                                                    "type": "string"
                                                },
                                                "in": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": [
                                                            "string",
                                                            "boolean"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "field",
                                                "in"
                                            ]
                                        }
                                    ]
                                },
                                "skip_rule": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "properties": {
                                        "when": {
                                            "type": "string"
                                        },
                                        "equals": {
                                            "type": [
                                                "string",
                                                "boolean"
                                            ]
                                        },
                                        "skipTo": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "when",
                                        "equals",
                                        "skipTo"
                                    ]
                                },
                                "visible_when": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "properties": {
                                        "field": {
                                            "type": "string"
                                        },
                                        "in": {
                                            "type": "array",
                                            "items": {
                                                "type": [
                                                    "string",
                                                    "boolean"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "field",
                                        "in"
                                    ]
                                },
                                "default": {},
                                "options": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                },
                                "multiple": {
                                    "type": "boolean"
                                },
                                "columns": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "key": {
                                                "type": "string"
                                            },
                                            "label": {
                                                "type": "string"
                                            },
                                            "type": {
                                                "type": "string"
                                            },
                                            "options": {
                                                "type": [
                                                    "array",
                                                    "null"
                                                ],
                                                "items": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "required": [
                                            "key",
                                            "label",
                                            "type",
                                            "options"
                                        ]
                                    }
                                },
                                "hint": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "key",
                                "ziffern",
                                "section",
                                "label",
                                "type",
                                "origin",
                                "source",
                                "required",
                                "skip_rule",
                                "visible_when",
                                "default",
                                "options",
                                "multiple",
                                "columns",
                                "hint"
                            ]
                        }
                    }
                },
                "required": [
                    "version",
                    "sections",
                    "fields"
                ],
                "title": "EmploymentCertificateSchemaResource"
            },
            "EmploymentCertificateStatus": {
                "type": "string",
                "description": "Lifecycle of an employment certificate, `employment_certificates.status`.\n",
                "enum": [
                    "draft",
                    "issued",
                    "superseded",
                    "cancelled"
                ],
                "title": "EmploymentCertificateStatus"
            },
            "EmploymentCertificateType": {
                "type": "string",
                "description": "Type of an employment certificate (Arbeitsbescheinigung), `employment_certificates.type`.\n",
                "enum": [
                    "sgb3_312",
                    "sgb3_312a"
                ],
                "title": "EmploymentCertificateType"
            },
            "EmploymentEndReason": {
                "type": "string",
                "description": "Grund f\u00fcr das Ende eines Besch\u00e4ftigungszeitraums (`employment_periods.end_reason`). `Deleted` setzt nur die DSGVO-L\u00f6schung ({@see \\App\\Services\\EmployeeService::delete()}); \u00fcber die Austritts-Route ist er nicht w\u00e4hlbar.\n",
                "enum": [
                    "resignation",
                    "termination",
                    "mutual",
                    "fixed_term",
                    "retirement",
                    "death",
                    "deleted",
                    "other"
                ],
                "title": "EmploymentEndReason"
            },
            "EmploymentPeriodResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "started_on": {
                        "type": "string"
                    },
                    "ended_on": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "end_reason": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/EmploymentEndReason"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "started_on",
                    "ended_on",
                    "end_reason",
                    "note"
                ],
                "title": "EmploymentPeriodResource"
            },
            "EmploymentStatus": {
                "type": "string",
                "description": "Abgeleiteter Besch\u00e4ftigungsstatus (OpenSpec `employment-periods`, Entscheidung 2), berechnet aus dem j\u00fcngsten Zeitraum und dem heutigen Tag in der Tenant-Zeitzone; nie gespeichert. - `Employed`: j\u00fcngster Zeitraum offen oder `ended_on` heute oder sp\u00e4ter - `Departed`: j\u00fcngster Zeitraum endete vor heute - `Upcoming`: j\u00fcngster Zeitraum beginnt in der Zukunft\n",
                "enum": [
                    "employed",
                    "departed",
                    "upcoming"
                ],
                "title": "EmploymentStatus"
            },
            "EmploymentStatusAtStart": {
                "type": "string",
                "description": "Hauptstatus bei Beginn der Besch\u00e4ftigung (Personalfragebogen Abschnitt 6, Einfachauswahl). Zus\u00e4tzliche Merkmale wie Student/in oder Rentner/in stehen als Mehrfachauswahl in {@see EmploymentStatusFlag}.\n",
                "enum": [
                    "employee",
                    "school_leaver",
                    "university_applicant",
                    "civil_servant",
                    "unemployed",
                    "military_service",
                    "homemaker",
                    "other"
                ],
                "title": "EmploymentStatusAtStart"
            },
            "EmploymentStatusFlag": {
                "type": "string",
                "description": "Zus\u00e4tzliche Merkmale zum Status bei Beginn der Besch\u00e4ftigung (Mehrfachauswahl, `employee_payroll_data.status_at_start_flags`). `BenefitRecipient` = Bezug von ALG oder Sozialleistungen.\n",
                "enum": [
                    "pupil",
                    "student",
                    "pensioner",
                    "self_employed",
                    "parental_leave",
                    "benefit_recipient"
                ],
                "title": "EmploymentStatusFlag"
            },
            "EmploymentType": {
                "type": "string",
                "description": "Besch\u00e4ftigungsart der Lohnstammdaten, getrennt von der Versicherungsart ({@see InsuranceType}). `Marginal` = geringf\u00fcgig entlohnt (Minijob, \u00a7 8 Abs. 1 Nr. 1 SGB IV), `ShortTerm` = kurzfristig (\u00a7 8 Abs. 1 Nr. 2 SGB IV).\n",
                "enum": [
                    "regular",
                    "marginal",
                    "short_term"
                ],
                "title": "EmploymentType"
            },
            "EnrollmentTokenResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "expires_at": {
                        "type": "string"
                    },
                    "redeemed_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "redeemed_device": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "redeemed",
                            "expired",
                            "open"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "created_at",
                    "expires_at",
                    "redeemed_at",
                    "redeemed_device",
                    "status"
                ],
                "title": "EnrollmentTokenResource"
            },
            "EventResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "state": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "timestamp": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "latitude": {
                        "type": "string"
                    },
                    "longitude": {
                        "type": "string"
                    },
                    "accuracy": {
                        "type": "string"
                    },
                    "nfc_tag_id": {
                        "type": "string"
                    },
                    "client_ip": {
                        "type": "string"
                    },
                    "metadata": {
                        "type": "string"
                    },
                    "early": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "state",
                    "type",
                    "timestamp",
                    "latitude",
                    "longitude",
                    "accuracy",
                    "nfc_tag_id",
                    "client_ip",
                    "metadata",
                    "created_at",
                    "updated_at"
                ],
                "title": "EventResource"
            },
            "ExportFormat": {
                "type": "string",
                "description": "Registry of all file-based export formats. Adding a new export (e.g. Agenda Lohn und Gehalt) means: implement ExportProvider, add a case here, add the i18n label in the frontend.\n",
                "enum": [
                    "csv",
                    "csv_extended",
                    "datev",
                    "datev_lug",
                    "agenda",
                    "zucchetti",
                    "projects"
                ],
                "title": "ExportFormat"
            },
            "FairnessSummaryResource": {
                "type": "object",
                "properties": {
                    "employee_id": {
                        "type": "string"
                    },
                    "employee_name": {
                        "type": "string"
                    },
                    "weekend": {
                        "type": "string"
                    },
                    "night": {
                        "type": "string"
                    },
                    "holiday": {
                        "type": "string"
                    },
                    "unpopular": {
                        "type": "string"
                    },
                    "unpopular_weight": {
                        "type": "string"
                    },
                    "burden_score": {
                        "type": "string"
                    },
                    "declination_count_12m": {
                        "type": "string"
                    },
                    "total_shifts": {
                        "type": "string"
                    },
                    "total_planned_ms": {
                        "type": "string"
                    },
                    "total_planned": {
                        "type": "string"
                    }
                },
                "required": [
                    "employee_id",
                    "employee_name",
                    "weekend",
                    "night",
                    "holiday",
                    "unpopular",
                    "unpopular_weight",
                    "burden_score",
                    "declination_count_12m",
                    "total_shifts",
                    "total_planned_ms",
                    "total_planned"
                ],
                "title": "FairnessSummaryResource"
            },
            "FlatRateTaxation": {
                "type": "string",
                "description": "Pauschale Lohnsteuer: 2 % einheitliche Pauschsteuer (\u00a7 40a Abs. 2 EStG) oder 20 % (\u00a7 40a Abs. 2a EStG). Ohne Angabe wird nach den ELStAM besteuert.\n",
                "enum": [
                    "two_percent",
                    "twenty_percent"
                ],
                "title": "FlatRateTaxation"
            },
            "Gender": {
                "type": "string",
                "description": "Geschlecht am Mitarbeitenden-Datensatz (`employees.gender`), einzige Quelle auch f\u00fcr die Lohn-/SV-Stammdaten. `undetermined` entspricht dem DE\u00dcV-Kennzeichen `x` (unbestimmt), `not_specified` bedeutet keine Angabe und hat kein SV-Gegenst\u00fcck.\n",
                "enum": [
                    "male",
                    "female",
                    "diverse",
                    "undetermined",
                    "not_specified"
                ],
                "title": "Gender"
            },
            "GenerateCredentialsRequest": {
                "type": "object",
                "properties": {
                    "scope": {
                        "type": "string",
                        "enum": [
                            "missing",
                            "all",
                            "selected"
                        ]
                    },
                    "employee_ids": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "login_schema": {
                        "$ref": "#/components/schemas/LoginSchema"
                    },
                    "template": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "overwrite_existing_login": {
                        "type": "boolean"
                    },
                    "force_change": {
                        "type": "boolean"
                    },
                    "password_length": {
                        "type": "integer",
                        "minimum": 8,
                        "maximum": 64
                    },
                    "send_email": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "scope",
                    "login_schema"
                ],
                "title": "GenerateCredentialsRequest"
            },
            "GenerateJobPostingAiDraftRequest": {
                "type": "object",
                "description": "Input of the AI job text (OpenSpec add-recruiting, D16, task 11.4): title, key points (a list of\nshort strings or one text, together at most {@see MAX_BULLET_POINTS_LENGTH} characters), optional\nemployment and workplace type, tone (`neutral`, `du`, `sie`) and language (`de`, `en`, `tr`, `sq`,\ndefault the tenant language). Access is checked by the route middleware.",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 150
                    },
                    "bullet_points": {
                        "type": "string"
                    },
                    "employment_type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/JobEmploymentType"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "workplace_type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/JobWorkplaceType"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "tone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "neutral",
                            "du",
                            "sie",
                            null
                        ]
                    },
                    "language": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "de",
                            "en",
                            "tr",
                            "sq",
                            null
                        ]
                    }
                },
                "required": [
                    "title",
                    "bullet_points"
                ],
                "title": "GenerateJobPostingAiDraftRequest"
            },
            "GkvStammdatenStandResource": {
                "type": "object",
                "properties": {
                    "available": {
                        "type": "boolean",
                        "description": "Datei wurde mindestens einmal erfolgreich importiert."
                    },
                    "version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Versionsnummer der Datei (z. B. 3.0.0)."
                    },
                    "file_created_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Erstellungszeitpunkt laut Datei (Steuerungsdaten)."
                    },
                    "imported_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Zeitpunkt des letzten erfolgreichen Imports (ISO 8601)."
                    },
                    "count": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Anzahl der importierten, w\u00e4hlbaren Krankenkassen."
                    },
                    "stale": {
                        "type": "boolean",
                        "description": "Datei fehlt oder der letzte Import ist \u00e4lter als max_age_days."
                    },
                    "max_age_days": {
                        "type": "integer"
                    }
                },
                "required": [
                    "available",
                    "version",
                    "file_created_at",
                    "imported_at",
                    "count",
                    "stale",
                    "max_age_days"
                ],
                "title": "GkvStammdatenStandResource"
            },
            "HealthInsuranceCompanyResource": {
                "type": "object",
                "properties": {
                    "number": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "short_name": {
                        "type": "string"
                    },
                    "test_only": {
                        "type": "boolean",
                        "description": "eau-testsystem: Testkasse (Pr\u00e4fix 993) mit Szenario der simulierten Annahmestelle."
                    },
                    "mock_scenario": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "mock_scenario_label": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "number",
                    "name",
                    "short_name",
                    "test_only",
                    "mock_scenario",
                    "mock_scenario_label"
                ],
                "title": "HealthInsuranceCompanyResource"
            },
            "HealthInsuranceResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "valid_from": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "valid_until": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "code",
                    "name",
                    "valid_from",
                    "valid_until"
                ],
                "title": "HealthInsuranceResource"
            },
            "HolidayEntryResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "name": {
                        "type": "string"
                    },
                    "half_day": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "date",
                    "name",
                    "half_day"
                ],
                "title": "HolidayEntryResource"
            },
            "HolidayFeedEntryResource": {
                "type": "object",
                "properties": {
                    "date": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "half_day": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "date",
                    "name",
                    "half_day"
                ],
                "title": "HolidayFeedEntryResource"
            },
            "HolidayResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "is_system": {
                        "type": "string"
                    },
                    "source_key": {
                        "type": "string"
                    },
                    "entries": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/HolidayEntryResource"
                        }
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "name",
                    "is_system",
                    "source_key",
                    "created_at",
                    "updated_at"
                ],
                "title": "HolidayResource"
            },
            "HolidaysHistoryResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "holiday_id": {
                        "type": "string"
                    },
                    "holiday": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/HolidayResource"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "entries"
                                ]
                            }
                        ]
                    },
                    "valid_after": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "holiday_id",
                    "valid_after",
                    "created_at",
                    "updated_at"
                ],
                "title": "HolidaysHistoryResource"
            },
            "HourlyWageSettlementResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "employee_name": {
                        "type": "string"
                    },
                    "reference_no": {
                        "type": "string"
                    },
                    "year_month": {
                        "type": "string"
                    },
                    "hours": {
                        "type": "object",
                        "properties": {
                            "worked": {
                                "type": "string"
                            },
                            "vacation": {
                                "type": "string"
                            },
                            "illness": {
                                "type": "string"
                            },
                            "holiday": {
                                "type": "string"
                            },
                            "other": {
                                "type": "string"
                            },
                            "correction": {
                                "type": "string"
                            },
                            "total": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "worked",
                            "vacation",
                            "illness",
                            "holiday",
                            "other",
                            "correction",
                            "total"
                        ]
                    },
                    "hourly_rate_cents": {
                        "type": "string"
                    },
                    "amount_cents": {
                        "type": "integer"
                    },
                    "rate_missing": {
                        "type": "boolean"
                    },
                    "segments": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                },
                                "minItems": 0,
                                "maxItems": 0
                            }
                        ]
                    },
                    "corrections": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                },
                                "minItems": 0,
                                "maxItems": 0
                            }
                        ]
                    },
                    "warnings": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                },
                                "minItems": 0,
                                "maxItems": 0
                            }
                        ]
                    },
                    "minijob": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "limit_cents": {
                                "type": "integer"
                            },
                            "utilization": {
                                "type": "number"
                            }
                        },
                        "required": [
                            "limit_cents",
                            "utilization"
                        ]
                    },
                    "settled_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "employee_name",
                    "reference_no",
                    "year_month",
                    "hours",
                    "hourly_rate_cents",
                    "amount_cents",
                    "rate_missing",
                    "segments",
                    "corrections",
                    "warnings",
                    "minijob",
                    "settled_at"
                ],
                "title": "HourlyWageSettlementResource"
            },
            "ImportStammdatenReportRequest": {
                "type": "object",
                "description": "Body von POST /rest/eau/stammdaten/import: die CSV (ITSG-Feldliste oder bisheriges Format),\naus der Importlauf bzw. Abgleich-Report gebaut werden.",
                "properties": {
                    "file": {
                        "type": "string",
                        "format": "binary",
                        "contentMediaType": "application/octet-stream",
                        "description": "Maximum file size: 10240 kilobytes."
                    }
                },
                "required": [
                    "file"
                ],
                "title": "ImportStammdatenReportRequest"
            },
            "IndexHealthInsuranceCompanyRequest": {
                "type": "object",
                "description": "Suchfilter von GET /rest/health_insurance_companies. Der Wert landet in\ndrei LIKE-Bedingungen, deshalb die Laengenbegrenzung.",
                "properties": {
                    "search": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100
                    }
                },
                "title": "IndexHealthInsuranceCompanyRequest"
            },
            "JobApplicationConversionResource": {
                "type": "object",
                "properties": {
                    "application": {
                        "$ref": "#/components/schemas/JobApplicationResource"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "personnel_questionnaire_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "application",
                    "employee_id",
                    "personnel_questionnaire_id"
                ],
                "title": "JobApplicationConversionResource"
            },
            "JobApplicationDocumentCheckState": {
                "type": "string",
                "description": "State of the check of an application file as the admin shows it (OpenSpec add-recruiting, D9, O10), derived from `quarantined`, `check_result`, the recheck attempts and the age of the file: - `pending`: the check is running (just uploaded) - `scanner_unavailable`: still in quarantine because no virus scan could run (no scanner   configured for a PDF that needs one, scanner unreachable, or the check is overdue); the   scheduled recheck releases it once the scanner answers - `released`: checked, can be opened - `rejected`: malware found or format not supported, never downloadable\n",
                "enum": [
                    "pending",
                    "scanner_unavailable",
                    "released",
                    "rejected"
                ],
                "title": "JobApplicationDocumentCheckState"
            },
            "JobApplicationDocumentKind": {
                "type": "string",
                "description": "Kind of a file attached to a job application (OpenSpec add-recruiting, D3).\n",
                "enum": [
                    "cv",
                    "other"
                ],
                "title": "JobApplicationDocumentKind"
            },
            "JobApplicationDocumentResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "kind": {
                        "$ref": "#/components/schemas/JobApplicationDocumentKind"
                    },
                    "original_filename": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "mime_type": {
                        "type": "string"
                    },
                    "size_bytes": {
                        "type": "integer"
                    },
                    "quarantined": {
                        "type": "boolean"
                    },
                    "check_result": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "check_state": {
                        "$ref": "#/components/schemas/JobApplicationDocumentCheckState"
                    },
                    "checked_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "downloadable": {
                        "type": "boolean"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "kind",
                    "original_filename",
                    "mime_type",
                    "size_bytes",
                    "quarantined",
                    "check_result",
                    "check_state",
                    "checked_at",
                    "downloadable",
                    "created_at"
                ],
                "title": "JobApplicationDocumentResource"
            },
            "JobApplicationDownloadResource": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string"
                    },
                    "expires_at": {
                        "type": "string"
                    }
                },
                "required": [
                    "url",
                    "expires_at"
                ],
                "title": "JobApplicationDownloadResource"
            },
            "JobApplicationEventResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "type": {
                        "$ref": "#/components/schemas/JobApplicationEventType"
                    },
                    "from_stage": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/JobApplicationStage"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "to_stage": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/JobApplicationStage"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "body": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "mail_template": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/JobApplicationMailTemplate"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "mail_subject": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "user_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "user_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "type",
                    "from_stage",
                    "to_stage",
                    "body",
                    "mail_template",
                    "mail_subject",
                    "user_id",
                    "user_name",
                    "created_at"
                ],
                "title": "JobApplicationEventResource"
            },
            "JobApplicationEventType": {
                "type": "string",
                "description": "Entry in the history of a job application (OpenSpec add-recruiting, D3, D7, D11, D14).\n",
                "enum": [
                    "stage_changed",
                    "note",
                    "mail_sent",
                    "converted"
                ],
                "title": "JobApplicationEventType"
            },
            "JobApplicationListItemResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "job_posting_id": {
                        "type": "string"
                    },
                    "first_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "last_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "full_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "stage": {
                        "$ref": "#/components/schemas/JobApplicationStage"
                    },
                    "source": {
                        "$ref": "#/components/schemas/JobApplicationSource"
                    },
                    "locale": {
                        "type": "string"
                    },
                    "submitted_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "rejected_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "hired_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "documents_count": {
                        "type": "integer"
                    },
                    "notes_count": {
                        "type": "integer"
                    },
                    "possible_duplicate": {
                        "type": "boolean"
                    },
                    "duplicate_count": {
                        "type": "integer"
                    },
                    "duplicate_on_posting_count": {
                        "type": "integer"
                    },
                    "retention_due_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "retention_hint": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "id",
                    "job_posting_id",
                    "first_name",
                    "last_name",
                    "full_name",
                    "email",
                    "stage",
                    "source",
                    "locale",
                    "submitted_at",
                    "rejected_at",
                    "hired_at",
                    "documents_count",
                    "notes_count",
                    "possible_duplicate",
                    "duplicate_count",
                    "duplicate_on_posting_count",
                    "retention_due_at",
                    "retention_hint"
                ],
                "title": "JobApplicationListItemResource"
            },
            "JobApplicationMailPreviewResource": {
                "type": "object",
                "properties": {
                    "template": {
                        "$ref": "#/components/schemas/JobApplicationMailTemplate"
                    },
                    "subject": {
                        "type": "string"
                    },
                    "body": {
                        "type": "string"
                    }
                },
                "required": [
                    "template",
                    "subject",
                    "body"
                ],
                "title": "JobApplicationMailPreviewResource"
            },
            "JobApplicationMailSentResource": {
                "type": "object",
                "properties": {
                    "event": {
                        "$ref": "#/components/schemas/JobApplicationEventResource"
                    },
                    "application": {
                        "$ref": "#/components/schemas/JobApplicationResource"
                    }
                },
                "required": [
                    "event",
                    "application"
                ],
                "title": "JobApplicationMailSentResource"
            },
            "JobApplicationMailTemplate": {
                "type": "string",
                "description": "Mail templates of the recruiting pipeline (OpenSpec add-recruiting, D11 Stufe 2, task 9.1): the rejection and the invitation, each a tenant setting with a default text per tenant language.\n",
                "enum": [
                    "rejection",
                    "invitation"
                ],
                "title": "JobApplicationMailTemplate"
            },
            "JobApplicationResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "job_posting_id": {
                        "type": "string"
                    },
                    "posting": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "title": {
                                "type": "string"
                            },
                            "status": {
                                "$ref": "#/components/schemas/JobPostingStatus"
                            }
                        },
                        "required": [
                            "id",
                            "title",
                            "status"
                        ]
                    },
                    "first_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "last_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "full_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "profile_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "cover_letter": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "stage": {
                        "$ref": "#/components/schemas/JobApplicationStage"
                    },
                    "source": {
                        "$ref": "#/components/schemas/JobApplicationSource"
                    },
                    "locale": {
                        "type": "string"
                    },
                    "privacy_acknowledged_at": {
                        "type": "string"
                    },
                    "privacy_notice_version": {
                        "type": "integer"
                    },
                    "submitted_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "rejected_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "hired_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "employee_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "is_purged": {
                        "type": "boolean"
                    },
                    "purged_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "possible_duplicate": {
                        "type": "boolean"
                    },
                    "duplicate_count": {
                        "type": "integer"
                    },
                    "duplicate_on_posting_count": {
                        "type": "integer"
                    },
                    "retention_due_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "retention_hint": {
                        "type": "boolean"
                    },
                    "mail_templates": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/JobApplicationMailTemplate"
                        }
                    },
                    "can_convert": {
                        "type": "boolean"
                    },
                    "can_create_questionnaire": {
                        "type": "boolean"
                    },
                    "documents": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/JobApplicationDocumentResource"
                        }
                    },
                    "events": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/JobApplicationEventResource"
                        }
                    }
                },
                "required": [
                    "id",
                    "job_posting_id",
                    "posting",
                    "first_name",
                    "last_name",
                    "full_name",
                    "email",
                    "phone",
                    "profile_url",
                    "cover_letter",
                    "stage",
                    "source",
                    "locale",
                    "privacy_acknowledged_at",
                    "privacy_notice_version",
                    "submitted_at",
                    "rejected_at",
                    "hired_at",
                    "employee_id",
                    "is_purged",
                    "purged_at",
                    "possible_duplicate",
                    "duplicate_count",
                    "duplicate_on_posting_count",
                    "retention_due_at",
                    "retention_hint",
                    "mail_templates",
                    "can_convert",
                    "can_create_questionnaire",
                    "documents",
                    "events"
                ],
                "title": "JobApplicationResource"
            },
            "JobApplicationSource": {
                "type": "string",
                "description": "Where an application came from (OpenSpec add-recruiting, D16, D17): the hosted career page, the job widget or one of the feed channels. The public job page passes the value of `?source=` to the submission; the feed channels append it to every posting URL (`tracking_source` in `recruiting.feeds.channels`). Unknown values count as career page.\n",
                "enum": [
                    "career_page",
                    "widget",
                    "indeed",
                    "stepstone",
                    "linkedin",
                    "aggregator"
                ],
                "title": "JobApplicationSource"
            },
            "JobApplicationStage": {
                "type": "string",
                "description": "Fixed pipeline of a job application (OpenSpec add-recruiting, D7). Every transition is allowed, also backwards; entering `rejected` or `hired` sets the matching timestamp, leaving it clears it.\n",
                "enum": [
                    "new",
                    "review",
                    "interview",
                    "offer",
                    "hired",
                    "rejected"
                ],
                "title": "JobApplicationStage"
            },
            "JobApplicationStageChangeResource": {
                "type": "object",
                "properties": {
                    "application": {
                        "$ref": "#/components/schemas/JobApplicationResource"
                    },
                    "stage_counts": {
                        "type": "object",
                        "properties": {
                            "new": {
                                "type": "integer"
                            },
                            "review": {
                                "type": "integer"
                            },
                            "interview": {
                                "type": "integer"
                            },
                            "offer": {
                                "type": "integer"
                            },
                            "hired": {
                                "type": "integer"
                            },
                            "rejected": {
                                "type": "integer"
                            }
                        },
                        "required": [
                            "new",
                            "review",
                            "interview",
                            "offer",
                            "hired",
                            "rejected"
                        ]
                    }
                },
                "required": [
                    "application",
                    "stage_counts"
                ],
                "title": "JobApplicationStageChangeResource"
            },
            "JobEmploymentType": {
                "type": "string",
                "description": "Kind of employment offered by a job posting (OpenSpec add-recruiting, D3). Deliberately separate from {@see EmploymentType}, which describes the contract of an existing employee.\n",
                "enum": [
                    "full_time",
                    "part_time",
                    "mini_job",
                    "working_student",
                    "internship",
                    "apprenticeship",
                    "temporary",
                    "freelance"
                ],
                "title": "JobEmploymentType"
            },
            "JobFeedChannelStatus": {
                "type": "string",
                "description": "Status of a feed channel for one tenant, as the recruiting settings show it (OpenSpec add-recruiting, D16): `active` when the channel runs and the plan is admitted, `in_preparation` while the channel is switched off or has no token (partner terms open, O3), `not_available_on_plan` when the tenant's plan is not admitted.\n",
                "enum": [
                    "active",
                    "in_preparation",
                    "not_available_on_plan"
                ],
                "title": "JobFeedChannelStatus"
            },
            "JobPostingAiDraftResource": {
                "type": "object",
                "properties": {
                    "description_md": {
                        "type": "string"
                    },
                    "usage": {
                        "type": "object",
                        "properties": {
                            "remaining_today": {
                                "type": "integer"
                            },
                            "daily_limit": {
                                "type": "integer"
                            }
                        },
                        "required": [
                            "remaining_today",
                            "daily_limit"
                        ]
                    }
                },
                "required": [
                    "description_md",
                    "usage"
                ],
                "title": "JobPostingAiDraftResource"
            },
            "JobPostingReportReason": {
                "type": "string",
                "description": "Reason of a report about a public job posting (OpenSpec add-recruiting, D15, \"Stelle melden\").\n",
                "enum": [
                    "scam",
                    "discrimination",
                    "illegal_content",
                    "other"
                ],
                "title": "JobPostingReportReason"
            },
            "JobPostingResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "slug": {
                        "type": "string"
                    },
                    "public_path": {
                        "type": "string"
                    },
                    "description_md": {
                        "type": "string"
                    },
                    "description_html": {
                        "type": "string"
                    },
                    "employment_type": {
                        "$ref": "#/components/schemas/JobEmploymentType"
                    },
                    "workplace_type": {
                        "$ref": "#/components/schemas/JobWorkplaceType"
                    },
                    "location_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "location": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            },
                            "city": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "postal_code": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "id",
                            "name",
                            "city",
                            "postal_code"
                        ]
                    },
                    "salary_min_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "salary_max_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "salary_period": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/JobSalaryPeriod"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "status": {
                        "$ref": "#/components/schemas/JobPostingStatus"
                    },
                    "is_expired": {
                        "type": "boolean"
                    },
                    "accepts_applications": {
                        "type": "boolean"
                    },
                    "published_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "first_published_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "closed_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "valid_through": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "hints": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "stage_counts": {
                        "type": "object",
                        "properties": {
                            "new": {
                                "type": "integer"
                            },
                            "review": {
                                "type": "integer"
                            },
                            "interview": {
                                "type": "integer"
                            },
                            "offer": {
                                "type": "integer"
                            },
                            "hired": {
                                "type": "integer"
                            },
                            "rejected": {
                                "type": "integer"
                            }
                        },
                        "required": [
                            "new",
                            "review",
                            "interview",
                            "offer",
                            "hired",
                            "rejected"
                        ]
                    },
                    "applications_count": {
                        "type": "integer"
                    },
                    "source_counts": {
                        "type": "object",
                        "properties": {
                            "career_page": {
                                "type": "integer"
                            },
                            "widget": {
                                "type": "integer"
                            },
                            "indeed": {
                                "type": "integer"
                            },
                            "stepstone": {
                                "type": "integer"
                            },
                            "linkedin": {
                                "type": "integer"
                            },
                            "aggregator": {
                                "type": "integer"
                            }
                        },
                        "required": [
                            "career_page",
                            "widget",
                            "indeed",
                            "stepstone",
                            "linkedin",
                            "aggregator"
                        ]
                    },
                    "created_by": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "title",
                    "slug",
                    "public_path",
                    "description_md",
                    "description_html",
                    "employment_type",
                    "workplace_type",
                    "location_id",
                    "location",
                    "salary_min_cents",
                    "salary_max_cents",
                    "salary_period",
                    "status",
                    "is_expired",
                    "accepts_applications",
                    "published_at",
                    "first_published_at",
                    "closed_at",
                    "valid_through",
                    "hints",
                    "stage_counts",
                    "applications_count",
                    "source_counts",
                    "created_by",
                    "created_at",
                    "updated_at"
                ],
                "title": "JobPostingResource"
            },
            "JobPostingStatus": {
                "type": "string",
                "description": "Lifecycle of a job posting (OpenSpec add-recruiting, D3): draft \u2192 published \u21c4 closed. A published posting is public only while `valid_through` has not passed ({@see \\App\\Models\\JobPosting::scopePubliclyVisible()}); expiry is derived, not a status.\n",
                "enum": [
                    "draft",
                    "published",
                    "closed"
                ],
                "title": "JobPostingStatus"
            },
            "JobSalaryPeriod": {
                "type": "string",
                "description": "Period the salary range of a job posting refers to (OpenSpec add-recruiting, D3).\n",
                "enum": [
                    "hour",
                    "month",
                    "year"
                ],
                "title": "JobSalaryPeriod"
            },
            "JobWorkplaceType": {
                "type": "string",
                "description": "Where the work of a job posting takes place (OpenSpec add-recruiting, D3, D10).\n",
                "enum": [
                    "onsite",
                    "hybrid",
                    "remote"
                ],
                "title": "JobWorkplaceType"
            },
            "LaborCostResource": {
                "type": "object",
                "properties": {
                    "roster_id": {
                        "type": "string"
                    },
                    "currency": {
                        "type": "string"
                    },
                    "total_base_cost_cents": {
                        "type": "string"
                    },
                    "total_base_cost": {
                        "type": "string"
                    },
                    "total_surcharge_cost_cents": {
                        "type": "string"
                    },
                    "total_surcharge_cost": {
                        "type": "string"
                    },
                    "total_cost_cents": {
                        "type": "string"
                    },
                    "total_cost": {
                        "type": "string"
                    },
                    "rate_missing_count": {
                        "type": "string"
                    },
                    "budget": {
                        "type": "string"
                    },
                    "by_day": {
                        "type": "string"
                    },
                    "by_shift": {
                        "type": "string"
                    },
                    "by_employee": {
                        "type": "string"
                    },
                    "entries": {
                        "type": "string"
                    },
                    "rates": {
                        "type": "string"
                    },
                    "warnings": {
                        "type": "string"
                    }
                },
                "required": [
                    "roster_id",
                    "currency",
                    "total_base_cost_cents",
                    "total_base_cost",
                    "total_surcharge_cost_cents",
                    "total_surcharge_cost",
                    "total_cost_cents",
                    "total_cost",
                    "rate_missing_count",
                    "budget",
                    "by_day",
                    "by_shift",
                    "by_employee",
                    "entries",
                    "rates",
                    "warnings"
                ],
                "title": "LaborCostResource"
            },
            "LeavePreviewResource": {
                "type": "object",
                "properties": {
                    "start_date": {
                        "type": "string"
                    },
                    "end_date": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "is_half_day": {
                        "type": "boolean"
                    },
                    "first_day_half": {
                        "type": "boolean"
                    },
                    "last_day_half": {
                        "type": "boolean"
                    },
                    "working_days": {
                        "type": "number"
                    },
                    "days": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "date": {
                                    "type": "string"
                                },
                                "fraction": {
                                    "type": "number"
                                }
                            },
                            "required": [
                                "date",
                                "fraction"
                            ]
                        }
                    },
                    "affects_vacation": {
                        "type": "boolean"
                    },
                    "vacation": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "year": {
                                "type": "integer"
                            },
                            "remaining_before": {
                                "type": "number"
                            },
                            "remaining_after": {
                                "type": "number"
                            }
                        },
                        "required": [
                            "year",
                            "remaining_before",
                            "remaining_after"
                        ]
                    }
                },
                "required": [
                    "start_date",
                    "end_date",
                    "type",
                    "is_half_day",
                    "first_day_half",
                    "last_day_half",
                    "working_days",
                    "days",
                    "affects_vacation",
                    "vacation"
                ],
                "title": "LeavePreviewResource"
            },
            "LeaveRequestResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "employee_name": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "is_half_day": {
                        "type": "boolean"
                    },
                    "first_day_half": {
                        "type": "boolean"
                    },
                    "last_day_half": {
                        "type": "boolean"
                    },
                    "absence_type": {
                        "$ref": "#/components/schemas/AbsenceTypeResource"
                    },
                    "status": {
                        "type": "string"
                    },
                    "start_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "end_date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "business_days": {
                        "type": "number"
                    },
                    "calculated_days": {
                        "type": "number"
                    },
                    "hours": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "valuation_mode": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "eau_entgfg_gemeldet": {
                        "type": "boolean",
                        "description": "eAU: AU dem Arbeitgeber gemeldet."
                    },
                    "doctor_visit": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "eAU: Arztbesuch (\u00e4rztliche oder station\u00e4re Feststellung); null = nicht angegeben."
                    },
                    "eau_not_applicable_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "eAU: Grund, warum zu dieser Krankmeldung keine eAU entsteht (`insurance_type_not_statutory`:\nzum AU-Beginn nicht gesetzlich versichert), sonst null."
                    },
                    "eau_skip_reasons": {
                        "type": "array",
                        "description": "eAU: Gr\u00fcnde, warum zu dieser genehmigten Krankmeldung keine eAU-Abfrage angelegt wird\n(z. B. `versicherungsnummer_fehlt`, `payroll_data`), leer ohne Hinderungsgrund oder mit Anforderung.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "days": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "date": {
                                    "type": "string"
                                },
                                "fraction": {
                                    "type": "number"
                                },
                                "valued": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "date",
                                "fraction",
                                "valued"
                            ]
                        }
                    },
                    "valued_total": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "bucket_allocation": {
                        "type": "string"
                    },
                    "reason": {
                        "type": "string"
                    },
                    "substitute": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "id",
                            "name"
                        ]
                    },
                    "substitute_status": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "substitute_responded_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "decided_by": {
                        "type": "string"
                    },
                    "decided_by_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "decided_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "decision_note": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "can_withdraw": {
                        "type": "boolean"
                    },
                    "withdraw_blocked_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "already_started",
                            "status_final",
                            "not_own_request",
                            "unauthenticated",
                            null
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "type",
                    "is_half_day",
                    "first_day_half",
                    "last_day_half",
                    "status",
                    "start_date",
                    "end_date",
                    "business_days",
                    "calculated_days",
                    "hours",
                    "valuation_mode",
                    "eau_entgfg_gemeldet",
                    "doctor_visit",
                    "eau_not_applicable_reason",
                    "eau_skip_reasons",
                    "reason",
                    "substitute_status",
                    "substitute_responded_at",
                    "decided_by",
                    "decided_at",
                    "decision_note",
                    "created_at",
                    "updated_at",
                    "can_withdraw",
                    "withdraw_blocked_reason"
                ],
                "title": "LeaveRequestResource"
            },
            "LoadRosterTemplateRequest": {
                "type": "object",
                "description": "Body of POST /rest/roster_templates/{rosterTemplate}/load \u2014 applies a\ntemplate to one or more target weeks.",
                "properties": {
                    "target_weeks": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "date-time"
                        },
                        "minItems": 1
                    },
                    "unit_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "with_staffing": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "target_weeks"
                ],
                "title": "LoadRosterTemplateRequest"
            },
            "Locale": {
                "type": "string",
                "description": "Supported UI / notification languages. Drives the per-user `locale` column, the app/web UI language after login, and server-rendered mail/push/inbox text.\n",
                "enum": [
                    "de",
                    "en",
                    "tr",
                    "fr",
                    "es",
                    "it",
                    "ch",
                    "nl",
                    "sq"
                ],
                "title": "Locale"
            },
            "LocationResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "phone": {
                        "type": "string"
                    },
                    "address": {
                        "type": "string"
                    },
                    "address_additional": {
                        "type": "string"
                    },
                    "city": {
                        "type": "string"
                    },
                    "postal_code": {
                        "type": "string"
                    },
                    "state_region": {
                        "type": "string"
                    },
                    "country": {
                        "type": "string"
                    },
                    "timezone": {
                        "type": "string"
                    },
                    "establishment_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "establishment": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            },
                            "bbnr": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "id",
                            "name",
                            "bbnr"
                        ]
                    },
                    "holidays": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/HolidayResource"
                        }
                    },
                    "employees_count": {
                        "type": "integer"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "name",
                    "phone",
                    "address",
                    "address_additional",
                    "city",
                    "postal_code",
                    "state_region",
                    "country",
                    "timezone",
                    "establishment_id",
                    "establishment",
                    "created_at",
                    "updated_at"
                ],
                "title": "LocationResource"
            },
            "LoginRequest": {
                "type": "object",
                "properties": {
                    "code": {
                        "type": "string"
                    },
                    "password": {
                        "type": "string"
                    }
                },
                "required": [
                    "code",
                    "password"
                ],
                "title": "LoginRequest"
            },
            "LoginSchema": {
                "type": "string",
                "description": "Strategy for deriving an employee's login code when bulk-generating credentials (e.g. after a DLS import). The actual derivation lives in {@see \\App\\Services\\Credentials\\LoginGenerator}.\n",
                "enum": [
                    "reference_no",
                    "firstname.lastname",
                    "f.lastname",
                    "email",
                    "template"
                ],
                "title": "LoginSchema"
            },
            "MaritalStatus": {
                "type": "string",
                "enum": [
                    "single",
                    "married",
                    "separated",
                    "divorced",
                    "widowed",
                    "civil_partnership"
                ],
                "title": "MaritalStatus"
            },
            "MobileClockRequest": {
                "type": "object",
                "description": "Body of POST /rest/mobile \u2014 the clock in/out of the mobile app.\nPosition, device metadata and comment are optional; queued_at carries the\noriginal time of a booking that was recorded offline.",
                "properties": {
                    "latitude": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": -90,
                        "maximum": 90
                    },
                    "longitude": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": -180,
                        "maximum": 180
                    },
                    "accuracy": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0
                    },
                    "queued_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "metadata": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "platform": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "enum": [
                                    "ios",
                                    "android",
                                    "web",
                                    "desktop",
                                    null
                                ]
                            },
                            "app_version": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "maxLength": 20
                            },
                            "device_model": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "maxLength": 100
                            },
                            "os_version": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "maxLength": 50
                            }
                        }
                    },
                    "comment": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    }
                },
                "title": "MobileClockRequest"
            },
            "NfcTagResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "tag_id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "location_description": {
                        "type": "string"
                    },
                    "is_active": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "tag_id",
                    "name",
                    "location_description",
                    "is_active",
                    "created_at",
                    "updated_at"
                ],
                "title": "NfcTagResource"
            },
            "NotificationResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "date": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "body": {
                        "type": "string"
                    },
                    "message": {
                        "type": "string"
                    },
                    "read": {
                        "type": "string"
                    },
                    "resolved": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "link": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "job_posting_id": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "job_application_id": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "job_posting_id",
                            "job_application_id"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "type",
                    "date",
                    "title",
                    "body",
                    "message",
                    "read",
                    "resolved",
                    "created_at",
                    "link"
                ],
                "title": "NotificationResource"
            },
            "OrderChipsRequest": {
                "type": "object",
                "description": "Body of POST /rest/orders/chips \u2014 the shipping address of an NFC chip\norder.",
                "properties": {
                    "quantity": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "company": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "firstName": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "lastName": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "zip": {
                        "type": "string",
                        "maxLength": 20
                    },
                    "city": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "street": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "houseNumber": {
                        "type": "string",
                        "maxLength": 50
                    }
                },
                "required": [
                    "quantity",
                    "firstName",
                    "lastName",
                    "zip",
                    "city",
                    "street",
                    "houseNumber"
                ],
                "title": "OrderChipsRequest"
            },
            "OtherEmploymentKind": {
                "type": "string",
                "description": "Art einer weiteren Besch\u00e4ftigung (Personalfragebogen Abschnitt 13): geringf\u00fcgig entlohnt (\u00a7 8 Abs. 1 Nr. 1 SGB IV), nicht geringf\u00fcgig entlohnt oder kurzfristig (\u00a7 8 Abs. 1 Nr. 2 SGB IV). Gleiche Werte wie {@see EmploymentType}.\n",
                "enum": [
                    "marginal",
                    "regular",
                    "short_term"
                ],
                "title": "OtherEmploymentKind"
            },
            "OvertimeAccountResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "year_month": {
                        "type": "string"
                    },
                    "balance": {
                        "type": "integer"
                    },
                    "earned": {
                        "type": "integer"
                    },
                    "compensated": {
                        "type": "integer"
                    },
                    "paid_out": {
                        "type": "integer"
                    },
                    "adjusted": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "year_month",
                    "balance",
                    "earned",
                    "compensated",
                    "paid_out",
                    "adjusted",
                    "created_at",
                    "updated_at"
                ],
                "title": "OvertimeAccountResource"
            },
            "PaymentMethod": {
                "type": "string",
                "description": "Zahlungsart des Entgelts. Barzahlung ist nur erlaubt, wenn der Tenant sie zul\u00e4sst; ohne Angabe gilt \u00dcberweisung.\n",
                "enum": [
                    "transfer",
                    "cash"
                ],
                "title": "PaymentMethod"
            },
            "PayrollCompanySettingsResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "company_name": {
                        "type": "string"
                    },
                    "company_number": {
                        "type": "string"
                    },
                    "establishment_number": {
                        "type": "string"
                    },
                    "trade_association_pin": {
                        "type": "string"
                    },
                    "collective_agreement": {
                        "type": "string"
                    },
                    "social_fund_name": {
                        "type": "string"
                    },
                    "social_fund_contribution_number": {
                        "type": "string"
                    },
                    "apportionment_required": {
                        "type": "string"
                    },
                    "tax_office": {
                        "type": "string"
                    },
                    "tax_number": {
                        "type": "string"
                    },
                    "registration_period": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "causer_company_number": {
                        "type": "string",
                        "description": "eAU Absenderdaten"
                    },
                    "contact_name": {
                        "type": "string"
                    },
                    "contact_phone": {
                        "type": "string"
                    },
                    "contact_fax": {
                        "type": "string"
                    },
                    "contact_email": {
                        "type": "string"
                    },
                    "address_street": {
                        "type": "string"
                    },
                    "address_house_number": {
                        "type": "string"
                    },
                    "address_postal_code": {
                        "type": "string"
                    },
                    "address_city": {
                        "type": "string"
                    },
                    "is_health_insurance_or_dav": {
                        "type": "boolean"
                    },
                    "legal_circle": {
                        "type": "string"
                    },
                    "eau_retrieval_rule": {
                        "description": "eAU-Abruf-Tag",
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "string",
                                "enum": [
                                    "statutory"
                                ]
                            }
                        ]
                    },
                    "eau_retrieval_day": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "company_name",
                    "company_number",
                    "establishment_number",
                    "trade_association_pin",
                    "collective_agreement",
                    "social_fund_name",
                    "social_fund_contribution_number",
                    "apportionment_required",
                    "tax_office",
                    "tax_number",
                    "registration_period",
                    "causer_company_number",
                    "contact_name",
                    "contact_phone",
                    "contact_fax",
                    "contact_email",
                    "address_street",
                    "address_house_number",
                    "address_postal_code",
                    "address_city",
                    "is_health_insurance_or_dav",
                    "legal_circle",
                    "eau_retrieval_rule",
                    "eau_retrieval_day",
                    "updated_at"
                ],
                "title": "PayrollCompanySettingsResource"
            },
            "PayrollEstablishmentResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "bbnr": {
                        "type": "string"
                    },
                    "address_street": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "address_house_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "address_postal_code": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "address_city": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "legal_circle": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "locations": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "id",
                                "name"
                            ]
                        }
                    },
                    "archived": {
                        "type": "boolean"
                    },
                    "archived_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "name",
                    "bbnr",
                    "address_street",
                    "address_house_number",
                    "address_postal_code",
                    "address_city",
                    "legal_circle",
                    "locations",
                    "archived",
                    "archived_at",
                    "created_at"
                ],
                "title": "PayrollEstablishmentResource"
            },
            "PayrollGender": {
                "type": "string",
                "description": "SV-Geschlechtskennzeichen (DE\u00dcV m/f/d/x). Wird nicht mehr gespeichert, sondern aus dem pers\u00f6nlichen {@see Gender} am Mitarbeitenden-Datensatz abgeleitet (einzige Quelle). Intern wird `f` statt des SV-Werts `w` gef\u00fchrt; Exporte bilden auf ihre Zielwerte ab.\n",
                "enum": [
                    "m",
                    "f",
                    "d",
                    "x"
                ],
                "title": "PayrollGender"
            },
            "PayrollPeriodResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "year_month": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "closed_by": {
                        "type": "string"
                    },
                    "closed_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "reopened_by": {
                        "type": "string"
                    },
                    "reopened_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "note": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "year_month",
                    "status",
                    "closed_by",
                    "closed_at",
                    "reopened_by",
                    "reopened_at",
                    "note"
                ],
                "title": "PayrollPeriodResource"
            },
            "PayrollReadinessResource": {
                "type": "object",
                "properties": {
                    "year_month": {
                        "type": "string"
                    },
                    "employees": {
                        "type": "array",
                        "items": {}
                    }
                },
                "required": [
                    "year_month",
                    "employees"
                ],
                "title": "PayrollReadinessResource"
            },
            "PensionObligation": {
                "type": "string",
                "enum": [
                    "liable",
                    "exempt",
                    "exempt_on_request",
                    "pensioner"
                ],
                "title": "PensionObligation"
            },
            "PersonnelQuestionnaireDetailResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "status": {
                        "$ref": "#/components/schemas/PersonnelQuestionnaireStatus"
                    },
                    "group": {
                        "type": "string",
                        "enum": [
                            "review",
                            "completed",
                            "revoked",
                            "with_employee"
                        ]
                    },
                    "link_expired": {
                        "type": "boolean"
                    },
                    "link_expires_at": {
                        "type": "string"
                    },
                    "employee": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "surname": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "reference_no": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "position": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "employed_start": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "id",
                            "name",
                            "surname",
                            "reference_no",
                            "position",
                            "employed_start"
                        ]
                    },
                    "invite_channel": {
                        "type": "string"
                    },
                    "employment_type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/EmploymentType"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "flat_rate_taxation_planned": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "lock_version": {
                        "type": "integer"
                    },
                    "progress_done": {
                        "type": "integer"
                    },
                    "progress_total": {
                        "type": "integer"
                    },
                    "current_step": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "step_count": {
                        "type": "integer"
                    },
                    "submitted_revision": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "reminder_count": {
                        "type": "integer"
                    },
                    "last_reminded_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "first_opened_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "last_activity_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "query_answered": {
                        "type": "boolean"
                    },
                    "completed_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "revoked_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "revoke_reason": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "pdf_document_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "form_version": {
                        "type": "string"
                    },
                    "invite_email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "person_answers": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "employer_answers": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "employer_origins": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string"
                        }
                    },
                    "documents_present": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "field_reviews": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "object",
                            "properties": {
                                "status": {
                                    "type": "string"
                                },
                                "by": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "at": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "status",
                                "by",
                                "at"
                            ]
                        }
                    },
                    "master_data_decisions": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "object",
                            "properties": {
                                "decision": {
                                    "type": "string"
                                },
                                "valid_from": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "decision",
                                "valid_from"
                            ]
                        }
                    },
                    "evaluation": {
                        "type": "object",
                        "properties": {
                            "visible": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "errors": {
                                "type": "object",
                                "additionalProperties": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "rule": {
                                                "type": "string"
                                            },
                                            "code": {
                                                "type": "string"
                                            }
                                        },
                                        "required": [
                                            "rule",
                                            "code"
                                        ]
                                    }
                                }
                            },
                            "confirms": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "rule": {
                                            "type": "string"
                                        },
                                        "key": {
                                            "type": "string"
                                        },
                                        "fields": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "values": {
                                            "type": "object",
                                            "additionalProperties": {}
                                        },
                                        "confirmed": {
                                            "type": "boolean"
                                        }
                                    },
                                    "required": [
                                        "rule",
                                        "key",
                                        "fields",
                                        "values",
                                        "confirmed"
                                    ]
                                }
                            },
                            "required": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "missing": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "deferrable": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            }
                        },
                        "required": [
                            "visible",
                            "errors",
                            "confirms",
                            "required",
                            "missing",
                            "deferrable"
                        ]
                    },
                    "hints": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "code": {
                                    "type": "string"
                                },
                                "rule": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "severity": {
                                    "type": "string"
                                },
                                "section": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "message": {
                                    "type": "string"
                                },
                                "data": {
                                    "type": "object",
                                    "additionalProperties": {}
                                }
                            },
                            "required": [
                                "code",
                                "rule",
                                "severity",
                                "section",
                                "message",
                                "data"
                            ]
                        }
                    },
                    "diff": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "field": {
                                    "type": "string"
                                },
                                "existing": {},
                                "questionnaire": {},
                                "decision": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "valid_from": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "field",
                                "existing",
                                "questionnaire",
                                "decision",
                                "valid_from"
                            ]
                        }
                    },
                    "needs_insurance_valid_from": {
                        "type": "boolean"
                    },
                    "blockers": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "array",
                            "items": {
                                "type": "object",
                                "properties": {
                                    "rule": {
                                        "type": "string"
                                    },
                                    "code": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "rule",
                                    "code"
                                ]
                            }
                        }
                    },
                    "sections": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "can_complete": {
                        "type": "boolean"
                    },
                    "can_see_special_categories": {
                        "type": "boolean"
                    },
                    "queries": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "field_ids": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                },
                                "message": {
                                    "type": "string"
                                },
                                "created_at": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "created_by_name": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "answered_in_revision": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "id",
                                "field_ids",
                                "message",
                                "created_at",
                                "created_by_name",
                                "answered_in_revision"
                            ]
                        }
                    },
                    "documents": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "document_type": {
                                    "type": "string"
                                },
                                "field_id": {
                                    "type": "string"
                                },
                                "file_name": {
                                    "type": "string"
                                },
                                "mime_type": {
                                    "type": "string"
                                },
                                "size_bytes": {
                                    "type": "integer"
                                },
                                "quarantined": {
                                    "type": "boolean"
                                },
                                "check_result": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "revision": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ]
                                },
                                "transferred_at": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "uploaded_at": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "id",
                                "document_type",
                                "field_id",
                                "file_name",
                                "mime_type",
                                "size_bytes",
                                "quarantined",
                                "check_result",
                                "revision",
                                "transferred_at",
                                "uploaded_at"
                            ]
                        }
                    },
                    "revisions": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "revision": {
                                    "type": "integer"
                                },
                                "submitted_at": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "content_hash": {
                                    "type": "string"
                                },
                                "employee_signed_by": {
                                    "type": "string"
                                },
                                "guardian_signed_by": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                },
                                "confirmations": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            },
                            "required": [
                                "revision",
                                "submitted_at",
                                "content_hash",
                                "employee_signed_by",
                                "guardian_signed_by",
                                "confirmations"
                            ]
                        }
                    },
                    "employer_signed_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "employer_signed_by_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "status",
                    "group",
                    "link_expired",
                    "link_expires_at",
                    "employee",
                    "invite_channel",
                    "employment_type",
                    "flat_rate_taxation_planned",
                    "lock_version",
                    "progress_done",
                    "progress_total",
                    "current_step",
                    "step_count",
                    "submitted_revision",
                    "reminder_count",
                    "last_reminded_at",
                    "first_opened_at",
                    "last_activity_at",
                    "query_answered",
                    "completed_at",
                    "revoked_at",
                    "revoke_reason",
                    "pdf_document_id",
                    "created_at",
                    "form_version",
                    "invite_email",
                    "person_answers",
                    "employer_answers",
                    "employer_origins",
                    "documents_present",
                    "field_reviews",
                    "master_data_decisions",
                    "evaluation",
                    "hints",
                    "diff",
                    "needs_insurance_valid_from",
                    "blockers",
                    "sections",
                    "can_complete",
                    "can_see_special_categories",
                    "queries",
                    "documents",
                    "revisions",
                    "employer_signed_at",
                    "employer_signed_by_name"
                ],
                "title": "PersonnelQuestionnaireDetailResource"
            },
            "PersonnelQuestionnaireDocumentType": {
                "type": "string",
                "description": "Proof documents a person can upload in wizard step 6 (section 15 of the template plus the optional previous payslip). When a type is requested is decided by the `visible_if` rules of its field in the FormSchema (NW-01).\n",
                "enum": [
                    "tax_certificate",
                    "sv_card",
                    "rv_exemption",
                    "pkv",
                    "vwl",
                    "school",
                    "disability",
                    "social_fund",
                    "previous_payslip"
                ],
                "title": "PersonnelQuestionnaireDocumentType"
            },
            "PersonnelQuestionnaireLinkResource": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string"
                    },
                    "expires_at": {
                        "type": "string"
                    },
                    "link_expired": {
                        "type": "boolean"
                    },
                    "sent": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "url",
                    "expires_at",
                    "link_expired",
                    "sent"
                ],
                "title": "PersonnelQuestionnaireLinkResource"
            },
            "PersonnelQuestionnaireResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "status": {
                        "$ref": "#/components/schemas/PersonnelQuestionnaireStatus"
                    },
                    "group": {
                        "type": "string",
                        "enum": [
                            "review",
                            "completed",
                            "revoked",
                            "with_employee"
                        ]
                    },
                    "link_expired": {
                        "type": "boolean"
                    },
                    "link_expires_at": {
                        "type": "string"
                    },
                    "employee": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "surname": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "reference_no": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "position": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "employed_start": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "id",
                            "name",
                            "surname",
                            "reference_no",
                            "position",
                            "employed_start"
                        ]
                    },
                    "invite_channel": {
                        "type": "string"
                    },
                    "employment_type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/EmploymentType"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "flat_rate_taxation_planned": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "lock_version": {
                        "type": "integer"
                    },
                    "progress_done": {
                        "type": "integer"
                    },
                    "progress_total": {
                        "type": "integer"
                    },
                    "current_step": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "step_count": {
                        "type": "integer"
                    },
                    "submitted_revision": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "reminder_count": {
                        "type": "integer"
                    },
                    "last_reminded_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "first_opened_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "last_activity_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "query_answered": {
                        "type": "boolean"
                    },
                    "completed_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "revoked_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "revoke_reason": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "pdf_document_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "status",
                    "group",
                    "link_expired",
                    "link_expires_at",
                    "employee",
                    "invite_channel",
                    "employment_type",
                    "flat_rate_taxation_planned",
                    "lock_version",
                    "progress_done",
                    "progress_total",
                    "current_step",
                    "step_count",
                    "submitted_revision",
                    "reminder_count",
                    "last_reminded_at",
                    "first_opened_at",
                    "last_activity_at",
                    "query_answered",
                    "completed_at",
                    "revoked_at",
                    "revoke_reason",
                    "pdf_document_id",
                    "created_at"
                ],
                "title": "PersonnelQuestionnaireResource"
            },
            "PersonnelQuestionnaireSettingsResource": {
                "type": "object",
                "properties": {
                    "link_days": {
                        "type": "integer"
                    },
                    "link_days_min": {
                        "type": "integer"
                    },
                    "link_days_max": {
                        "type": "integer"
                    },
                    "auto_reminders": {
                        "type": "boolean"
                    },
                    "allow_cash_payment": {
                        "type": "boolean"
                    },
                    "construction_industry": {
                        "type": "boolean"
                    },
                    "privacy_notice": {
                        "type": "string"
                    },
                    "privacy_notice_is_default": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "link_days",
                    "link_days_min",
                    "link_days_max",
                    "auto_reminders",
                    "allow_cash_payment",
                    "construction_industry",
                    "privacy_notice",
                    "privacy_notice_is_default"
                ],
                "title": "PersonnelQuestionnaireSettingsResource"
            },
            "PersonnelQuestionnaireStatus": {
                "type": "string",
                "description": "Status of a personnel questionnaire (D3). Link expiry is deliberately not a status but derived from `token_expires_at` (`link_expired`), so an expired link can be rotated without losing data. invited \u2192 in_progress \u2192 submitted \u21c4 changes_requested \u2192 completed; revoked at any time.\n",
                "enum": [
                    "invited",
                    "in_progress",
                    "submitted",
                    "changes_requested",
                    "completed",
                    "revoked"
                ],
                "title": "PersonnelQuestionnaireStatus"
            },
            "PreviewCredentialsRequest": {
                "type": "object",
                "properties": {
                    "scope": {
                        "type": "string",
                        "enum": [
                            "missing",
                            "all",
                            "selected"
                        ]
                    },
                    "employee_ids": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "login_schema": {
                        "$ref": "#/components/schemas/LoginSchema"
                    },
                    "template": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "overwrite_existing_login": {
                        "type": "boolean"
                    },
                    "send_email": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "scope",
                    "login_schema"
                ],
                "title": "PreviewCredentialsRequest"
            },
            "PreviewJobApplicationMailRequest": {
                "type": "object",
                "description": "Preview of a recruiting mail (OpenSpec add-recruiting, task 9.1): the template and optionally the\nsubject and body HR edited. Empty or missing texts fall back to the template.",
                "properties": {
                    "template": {
                        "$ref": "#/components/schemas/JobApplicationMailTemplate"
                    },
                    "subject": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "body": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 10000
                    }
                },
                "required": [
                    "template"
                ],
                "title": "PreviewJobApplicationMailRequest"
            },
            "PreviewRosterTemplateRequest": {
                "type": "object",
                "properties": {
                    "start_date": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "employee_groups": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "array",
                            "items": {
                                "type": "string",
                                "format": "uuid"
                            }
                        }
                    }
                },
                "required": [
                    "start_date"
                ],
                "title": "PreviewRosterTemplateRequest"
            },
            "PreviewWorkingTimeRequest": {
                "type": "object",
                "description": "Draft payload for the correction preview \u2014 deliberately the same shape as\n{@see StoreAlteredEventRequest} minus `reason`, which is only needed when the\ncorrection is actually submitted.",
                "properties": {
                    "date": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "events": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "state": {
                                    "type": "integer",
                                    "enum": [
                                        "1",
                                        "2"
                                    ]
                                },
                                "timestamp": {
                                    "type": "string",
                                    "format": "date-time"
                                }
                            },
                            "required": [
                                "state",
                                "timestamp"
                            ]
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "date",
                    "events"
                ],
                "title": "PreviewWorkingTimeRequest"
            },
            "ProjectResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "cost_center": {
                        "$ref": "#/components/schemas/CostCenterResource"
                    },
                    "active": {
                        "type": "string"
                    },
                    "activity_requirement": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "code",
                    "name",
                    "description",
                    "active",
                    "activity_requirement",
                    "created_at",
                    "updated_at"
                ],
                "title": "ProjectResource"
            },
            "ProjectSessionResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "project": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ProjectResource"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "cost_center"
                                ]
                            }
                        ]
                    },
                    "activity": {
                        "$ref": "#/components/schemas/WorkActivityResource"
                    },
                    "start_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "end_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "duration": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "full_day": {
                        "type": "boolean"
                    },
                    "note": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "start_time",
                    "end_time",
                    "duration",
                    "full_day",
                    "note",
                    "created_at",
                    "updated_at"
                ],
                "title": "ProjectSessionResource"
            },
            "PublishReleaseRequest": {
                "type": "object",
                "description": "Body of POST /rest/releases/publish \u2014 marks every platform artifact of a\nversion as published and rewrites the update manifest.",
                "properties": {
                    "app": {
                        "type": "string",
                        "enum": [
                            "desktop",
                            "terminal-android"
                        ]
                    },
                    "version": {
                        "type": "string",
                        "pattern": "^\\d+\\.\\d+\\.\\d+$"
                    },
                    "channel": {
                        "type": "string"
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 8192
                    }
                },
                "required": [
                    "app",
                    "version",
                    "channel"
                ],
                "title": "PublishReleaseRequest"
            },
            "PublishRosterEntriesRequest": {
                "type": "object",
                "description": "Body of POST /rest/rosters/{roster}/entries/publish. Either a list of\nentries or a whole day is published, never both and never neither.",
                "properties": {
                    "entry_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "minItems": 1
                    },
                    "date": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "force": {
                        "type": "boolean"
                    }
                },
                "title": "PublishRosterEntriesRequest"
            },
            "QuestionnaireCountryLookupRequest": {
                "type": "object",
                "description": "L\u00e4nderliste des Wizards, optional gefiltert (Name oder ISO-Code).",
                "properties": {
                    "search": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100
                    }
                },
                "title": "QuestionnaireCountryLookupRequest"
            },
            "QuestionnairePostalCodeLookupRequest": {
                "type": "object",
                "description": "PLZ \u2192 Ort im Wizard (Ausf\u00fcllhilfe, ein fehlender Treffer macht die PLZ nicht ung\u00fcltig).",
                "properties": {
                    "postal_code": {
                        "type": "string",
                        "maxLength": 10
                    },
                    "country": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "minLength": 2,
                        "maxLength": 2
                    }
                },
                "required": [
                    "postal_code"
                ],
                "title": "QuestionnairePostalCodeLookupRequest"
            },
            "QuestionnaireSessionResource": {
                "type": "object",
                "properties": {
                    "session_id": {
                        "type": "string"
                    },
                    "status": {
                        "$ref": "#/components/schemas/PersonnelQuestionnaireStatus"
                    },
                    "editable": {
                        "type": "boolean"
                    },
                    "editable_fields": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "current_step": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "step_count": {
                        "type": "integer"
                    },
                    "company_name": {
                        "type": "string"
                    },
                    "first_name": {
                        "type": "string"
                    },
                    "surname": {
                        "type": "string"
                    },
                    "entry_date": {
                        "type": "string"
                    },
                    "link_expires_at": {
                        "type": "string"
                    },
                    "privacy_notice": {
                        "type": "string"
                    },
                    "construction_industry": {
                        "type": "boolean"
                    },
                    "allow_cash_payment": {
                        "type": "boolean"
                    },
                    "employment_type": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "flat_rate_taxation_planned": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "minijob_limit_cents": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "answers": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "origins": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string"
                        }
                    },
                    "masked": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "bank": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "country": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "bic_required": {
                                "type": "boolean"
                            },
                            "bank_name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "bic": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "country",
                            "bic_required",
                            "bank_name",
                            "bic"
                        ]
                    },
                    "evaluation": {
                        "type": "object",
                        "properties": {
                            "visible": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "hidden": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "errors": {
                                "type": "object",
                                "additionalProperties": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "rule": {
                                                "type": "string"
                                            },
                                            "code": {
                                                "type": "string"
                                            }
                                        },
                                        "required": [
                                            "rule",
                                            "code"
                                        ]
                                    }
                                }
                            },
                            "confirms": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "rule": {
                                            "type": "string"
                                        },
                                        "key": {
                                            "type": "string"
                                        },
                                        "fields": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "confirmed": {
                                            "type": "boolean"
                                        }
                                    },
                                    "required": [
                                        "rule",
                                        "key",
                                        "fields",
                                        "confirmed"
                                    ]
                                }
                            },
                            "derived": {
                                "type": "object",
                                "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                        "value": {},
                                        "mode": {
                                            "type": "string"
                                        },
                                        "rule": {
                                            "type": "string"
                                        },
                                        "source": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "value",
                                        "mode",
                                        "rule",
                                        "source"
                                    ]
                                }
                            },
                            "allowed": {
                                "type": "object",
                                "additionalProperties": {
                                    "type": "array",
                                    "items": {}
                                }
                            },
                            "required": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "missing": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "deferrable": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            }
                        },
                        "required": [
                            "visible",
                            "hidden",
                            "errors",
                            "confirms",
                            "derived",
                            "allowed",
                            "required",
                            "missing",
                            "deferrable"
                        ]
                    },
                    "documents": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "document_type": {
                                    "type": "string"
                                },
                                "field_id": {
                                    "type": "string"
                                },
                                "file_name": {
                                    "type": "string"
                                },
                                "mime_type": {
                                    "type": "string"
                                },
                                "size_bytes": {
                                    "type": "integer"
                                },
                                "status": {
                                    "type": "string"
                                },
                                "locked": {
                                    "type": "boolean"
                                },
                                "uploaded_at": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "id",
                                "document_type",
                                "field_id",
                                "file_name",
                                "mime_type",
                                "size_bytes",
                                "status",
                                "locked",
                                "uploaded_at"
                            ]
                        }
                    },
                    "open_query": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "message": {
                                "type": "string"
                            },
                            "field_ids": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "created_at": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "message",
                            "field_ids",
                            "created_at"
                        ]
                    },
                    "submitted_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "revision": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "content_hash": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "progress": {
                        "type": "object",
                        "properties": {
                            "done": {
                                "type": "integer"
                            },
                            "total": {
                                "type": "integer"
                            },
                            "sections": {
                                "type": "object",
                                "additionalProperties": {
                                    "type": "boolean"
                                }
                            }
                        },
                        "required": [
                            "done",
                            "total",
                            "sections"
                        ]
                    }
                },
                "required": [
                    "session_id",
                    "status",
                    "editable",
                    "editable_fields",
                    "current_step",
                    "step_count",
                    "company_name",
                    "first_name",
                    "surname",
                    "entry_date",
                    "link_expires_at",
                    "privacy_notice",
                    "construction_industry",
                    "allow_cash_payment",
                    "employment_type",
                    "flat_rate_taxation_planned",
                    "minijob_limit_cents",
                    "answers",
                    "origins",
                    "masked",
                    "bank",
                    "evaluation",
                    "documents",
                    "open_query",
                    "submitted_at",
                    "revision",
                    "content_hash",
                    "progress"
                ],
                "title": "QuestionnaireSessionResource"
            },
            "QuestionnaireUploadResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "document_type": {
                        "type": "string"
                    },
                    "field_id": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "checking",
                            "checked"
                        ]
                    }
                },
                "required": [
                    "id",
                    "document_type",
                    "field_id",
                    "status"
                ],
                "title": "QuestionnaireUploadResource"
            },
            "RecalculateControllingRequest": {
                "type": "object",
                "description": "POST /rest/controlling/recalculate: a month range `from`..`to` (`YYYY-MM`), at most 24 months,\n`to` not in the future.",
                "properties": {
                    "from": {
                        "type": "string",
                        "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
                    },
                    "to": {
                        "type": "string",
                        "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
                    }
                },
                "required": [
                    "from",
                    "to"
                ],
                "title": "RecalculateControllingRequest"
            },
            "RecordEmploymentExitRequest": {
                "type": "object",
                "description": "Exit (`POST /rest/employees/{employee}/employment_periods/{period}/exit`). The reason `deleted`\nis reserved for the soft-delete and cannot be chosen here.",
                "properties": {
                    "ended_on": {
                        "type": "string",
                        "format": "date"
                    },
                    "end_reason": {
                        "type": "string",
                        "description": "Grund f\u00fcr das Ende eines Besch\u00e4ftigungszeitraums (`employment_periods.end_reason`). `Deleted` setzt nur die DSGVO-L\u00f6schung ({@see \\App\\Services\\EmployeeService::delete()}); \u00fcber die Austritts-Route ist er nicht w\u00e4hlbar.\n",
                        "enum": [
                            "resignation",
                            "termination",
                            "mutual",
                            "fixed_term",
                            "retirement",
                            "death",
                            "other"
                        ]
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 2000
                    }
                },
                "required": [
                    "ended_on",
                    "end_reason"
                ],
                "title": "RecordEmploymentExitRequest"
            },
            "RecruitingCompanyProfileResource": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "logo_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "accent_color": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "accent_color_effective": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "description_max_length": {
                        "type": "integer"
                    },
                    "website": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "logo_max_bytes": {
                        "type": "integer"
                    },
                    "logo_accepted_mime_types": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "logo_min_aspect_ratio": {
                        "type": "number"
                    },
                    "logo_max_aspect_ratio": {
                        "type": "number"
                    }
                },
                "required": [
                    "name",
                    "logo_url",
                    "accent_color",
                    "accent_color_effective",
                    "description",
                    "description_max_length",
                    "website",
                    "logo_max_bytes",
                    "logo_accepted_mime_types",
                    "logo_min_aspect_ratio",
                    "logo_max_aspect_ratio"
                ],
                "title": "RecruitingCompanyProfileResource"
            },
            "RecruitingFeedChannelResource": {
                "type": "object",
                "properties": {
                    "key": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "status": {
                        "$ref": "#/components/schemas/JobFeedChannelStatus"
                    },
                    "available_from": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "key",
                    "name",
                    "status",
                    "available_from"
                ],
                "title": "RecruitingFeedChannelResource"
            },
            "RecruitingLocationResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "city": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "postal_code": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "address": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "address_additional": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "state_region": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "country": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "name",
                    "city",
                    "postal_code",
                    "address",
                    "address_additional",
                    "state_region",
                    "country"
                ],
                "title": "RecruitingLocationResource"
            },
            "RecruitingMailTemplateResource": {
                "type": "object",
                "properties": {
                    "key": {
                        "$ref": "#/components/schemas/JobApplicationMailTemplate"
                    },
                    "subject": {
                        "type": "string"
                    },
                    "body": {
                        "type": "string"
                    },
                    "is_default": {
                        "type": "boolean"
                    },
                    "default_subject": {
                        "type": "string"
                    },
                    "default_body": {
                        "type": "string"
                    }
                },
                "required": [
                    "key",
                    "subject",
                    "body",
                    "is_default",
                    "default_subject",
                    "default_body"
                ],
                "title": "RecruitingMailTemplateResource"
            },
            "RecruitingMailTemplatesResource": {
                "type": "object",
                "properties": {
                    "placeholders": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "templates": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/RecruitingMailTemplateResource"
                        }
                    }
                },
                "required": [
                    "placeholders",
                    "templates"
                ],
                "title": "RecruitingMailTemplatesResource"
            },
            "RecruitingPlanResource": {
                "type": "object",
                "properties": {
                    "plan": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "trial",
                            "core",
                            "pro",
                            "expired",
                            "recruiting_free",
                            null
                        ]
                    },
                    "recruiting_only": {
                        "type": "boolean"
                    },
                    "posting_limit": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "published_count": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "limit_reached": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "plan",
                    "recruiting_only",
                    "posting_limit",
                    "published_count",
                    "limit_reached"
                ],
                "title": "RecruitingPlanResource"
            },
            "RecruitingSettingsResource": {
                "type": "object",
                "properties": {
                    "privacy_notice": {
                        "type": "string"
                    },
                    "privacy_notice_is_default": {
                        "type": "boolean"
                    },
                    "privacy_notice_version": {
                        "type": "integer"
                    },
                    "retention_months": {
                        "type": "integer"
                    },
                    "retention_months_min": {
                        "type": "integer"
                    },
                    "retention_months_max": {
                        "type": "integer"
                    },
                    "retention_months_default": {
                        "type": "integer"
                    },
                    "notification_email": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "feeds_enabled": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "privacy_notice",
                    "privacy_notice_is_default",
                    "privacy_notice_version",
                    "retention_months",
                    "retention_months_min",
                    "retention_months_max",
                    "retention_months_default",
                    "notification_email",
                    "feeds_enabled"
                ],
                "title": "RecruitingSettingsResource"
            },
            "RecruitingWidgetSettingsResource": {
                "type": "object",
                "properties": {
                    "filters": {
                        "type": "object",
                        "properties": {
                            "location": {
                                "type": "boolean"
                            },
                            "employment_type": {
                                "type": "boolean"
                            }
                        },
                        "required": [
                            "location",
                            "employment_type"
                        ]
                    },
                    "card_fields": {
                        "type": "object",
                        "properties": {
                            "location": {
                                "type": "boolean"
                            },
                            "employment_type": {
                                "type": "boolean"
                            },
                            "workplace_type": {
                                "type": "boolean"
                            },
                            "salary": {
                                "type": "boolean"
                            },
                            "published_at": {
                                "type": "boolean"
                            }
                        },
                        "required": [
                            "location",
                            "employment_type",
                            "workplace_type",
                            "salary",
                            "published_at"
                        ]
                    },
                    "per_page": {
                        "type": "integer"
                    },
                    "colors": {
                        "type": "object",
                        "properties": {
                            "background": {
                                "type": "string"
                            },
                            "card": {
                                "type": "string"
                            },
                            "border": {
                                "type": "string"
                            },
                            "text": {
                                "type": "string"
                            },
                            "accent": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "background",
                            "card",
                            "border",
                            "text",
                            "accent"
                        ]
                    },
                    "preselect": {
                        "type": "object",
                        "properties": {
                            "location_id": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "employment_type": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "location_id",
                            "employment_type"
                        ]
                    },
                    "per_page_options": {
                        "type": "array",
                        "prefixItems": [
                            {
                                "type": "integer",
                                "const": 5
                            },
                            {
                                "type": "integer",
                                "const": 10
                            },
                            {
                                "type": "integer",
                                "const": 25
                            },
                            {
                                "type": "integer",
                                "const": 50
                            }
                        ],
                        "minItems": 4,
                        "maxItems": 4
                    }
                },
                "required": [
                    "filters",
                    "card_fields",
                    "per_page",
                    "colors",
                    "preselect",
                    "per_page_options"
                ],
                "title": "RecruitingWidgetSettingsResource"
            },
            "RedeemEnrollmentTokenRequest": {
                "type": "object",
                "properties": {
                    "token": {
                        "type": "string"
                    },
                    "device": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    }
                },
                "required": [
                    "token"
                ],
                "title": "RedeemEnrollmentTokenRequest"
            },
            "ReferenceNoHistoryResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "reference_no": {
                        "type": "string"
                    },
                    "valid_from": {
                        "type": "string"
                    },
                    "valid_until": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "changed_by_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "reference_no",
                    "valid_from",
                    "valid_until",
                    "reason",
                    "changed_by_name"
                ],
                "title": "ReferenceNoHistoryResource"
            },
            "RegisterDeviceTokenRequest": {
                "type": "object",
                "description": "Body of POST /rest/push-token \u2014 registers a device for push messages.",
                "properties": {
                    "token": {
                        "type": "string",
                        "maxLength": 500
                    },
                    "platform": {
                        "type": "string",
                        "enum": [
                            "ios",
                            "android"
                        ]
                    },
                    "device_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    }
                },
                "required": [
                    "token",
                    "platform"
                ],
                "title": "RegisterDeviceTokenRequest"
            },
            "RegisterTenantRequest": {
                "type": "object",
                "description": "Body of `POST /rest/register`. `product` selects the registration entry\n({@see RegistrationProduct}); `recruiting` creates the free recruiting profile and cannot be\ncombined with a partner code (partner codes grant a paid plan with the default modules).",
                "properties": {
                    "company_name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "subdomain": {
                        "type": "string",
                        "maxLength": 63
                    },
                    "email": {
                        "type": "string",
                        "format": "email",
                        "maxLength": 255
                    },
                    "admin_code": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "admin_password": {
                        "type": "string",
                        "minLength": 8
                    },
                    "admin_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "admin_surname": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "timezone": {
                        "type": "string"
                    },
                    "product": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/RegistrationProduct"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "partner_code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 64
                    },
                    "altcha": {
                        "type": "string",
                        "maxLength": 4096
                    },
                    "admin_password_confirmation": {
                        "type": "string",
                        "minLength": 8
                    }
                },
                "required": [
                    "company_name",
                    "subdomain",
                    "email",
                    "admin_code",
                    "admin_password",
                    "altcha",
                    "admin_password_confirmation"
                ],
                "title": "RegisterTenantRequest"
            },
            "RegistrationPeriod": {
                "type": "string",
                "enum": [
                    "monthly",
                    "quarterly",
                    "yearly"
                ],
                "title": "RegistrationPeriod"
            },
            "RegistrationProduct": {
                "type": "string",
                "description": "Entry of the self-service registration (`POST /rest/register`, field `product`). `stampfactory` (default) starts the regular six-week trial with the default modules; `recruiting` creates the free recruiting profile (OpenSpec add-recruiting, D15): plan `recruiting_free`, no trial deadline and exactly the modules the plan allows.\n",
                "enum": [
                    "stampfactory",
                    "recruiting"
                ],
                "title": "RegistrationProduct"
            },
            "RejectAlteredEventRequest": {
                "type": "object",
                "description": "Body of PATCH /rest/employees/{employee}/working_time/reject. The note is\nmandatory: the employee sees it as the reason for the rejection.",
                "properties": {
                    "date": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "note": {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 1000
                    }
                },
                "required": [
                    "date",
                    "note"
                ],
                "title": "RejectAlteredEventRequest"
            },
            "RemindPersonnelQuestionnaireRequest": {
                "type": "object",
                "description": "\u201eErinnern\u201c: optional eine (neue) private E-Mail-Adresse; ohne Adresse zeigt die Oberfl\u00e4che den\nLink-Dialog.",
                "properties": {
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "email",
                        "maxLength": 255
                    }
                },
                "title": "RemindPersonnelQuestionnaireRequest"
            },
            "ReplaceEmployeeCapitalFormationContractsRequest": {
                "type": "object",
                "description": "Vollst\u00e4ndige Liste der VWL-Vertr\u00e4ge einer besch\u00e4ftigten Person (ersetzt den Bestand). IBAN und BIC\nwerden wie in der Bankverbindung gepr\u00fcft und normalisiert gespeichert.",
                "properties": {
                    "items": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "recipient": {
                                    "type": "string",
                                    "maxLength": 255
                                },
                                "contract_number": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "maxLength": 255
                                },
                                "since": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "format": "date"
                                },
                                "iban": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "maxLength": 34
                                },
                                "bic": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "maxLength": 11
                                },
                                "amount": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "minimum": 0,
                                    "maximum": 99999.99
                                },
                                "employer_share": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "minimum": 0,
                                    "maximum": 99999.99
                                }
                            },
                            "required": [
                                "recipient"
                            ]
                        },
                        "maxItems": 10
                    }
                },
                "required": [
                    "items"
                ],
                "title": "ReplaceEmployeeCapitalFormationContractsRequest"
            },
            "ReplaceEmployeeChildrenRequest": {
                "type": "object",
                "description": "Vollst\u00e4ndige Liste der Kinder einer besch\u00e4ftigten Person (ersetzt den Bestand). Kinderzahl und\nKinderfreibetr\u00e4ge an den Lohndaten bleiben davon unber\u00fchrt.",
                "properties": {
                    "items": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "surname": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "maxLength": 255
                                },
                                "first_name": {
                                    "type": "string",
                                    "maxLength": 255
                                },
                                "birth_date": {
                                    "type": "string",
                                    "format": "date"
                                }
                            },
                            "required": [
                                "first_name",
                                "birth_date"
                            ]
                        },
                        "maxItems": 30
                    }
                },
                "required": [
                    "items"
                ],
                "title": "ReplaceEmployeeChildrenRequest"
            },
            "ReplaceEmployeeOtherEmploymentsRequest": {
                "type": "object",
                "description": "Vollst\u00e4ndige Liste der weiteren Besch\u00e4ftigungen (ersetzt den Bestand). `multiple_employment` an den\nLohndaten wird daraus abgeleitet.",
                "properties": {
                    "items": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "from": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "format": "date"
                                },
                                "to": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "format": "date"
                                },
                                "employer": {
                                    "type": "string",
                                    "maxLength": 255
                                },
                                "activity": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "maxLength": 255
                                },
                                "weekly_hours": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "maximum": 99.99
                                },
                                "kind": {
                                    "$ref": "#/components/schemas/OtherEmploymentKind"
                                },
                                "monthly_pay": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "minimum": 0,
                                    "maximum": 99999999.99
                                }
                            },
                            "required": [
                                "employer",
                                "kind"
                            ]
                        },
                        "maxItems": 10
                    }
                },
                "required": [
                    "items"
                ],
                "title": "ReplaceEmployeeOtherEmploymentsRequest"
            },
            "ReplaceEmployeePreviousEmploymentsRequest": {
                "type": "object",
                "description": "Vollst\u00e4ndige Liste der steuerpflichtigen Vorbesch\u00e4ftigungen im Kalenderjahr des Eintritts\n(ersetzt den Bestand). Zeitr\u00e4ume d\u00fcrfen sich \u00fcberschneiden und \u00fcber den Jahreswechsel reichen.",
                "properties": {
                    "items": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "from": {
                                    "type": "string",
                                    "format": "date"
                                },
                                "to": {
                                    "type": "string",
                                    "format": "date"
                                },
                                "kind": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "maxLength": 255
                                },
                                "days": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "minimum": 0,
                                    "maximum": 366
                                }
                            },
                            "required": [
                                "from",
                                "to"
                            ]
                        },
                        "maxItems": 20
                    }
                },
                "required": [
                    "items"
                ],
                "title": "ReplaceEmployeePreviousEmploymentsRequest"
            },
            "ReportJobPostingRequest": {
                "type": "object",
                "description": "Report about a public job posting (OpenSpec add-recruiting, D15): a reason from\n{@see JobPostingReportReason}, an optional message and reply address, the solved ALTCHA payload of\nthe careers challenge and the honeypot `website`, which must stay empty. The ALTCHA payload is\nverified by the service after the posting check.",
                "properties": {
                    "reason": {
                        "$ref": "#/components/schemas/JobPostingReportReason"
                    },
                    "message": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "email",
                        "maxLength": 255
                    },
                    "altcha": {
                        "type": "string",
                        "maxLength": 4096
                    },
                    "website": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    }
                },
                "required": [
                    "reason",
                    "altcha"
                ],
                "title": "ReportJobPostingRequest"
            },
            "ResendRegistrationRequest": {
                "type": "object",
                "description": "Body of POST /rest/register/resend \u2014 asks for a new verification mail.",
                "properties": {
                    "email": {
                        "type": "string",
                        "format": "email"
                    }
                },
                "required": [
                    "email"
                ],
                "title": "ResendRegistrationRequest"
            },
            "ResetEmployeePasswordsRequest": {
                "type": "object",
                "description": "Body of PUT /rest/employees/passwords \u2014 sets one password for a whole\ngroup of employees.",
                "properties": {
                    "password": {
                        "type": "string",
                        "minLength": 8
                    },
                    "all": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "password",
                    "all"
                ],
                "title": "ResetEmployeePasswordsRequest"
            },
            "RespondSubstituteRequest": {
                "type": "object",
                "description": "Body of PUT /rest/leave_requests/{leaveRequest}/substitute. Only the\nnominated substitute answers here, and only with confirm or decline.",
                "properties": {
                    "status": {
                        "type": "string",
                        "enum": [
                            "confirmed",
                            "declined"
                        ]
                    }
                },
                "required": [
                    "status"
                ],
                "title": "RespondSubstituteRequest"
            },
            "RevokePersonnelQuestionnaireRequest": {
                "type": "object",
                "description": "\u201eFragebogen abbrechen\u201c mit optionalem Grund (D15).",
                "properties": {
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 500
                    }
                },
                "title": "RevokePersonnelQuestionnaireRequest"
            },
            "RoleResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "display_name": {
                        "type": "string"
                    },
                    "is_system": {
                        "type": "boolean"
                    },
                    "permissions": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "id",
                                "name"
                            ]
                        }
                    }
                },
                "required": [
                    "id",
                    "name",
                    "display_name",
                    "is_system"
                ],
                "title": "RoleResource"
            },
            "RosterAutoPauseMode": {
                "type": "string",
                "description": "Automatic minimum-pause deduction mode for roster days (tenant setting `roster.auto_pause_mode`).\n",
                "enum": [
                    "off",
                    "legal",
                    "planned",
                    "max_of_both"
                ],
                "title": "RosterAutoPauseMode"
            },
            "RosterBudgetPeriod": {
                "type": "string",
                "enum": [
                    "weekly",
                    "monthly"
                ],
                "title": "RosterBudgetPeriod"
            },
            "RosterBudgetResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "unit_id": {
                        "type": "string"
                    },
                    "period": {
                        "type": "string"
                    },
                    "amount_cents": {
                        "type": "string"
                    },
                    "amount": {
                        "type": "string"
                    },
                    "currency": {
                        "type": "string"
                    },
                    "effective_from": {
                        "type": "string"
                    },
                    "created_by": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "unit_id",
                    "period",
                    "amount_cents",
                    "amount",
                    "currency",
                    "effective_from",
                    "created_by",
                    "created_at",
                    "updated_at"
                ],
                "title": "RosterBudgetResource"
            },
            "RosterEntryResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "roster_id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "employee_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "date": {
                        "type": "string"
                    },
                    "shift_id": {
                        "type": "string"
                    },
                    "shift": {
                        "$ref": "#/components/schemas/ShiftResource"
                    },
                    "start_time": {
                        "type": "string"
                    },
                    "end_time": {
                        "type": "string"
                    },
                    "effective_start": {
                        "type": "string"
                    },
                    "effective_end": {
                        "type": "string"
                    },
                    "planned_work": {
                        "type": "string"
                    },
                    "note": {
                        "type": "string"
                    },
                    "work_area_id": {
                        "type": "string"
                    },
                    "effective_work_area_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "type": "string"
                    },
                    "generated": {
                        "type": "boolean"
                    },
                    "series_id": {
                        "type": "string"
                    },
                    "source_unit_id": {
                        "type": "string"
                    },
                    "source_unit": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "id",
                            "name"
                        ]
                    },
                    "is_cross_unit": {
                        "type": "boolean"
                    },
                    "published_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "is_open": {
                        "type": "boolean"
                    },
                    "applications_count": {
                        "type": "integer"
                    },
                    "acknowledgement": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "pending": {
                                "type": "integer"
                            },
                            "acknowledged": {
                                "type": "integer"
                            },
                            "status": {
                                "type": "string"
                            },
                            "acknowledged_at": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "pending",
                            "acknowledged",
                            "status",
                            "acknowledged_at"
                        ]
                    },
                    "my_application": {
                        "description": "Kontextabh\u00e4ngig, kann null sein."
                    },
                    "warnings": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "minItems": 0,
                        "maxItems": 0
                    }
                },
                "required": [
                    "id",
                    "roster_id",
                    "employee_id",
                    "date",
                    "shift_id",
                    "start_time",
                    "end_time",
                    "effective_start",
                    "effective_end",
                    "planned_work",
                    "note",
                    "work_area_id",
                    "effective_work_area_id",
                    "status",
                    "generated",
                    "series_id",
                    "source_unit_id",
                    "source_unit",
                    "is_cross_unit",
                    "published_at",
                    "is_open",
                    "applications_count",
                    "warnings"
                ],
                "title": "RosterEntryResource"
            },
            "RosterEntryStatus": {
                "type": "integer",
                "enum": [
                    0,
                    1,
                    2,
                    3
                ],
                "title": "RosterEntryStatus"
            },
            "RosterResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "period_start": {
                        "type": "string"
                    },
                    "period_end": {
                        "type": "string"
                    },
                    "unit_id": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "created_by": {
                        "type": "string"
                    },
                    "notes": {
                        "type": "string"
                    },
                    "budget_cents": {
                        "type": "string"
                    },
                    "entries_count": {
                        "type": "integer"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "name",
                    "period_start",
                    "period_end",
                    "unit_id",
                    "status",
                    "created_by",
                    "notes",
                    "budget_cents",
                    "created_at",
                    "updated_at"
                ],
                "title": "RosterResource"
            },
            "RosterTemplateKind": {
                "type": "integer",
                "enum": [
                    0,
                    1
                ],
                "title": "RosterTemplateKind"
            },
            "RosterTemplateResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "kind": {
                        "type": "string"
                    },
                    "cycle_length_weeks": {
                        "type": "string"
                    },
                    "pattern": {
                        "type": "string"
                    },
                    "unit_id": {
                        "type": "string"
                    },
                    "group_count": {
                        "type": "integer"
                    },
                    "entries_count": {
                        "type": "integer"
                    }
                },
                "required": [
                    "id",
                    "name",
                    "kind",
                    "cycle_length_weeks",
                    "pattern",
                    "unit_id",
                    "group_count",
                    "entries_count"
                ],
                "title": "RosterTemplateResource"
            },
            "SaveRosterTemplateRequest": {
                "type": "object",
                "description": "Body of POST /rest/rosters/{roster}/save_template \u2014 stores one week of\nthe plan as a reusable template.",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "week_start": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "with_staffing": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "name",
                    "week_start"
                ],
                "title": "SaveRosterTemplateRequest"
            },
            "ScheduleModelEntryResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "weekday": {
                        "type": "string"
                    },
                    "periods": {
                        "type": "string"
                    },
                    "pauses": {
                        "type": "string"
                    },
                    "core_times": {
                        "type": "string"
                    },
                    "pause_thresholds": {
                        "type": "string"
                    },
                    "accommodation": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "start": {
                                "type": "integer"
                            },
                            "end": {
                                "type": "integer"
                            }
                        },
                        "required": [
                            "start",
                            "end"
                        ]
                    }
                },
                "required": [
                    "id",
                    "weekday",
                    "periods",
                    "pauses",
                    "core_times",
                    "pause_thresholds",
                    "accommodation"
                ],
                "title": "ScheduleModelEntryResource"
            },
            "ScheduleModelResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "accommodation_time": {
                        "type": "string"
                    },
                    "blocked_weekdays": {
                        "type": "array",
                        "description": "ISO weekdays (1-7) fully blocked from the time account",
                        "items": {
                            "type": "integer"
                        }
                    },
                    "night_begin": {
                        "type": "string"
                    },
                    "entries": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ScheduleModelEntryResource"
                        }
                    },
                    "work_weekdays": {
                        "type": "array",
                        "items": {
                            "type": "integer"
                        }
                    },
                    "work_weekdays_label": {
                        "type": "string"
                    },
                    "weekly_target_ms": {
                        "type": "string"
                    },
                    "weekly_target_hours": {
                        "type": "number"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "name",
                    "type",
                    "accommodation_time",
                    "blocked_weekdays",
                    "night_begin",
                    "work_weekdays",
                    "work_weekdays_label",
                    "weekly_target_ms",
                    "weekly_target_hours",
                    "created_at",
                    "updated_at"
                ],
                "title": "ScheduleModelResource"
            },
            "ScheduleModelType": {
                "type": "integer",
                "enum": [
                    0,
                    1,
                    2
                ],
                "title": "ScheduleModelType"
            },
            "ScheduleModelsHistoryResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "schedule_model_id": {
                        "type": "string"
                    },
                    "schedule_model": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/ScheduleModelResource"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "entries"
                                ]
                            }
                        ]
                    },
                    "valid_after": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "schedule_model_id",
                    "valid_after",
                    "created_at",
                    "updated_at"
                ],
                "title": "ScheduleModelsHistoryResource"
            },
            "SchoolDegree": {
                "type": "string",
                "description": "H\u00f6chster Schulabschluss. Die Werte sind die 6. Stelle des T\u00e4tigkeitsschl\u00fcssels (Schl\u00fcsselverzeichnis der Bundesagentur f\u00fcr Arbeit, Ausgabe 2010); `Unknown` (9) ist ausdr\u00fccklich zul\u00e4ssig.\n",
                "enum": [
                    "1",
                    "2",
                    "3",
                    "4",
                    "9"
                ],
                "title": "SchoolDegree"
            },
            "SelfUpdateEmployeeRequest": {
                "type": "object",
                "description": "Self-service profile update (`PUT /rest/employees/{employee}/self`).\n\nOwnership and the self-service permission are enforced in the controller,\nbecause the required permission depends on which fields are being changed.",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "surname": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "gender": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/Gender"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "birthday": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "emergency_contact_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "emergency_contact_relation": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "emergency_contact_phone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 32
                    },
                    "locale": {
                        "$ref": "#/components/schemas/Locale"
                    },
                    "sv_first_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "sv_last_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    }
                },
                "title": "SelfUpdateEmployeeRequest"
            },
            "SendJobApplicationMailRequest": {
                "type": "object",
                "description": "Sending a recruiting mail (OpenSpec add-recruiting, task 9.1): like the preview, plus `set_stage`,\nwhich moves the application to `rejected` together with a rejection (only allowed there).",
                "properties": {
                    "template": {
                        "$ref": "#/components/schemas/JobApplicationMailTemplate"
                    },
                    "subject": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 200
                    },
                    "body": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 10000
                    },
                    "set_stage": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "template"
                ],
                "title": "SendJobApplicationMailRequest"
            },
            "SeriesEditScope": {
                "type": "string",
                "enum": [
                    "only_this",
                    "this_and_following",
                    "all"
                ],
                "title": "SeriesEditScope"
            },
            "ShiftAcknowledgementResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "roster_entry_id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "employee_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "date": {
                        "type": "string"
                    },
                    "shift_name": {
                        "type": "string"
                    },
                    "change_kind": {
                        "type": "string"
                    },
                    "requested_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "acknowledged_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "acknowledged",
                            "pending"
                        ]
                    }
                },
                "required": [
                    "id",
                    "roster_entry_id",
                    "employee_id",
                    "change_kind",
                    "requested_at",
                    "acknowledged_at",
                    "status"
                ],
                "title": "ShiftAcknowledgementResource"
            },
            "ShiftApplicationResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "roster_entry_id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "employee_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "type": "string"
                    },
                    "note": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "roster_entry_id",
                    "employee_id",
                    "status",
                    "note",
                    "created_at"
                ],
                "title": "ShiftApplicationResource"
            },
            "ShiftRequirementResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "unit_id": {
                        "type": "string"
                    },
                    "shift_id": {
                        "type": "string"
                    },
                    "shift": {
                        "$ref": "#/components/schemas/ShiftResource"
                    },
                    "weekday": {
                        "type": "string"
                    },
                    "min_count": {
                        "type": "string"
                    },
                    "optimal_count": {
                        "type": "string"
                    },
                    "skills": {
                        "type": "array",
                        "items": {
                            "type": "array",
                            "items": {}
                        }
                    }
                },
                "required": [
                    "id",
                    "unit_id",
                    "shift_id",
                    "weekday",
                    "min_count",
                    "optimal_count"
                ],
                "title": "ShiftRequirementResource"
            },
            "ShiftResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "abbreviation": {
                        "type": "string"
                    },
                    "color": {
                        "type": "string"
                    },
                    "start_time": {
                        "type": "string"
                    },
                    "end_time": {
                        "type": "string"
                    },
                    "break_duration": {
                        "type": "string"
                    },
                    "is_overnight": {
                        "type": "string"
                    },
                    "schedule_model_id": {
                        "type": "string"
                    },
                    "work_area_id": {
                        "type": "string"
                    },
                    "tags": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                },
                                "minItems": 0,
                                "maxItems": 0
                            }
                        ]
                    },
                    "note": {
                        "type": "string"
                    },
                    "fairness_weight": {
                        "type": "integer"
                    },
                    "net_duration_ms": {
                        "type": "integer"
                    }
                },
                "required": [
                    "id",
                    "name",
                    "abbreviation",
                    "color",
                    "start_time",
                    "end_time",
                    "break_duration",
                    "is_overnight",
                    "schedule_model_id",
                    "work_area_id",
                    "tags",
                    "note",
                    "fairness_weight",
                    "net_duration_ms"
                ],
                "title": "ShiftResource"
            },
            "ShiftSwapRequestResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "requester_entry_id": {
                        "type": "string"
                    },
                    "requester_entry": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/RosterEntryResource"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "employee_name",
                                    "shift"
                                ]
                            }
                        ]
                    },
                    "requester_employee": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "target_employee_id": {
                        "type": "string"
                    },
                    "target_employee": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "target_entry_id": {
                        "type": "string"
                    },
                    "target_entry": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/RosterEntryResource"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "employee_name",
                                    "shift"
                                ]
                            }
                        ]
                    },
                    "status": {
                        "type": "string"
                    },
                    "manager_id": {
                        "type": "string"
                    },
                    "auto_approved": {
                        "type": "boolean"
                    },
                    "resolution": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "note": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "preview_warnings": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "code": {
                                    "type": "string"
                                },
                                "severity": {
                                    "type": "string"
                                },
                                "message": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "code",
                                "severity",
                                "message"
                            ]
                        }
                    }
                },
                "required": [
                    "id",
                    "requester_entry_id",
                    "target_employee_id",
                    "target_entry_id",
                    "status",
                    "manager_id",
                    "auto_approved",
                    "resolution",
                    "note",
                    "created_at",
                    "preview_warnings"
                ],
                "title": "ShiftSwapRequestResource"
            },
            "ShortWorkResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "start_date": {
                        "type": "string"
                    },
                    "end_date": {
                        "type": "string"
                    },
                    "reduction_percent": {
                        "type": "number"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "start_date",
                    "end_date",
                    "reduction_percent",
                    "created_at",
                    "updated_at"
                ],
                "title": "ShortWorkResource"
            },
            "SkillResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "category": {
                        "type": "string"
                    },
                    "color": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "expirable": {
                        "type": "string"
                    },
                    "is_active": {
                        "type": "string"
                    },
                    "sort_order": {
                        "type": "string"
                    },
                    "max_level": {
                        "type": "string"
                    },
                    "level_labels": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Cast to object so the level => label map survives JsonResource\nserialization (numeric-keyed arrays would be re-indexed to lists)"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "name",
                    "category",
                    "color",
                    "description",
                    "expirable",
                    "is_active",
                    "sort_order",
                    "max_level",
                    "level_labels",
                    "created_at",
                    "updated_at"
                ],
                "title": "SkillResource"
            },
            "StaffingAlertResource": {
                "type": "object",
                "properties": {
                    "date": {
                        "type": "string"
                    },
                    "shift_id": {
                        "type": "string"
                    },
                    "assigned": {
                        "type": "string"
                    },
                    "min_count": {
                        "type": "string"
                    },
                    "shortfall": {
                        "type": "string"
                    }
                },
                "required": [
                    "date",
                    "shift_id",
                    "assigned",
                    "min_count",
                    "shortfall"
                ],
                "title": "StaffingAlertResource"
            },
            "StoreAbsenceTypeRequest": {
                "type": "object",
                "properties": {
                    "slug": {
                        "type": "string",
                        "pattern": "^[a-z0-9_]+$",
                        "maxLength": 100
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "color": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^#[0-9A-Fa-f]{6}$",
                        "maxLength": 7
                    },
                    "icon": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100
                    },
                    "category": {
                        "$ref": "#/components/schemas/AbsenceCategory"
                    },
                    "unit": {
                        "type": "string",
                        "enum": [
                            "day",
                            "hour"
                        ]
                    },
                    "half_day_allowed": {
                        "type": "boolean"
                    },
                    "affects_vacation": {
                        "type": "boolean"
                    },
                    "target_work_factor": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                    },
                    "working_time_flag": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "requires_approval": {
                        "type": "boolean"
                    },
                    "is_paid": {
                        "type": "boolean"
                    },
                    "certificate_required": {
                        "type": "boolean"
                    },
                    "certificate_deadline_days": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 1
                    },
                    "substitute_option": {
                        "$ref": "#/components/schemas/SubstituteOption"
                    },
                    "count_weekdays_only": {
                        "type": "boolean"
                    },
                    "eau_relevant": {
                        "type": "boolean"
                    },
                    "sort_order": {
                        "type": "integer",
                        "minimum": 0
                    }
                },
                "required": [
                    "slug",
                    "name",
                    "category",
                    "unit",
                    "substitute_option"
                ],
                "title": "StoreAbsenceTypeRequest"
            },
            "StoreAlteredEventRequest": {
                "type": "object",
                "properties": {
                    "date": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "events": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "state": {
                                    "type": "integer",
                                    "enum": [
                                        "1",
                                        "2"
                                    ]
                                },
                                "timestamp": {
                                    "type": "string",
                                    "format": "date-time"
                                }
                            },
                            "required": [
                                "state",
                                "timestamp"
                            ]
                        },
                        "minItems": 1
                    },
                    "reason": {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 1000
                    }
                },
                "required": [
                    "date",
                    "events",
                    "reason"
                ],
                "title": "StoreAlteredEventRequest"
            },
            "StoreApplicationDocumentRequest": {
                "type": "object",
                "description": "One file of an application draft (OpenSpec add-recruiting, D9). Size from\n`recruiting.uploads.max_file_kb`; type and content are checked by the server itself\n(PDF, JPG, PNG, WebP, HEIC), the browser's claim does not count. `kind` defaults to `other`.\nA file PHP refused for its size answers 413 `upload_too_large` ({@see RejectsFilesOverPhpLimit}).",
                "properties": {
                    "file": {
                        "type": "string",
                        "format": "binary",
                        "contentMediaType": "application/octet-stream",
                        "description": "Maximum file size: 10240 kilobytes."
                    },
                    "kind": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/JobApplicationDocumentKind"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                },
                "required": [
                    "file"
                ],
                "title": "StoreApplicationDocumentRequest"
            },
            "StoreApplicationDraftRequest": {
                "type": "object",
                "description": "New application draft (OpenSpec add-recruiting, D8): the solved ALTCHA payload, the\nacknowledgement of the privacy notice (required, otherwise no draft and no file) and optionally\nthe notice version shown to the applicant. `website` is the honeypot and must stay empty; the\nALTCHA payload is verified by the service after the posting check, so a closed posting does not\nconsume it.",
                "properties": {
                    "altcha": {
                        "type": "string",
                        "maxLength": 4096
                    },
                    "privacy_acknowledged": {
                        "enum": [
                            "yes",
                            "on",
                            "1",
                            1,
                            "true",
                            true
                        ]
                    },
                    "privacy_notice_version": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 1
                    },
                    "website": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    }
                },
                "required": [
                    "altcha",
                    "privacy_acknowledged"
                ],
                "title": "StoreApplicationDraftRequest"
            },
            "StoreAvailabilityRequest": {
                "type": "object",
                "properties": {
                    "date": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "type": {
                        "$ref": "#/components/schemas/AvailabilityType"
                    },
                    "shift_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "weight": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 3
                    }
                },
                "required": [
                    "date",
                    "type"
                ],
                "title": "StoreAvailabilityRequest"
            },
            "StoreCompensationTypeRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "category": {
                        "$ref": "#/components/schemas/CompensationCategory"
                    }
                },
                "required": [
                    "name",
                    "category"
                ],
                "title": "StoreCompensationTypeRequest"
            },
            "StoreControllingBudgetRequest": {
                "type": "object",
                "description": "POST /rest/controlling/budgets and PUT /rest/controlling/budgets/{budget}: scope `company` or\n`department` (with `department_id`), `effective_from` (`YYYY-MM`) and the monthly amount in whole,\nnon-negative cents. Only one budget per scope and `effective_from`; the database unique backs this\ncheck against concurrent requests.",
                "properties": {
                    "scope": {
                        "type": "string",
                        "enum": [
                            "company",
                            "department"
                        ]
                    },
                    "department_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "effective_from": {
                        "type": "string",
                        "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
                    },
                    "amount_cents": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 999999999999
                    },
                    "currency": {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 3
                    }
                },
                "required": [
                    "scope",
                    "effective_from",
                    "amount_cents"
                ],
                "title": "StoreControllingBudgetRequest"
            },
            "StoreCostCenterRequest": {
                "type": "object",
                "properties": {
                    "code": {
                        "type": "string",
                        "maxLength": 50
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    }
                },
                "required": [
                    "code",
                    "name"
                ],
                "title": "StoreCostCenterRequest"
            },
            "StoreDepartmentRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    }
                },
                "required": [
                    "name"
                ],
                "title": "StoreDepartmentRequest"
            },
            "StoreDocumentFolderRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "visible_to_employee": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "name"
                ],
                "title": "StoreDocumentFolderRequest"
            },
            "StoreEauTestSubmissionRequest": {
                "type": "object",
                "description": "POST /rest/eau/test-submission: bewusst fehlerhafte eAU-Testmeldung ohne Kernpr\u00fcfung\n(`kurier-kernpruefung-versand` 6.6/6.7). Nur Admins; ob Kurier einen Modus ungleich ECHT meldet,\npr\u00fcft der Service. Einzelne Personendaten lassen sich bewusst verf\u00e4lschen.",
                "properties": {
                    "employee_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "absence_start": {
                        "type": "string",
                        "format": "date"
                    },
                    "first_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 45
                    },
                    "last_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 45
                    },
                    "insurance_number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 12
                    }
                },
                "required": [
                    "employee_id",
                    "absence_start"
                ],
                "title": "StoreEauTestSubmissionRequest"
            },
            "StoreEmployeeAvatarRequest": {
                "type": "object",
                "description": "Body of POST /rest/employees/{employee}/avatar. Bounded to 2 MB and the\nfour formats the frontend can display.",
                "properties": {
                    "avatar": {
                        "type": "string",
                        "format": "binary",
                        "contentMediaType": "application/octet-stream",
                        "description": "Maximum file size: 2048 kilobytes."
                    }
                },
                "required": [
                    "avatar"
                ],
                "title": "StoreEmployeeAvatarRequest"
            },
            "StoreEmployeeCompensationRequest": {
                "type": "object",
                "properties": {
                    "compensation_type_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "value": {
                        "type": "number",
                        "minimum": 0
                    },
                    "currency": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "minLength": 3,
                        "maxLength": 3
                    },
                    "effective_from": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "interval": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/CompensationInterval"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "weekly_working_hours": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0.1,
                        "maximum": 168
                    },
                    "full_time_weekly_working_hours": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0.1,
                        "maximum": 168
                    },
                    "comment": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    }
                },
                "required": [
                    "compensation_type_id",
                    "value",
                    "effective_from"
                ],
                "title": "StoreEmployeeCompensationRequest"
            },
            "StoreEmployeeDocumentRequest": {
                "type": "object",
                "properties": {
                    "file": {
                        "type": "string",
                        "format": "binary",
                        "contentMediaType": "application/octet-stream",
                        "description": "Maximum file size: 20480 kilobytes."
                    },
                    "folder_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "visible_to_employee": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "file"
                ],
                "title": "StoreEmployeeDocumentRequest"
            },
            "StoreEmployeeMoodRequest": {
                "type": "object",
                "properties": {
                    "date": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "rating": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 5
                    }
                },
                "required": [
                    "date",
                    "rating"
                ],
                "title": "StoreEmployeeMoodRequest"
            },
            "StoreEmployeeRequest": {
                "type": "object",
                "properties": {
                    "code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "email",
                        "maxLength": 255
                    },
                    "password": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "minLength": 8
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "surname": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "gender": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/Gender"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "birthday": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "working_hours": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^\\d{2}:\\d{2}:\\d{2}\\.\\d{3}$"
                    },
                    "vacation_days": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0
                    },
                    "employed_start": {
                        "type": "string",
                        "format": "date"
                    },
                    "employed_end": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "unit_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "department_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "cost_center_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "location_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "position": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "role": {
                        "type": "string"
                    },
                    "uses_projects": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "reference_no": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    },
                    "salary_type_work": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100
                    },
                    "salary_type_overtime": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100
                    },
                    "include_in_export": {
                        "type": "boolean"
                    },
                    "time_account_enabled": {
                        "type": "boolean"
                    },
                    "weekly_hours_limit": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "holiday_auto_compensation": {
                        "type": "boolean"
                    },
                    "private_email": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "email",
                        "maxLength": 255
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 32
                    },
                    "emergency_contact_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "emergency_contact_relation": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "emergency_contact_phone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 32
                    },
                    "sv_first_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "sv_last_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "send_questionnaire": {
                        "type": "boolean",
                        "description": "Personalfragebogen direkt bei der Anlage senden (OpenSpec add-personnel-questionnaire 4.2)"
                    },
                    "questionnaire_channel": {
                        "type": "string",
                        "enum": [
                            "link",
                            "email"
                        ]
                    },
                    "questionnaire_email": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "email",
                        "maxLength": 255
                    },
                    "employment_type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/EmploymentType"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "flat_rate_taxation_planned": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    }
                },
                "required": [
                    "name",
                    "surname",
                    "employed_start"
                ],
                "title": "StoreEmployeeRequest"
            },
            "StoreEmployeeSkillRequest": {
                "type": "object",
                "properties": {
                    "skill_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "level": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "valid_from": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "valid_until": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "proof_reference": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "skill_id"
                ],
                "title": "StoreEmployeeSkillRequest"
            },
            "StoreEmploymentCertificateRequest": {
                "type": "object",
                "description": "Create an employment certificate draft (`POST /rest/employees/{employee}/employment_certificates`).\nPeriod choice, type flag and the \"no exit yet\" check are done by\n{@see \\App\\Services\\EmploymentCertificate\\EmploymentCertificateService::create()}.",
                "properties": {
                    "type": {
                        "$ref": "#/components/schemas/EmploymentCertificateType"
                    },
                    "employment_period_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "requested_by": {
                        "$ref": "#/components/schemas/CertificateRequester"
                    },
                    "request_options": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "earnings_24_months": {
                                "type": "boolean"
                            },
                            "period_from": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "format": "date"
                            },
                            "period_to": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "format": "date"
                            }
                        }
                    }
                },
                "required": [
                    "type"
                ],
                "title": "StoreEmploymentCertificateRequest"
            },
            "StoreEmploymentPeriodRequest": {
                "type": "object",
                "description": "Re-entry (`POST /rest/employees/{employee}/employment_periods`): opens a new employment period\nafter the latest exit. Without `reference_no` the personnel number stays; `reactivate_login`\ndefaults to true. Order and overlap are checked by {@see \\App\\Services\\EmploymentPeriodService}.",
                "properties": {
                    "started_on": {
                        "type": "string",
                        "format": "date"
                    },
                    "reference_no": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    },
                    "reactivate_login": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "started_on"
                ],
                "title": "StoreEmploymentPeriodRequest"
            },
            "StoreEstablishmentHistoryRequest": {
                "type": "object",
                "description": "Anlage (bzw. Ersetzen bei gleichem G\u00fcltigkeitsbeginn) einer Betriebsst\u00e4tten-Zuordnung.\nArchivierte Betriebsst\u00e4tten sind f\u00fcr neue Zuordnungen nicht w\u00e4hlbar.",
                "properties": {
                    "valid_after": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "establishment_id": {
                        "type": "string",
                        "format": "uuid"
                    }
                },
                "required": [
                    "valid_after",
                    "establishment_id"
                ],
                "title": "StoreEstablishmentHistoryRequest"
            },
            "StoreHolidayRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "entries": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "date": {
                                    "type": "string",
                                    "format": "date-time"
                                },
                                "name": {
                                    "type": "string",
                                    "maxLength": 255
                                },
                                "half_day": {
                                    "type": "boolean"
                                }
                            },
                            "required": [
                                "date",
                                "name"
                            ]
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "name",
                    "entries"
                ],
                "title": "StoreHolidayRequest"
            },
            "StoreInsuranceHistoryRequest": {
                "type": "object",
                "description": "Anlage eines Krankenkassen-Historieneintrags. Die KV-Art ist bewusst zu erfassen (keine\nVorbelegung, daher `required`); der Altwert `marginal` ist keine Versicherungsart mehr. Die\neAU-zust\u00e4ndige Kassen-BBNR und die optionale abweichende Einzugsstelle werden gegen das\n\u00a7 98a-Verzeichnis gepr\u00fcft.",
                "properties": {
                    "valid_after": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "insurance_type": {
                        "type": "string",
                        "description": "Krankenversicherungsart. `Marginal` ist nur noch ein lesbarer Altwert: die Besch\u00e4ftigungsart \u201egeringf\u00fcgig\" lebt in {@see EmploymentType} und wird f\u00fcr neue Eingaben abgelehnt (siehe {@see selectable()}).\n",
                        "enum": [
                            "statutory",
                            "family_insured",
                            "private",
                            "exempt"
                        ]
                    },
                    "kasse_bbnr": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "collection_agency_bbnr": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "valid_after",
                    "insurance_type"
                ],
                "title": "StoreInsuranceHistoryRequest"
            },
            "StoreJobApplicationNoteRequest": {
                "type": "object",
                "description": "Internal note on an application (OpenSpec add-recruiting, D7): stored encrypted, never visible to\nthe applicant, emptied by the purger.",
                "properties": {
                    "body": {
                        "type": "string",
                        "maxLength": 5000
                    }
                },
                "required": [
                    "body"
                ],
                "title": "StoreJobApplicationNoteRequest"
            },
            "StoreJobPostingRequest": {
                "type": "object",
                "description": "New job posting (OpenSpec add-recruiting, task 3.3). Access is checked by the route middleware\n(`recruiting:manage`). Salary in cent; the range (minimum not above maximum, period required with\nany bound) is checked by {@see \\App\\Services\\Recruiting\\JobPostingService} so partial updates are\ncovered too.",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 150
                    },
                    "description_md": {
                        "type": "string",
                        "maxLength": 20000
                    },
                    "employment_type": {
                        "$ref": "#/components/schemas/JobEmploymentType"
                    },
                    "workplace_type": {
                        "$ref": "#/components/schemas/JobWorkplaceType"
                    },
                    "location_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "salary_min_cents": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 0,
                        "maximum": 100000000
                    },
                    "salary_max_cents": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 0,
                        "maximum": 100000000
                    },
                    "salary_period": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/JobSalaryPeriod"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "valid_through": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    }
                },
                "required": [
                    "title",
                    "description_md",
                    "employment_type",
                    "workplace_type"
                ],
                "title": "StoreJobPostingRequest"
            },
            "StoreLeaveRequestRequest": {
                "type": "object",
                "properties": {
                    "type": {
                        "type": "string"
                    },
                    "start_date": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "end_date": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "is_half_day": {
                        "type": "boolean"
                    },
                    "first_day_half": {
                        "type": "boolean"
                    },
                    "last_day_half": {
                        "type": "boolean"
                    },
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    },
                    "substitute_employee_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "hours": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0.25,
                        "maximum": 24
                    },
                    "eau_entgfg_gemeldet": {
                        "type": "boolean",
                        "description": "eAU: \u201eAU dem Arbeitgeber gemeldet\" (Default ja) und \u201eArztbesuch\" (\u00e4rztliche oder\nstation\u00e4re Feststellung). Nur bei eAU-relevanten Abwesenheitsarten ausgewertet."
                    },
                    "doctor_visit": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    }
                },
                "required": [
                    "type",
                    "start_date",
                    "end_date"
                ],
                "title": "StoreLeaveRequestRequest"
            },
            "StoreLocationRequest": {
                "type": "object",
                "description": "Anlage eines Standorts, optional mit Betriebsst\u00e4tte (`establishment_id`).",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    },
                    "address": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 500
                    },
                    "address_additional": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 500
                    },
                    "city": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "postal_code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 20
                    },
                    "state_region": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "country": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100
                    },
                    "timezone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100
                    },
                    "establishment_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    }
                },
                "required": [
                    "name"
                ],
                "title": "StoreLocationRequest"
            },
            "StoreNfcTagRequest": {
                "type": "object",
                "properties": {
                    "tag_id": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "location_description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    },
                    "is_active": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "tag_id",
                    "name"
                ],
                "title": "StoreNfcTagRequest"
            },
            "StoreOvertimePayoutRequest": {
                "type": "object",
                "description": "Body of POST /rest/employees/{employee}/overtime_payouts \u2014 pays out\nhours of one settlement month.",
                "properties": {
                    "year_month": {
                        "type": "string",
                        "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
                    },
                    "hours": {
                        "type": "number",
                        "minimum": 0.01,
                        "maximum": 1000
                    },
                    "comment": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    }
                },
                "required": [
                    "year_month",
                    "hours"
                ],
                "title": "StoreOvertimePayoutRequest"
            },
            "StorePayrollEstablishmentRequest": {
                "type": "object",
                "description": "Anlage einer Betriebsst\u00e4tte. Die BBNR muss pr\u00fcfziffern-g\u00fcltig, tenantweit eindeutig (auch\ngegen\u00fcber archivierten Betriebsst\u00e4tten) und darf keine Kassen-/Annahmestellen-BBNR sein.",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "bbnr": {
                        "type": "string"
                    },
                    "address_street": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "address_house_number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 20
                    },
                    "address_postal_code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 10
                    },
                    "address_city": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "legal_circle": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "west",
                            "east",
                            null
                        ]
                    }
                },
                "required": [
                    "name",
                    "bbnr"
                ],
                "title": "StorePayrollEstablishmentRequest"
            },
            "StorePersonnelQuestionnaireQueryRequest": {
                "type": "object",
                "description": "R\u00fcckfrage an die Person: Nachricht und die Felder, die wieder bearbeitbar werden.",
                "properties": {
                    "lock_version": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "field_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "maxLength": 64
                        },
                        "minItems": 1,
                        "maxItems": 50
                    },
                    "message": {
                        "type": "string",
                        "maxLength": 2000
                    }
                },
                "required": [
                    "lock_version",
                    "field_ids",
                    "message"
                ],
                "title": "StorePersonnelQuestionnaireQueryRequest"
            },
            "StorePersonnelQuestionnaireRequest": {
                "type": "object",
                "description": "Personalfragebogen f\u00fcr eine bestehende Person senden: Kanal (Link oder E-Mail an die private\nAdresse) und optional die geplante Besch\u00e4ftigungsart samt Pauschalbesteuerung (D18).",
                "properties": {
                    "employee_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "channel": {
                        "type": "string",
                        "enum": [
                            "link",
                            "email"
                        ]
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "email",
                        "maxLength": 255
                    },
                    "employment_type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/EmploymentType"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "flat_rate_taxation_planned": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    }
                },
                "required": [
                    "employee_id"
                ],
                "title": "StorePersonnelQuestionnaireRequest"
            },
            "StoreProjectRequest": {
                "type": "object",
                "properties": {
                    "code": {
                        "type": "string",
                        "maxLength": 50
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    },
                    "cost_center_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "activity_requirement": {
                        "type": "string",
                        "enum": [
                            "optional",
                            "required"
                        ]
                    }
                },
                "required": [
                    "code",
                    "name"
                ],
                "title": "StoreProjectRequest"
            },
            "StoreProjectSessionRequest": {
                "type": "object",
                "description": "A session is a time block with an OPTIONAL project and an OPTIONAL activity.\n\nOnly shape/format is checked here; the business rules (at least one of\nproject/activity, `requires_project`, `activity_requirement`, unit\nvisibility, overlap, full-day window) live in\n{@see \\App\\Services\\WorkActivityBookingValidator}.",
                "properties": {
                    "project_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "activity_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "full_day": {
                        "type": "boolean"
                    },
                    "date": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "start_time": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "end_time": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    }
                },
                "title": "StoreProjectSessionRequest"
            },
            "StoreQuestionnaireDocumentRequest": {
                "type": "object",
                "description": "Nachweis hochladen (Schritt 6): h\u00f6chstens 20 MB; Typ und Inhalt pr\u00fcft der Server selbst\n(PDF, JPG, PNG, HEIC), die Angabe des Browsers z\u00e4hlt nicht. Eine Datei, die PHP schon wegen ihrer\nGr\u00f6\u00dfe abweist, ergibt 413 `upload_too_large` ({@see RejectsFilesOverPhpLimit}).",
                "properties": {
                    "file": {
                        "type": "string",
                        "format": "binary",
                        "contentMediaType": "application/octet-stream",
                        "description": "Maximum file size: 20480 kilobytes."
                    },
                    "document_type": {
                        "$ref": "#/components/schemas/PersonnelQuestionnaireDocumentType"
                    }
                },
                "required": [
                    "file",
                    "document_type"
                ],
                "title": "StoreQuestionnaireDocumentRequest"
            },
            "StoreRecruitingLocationRequest": {
                "type": "object",
                "description": "New work location from the posting editor (OpenSpec add-recruiting, D3, D10). Google for Jobs\nneeds a postal address for every non-remote posting, so street, postal code and city are required\nhere (the general `POST /locations` keeps them optional). The country is an ISO 3166-1 alpha-2\ncode (`addressCountry`) and defaults to `DE`. Time zone, phone and establishment stay with the\nworkspace admin.",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "address": {
                        "type": "string",
                        "maxLength": 500
                    },
                    "address_additional": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 500
                    },
                    "postal_code": {
                        "type": "string",
                        "maxLength": 20
                    },
                    "city": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "state_region": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "country": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2
                    }
                },
                "required": [
                    "name",
                    "address",
                    "postal_code",
                    "city",
                    "country"
                ],
                "title": "StoreRecruitingLocationRequest"
            },
            "StoreReleaseArtifactRequest": {
                "type": "object",
                "properties": {
                    "app": {
                        "type": "string",
                        "enum": [
                            "desktop",
                            "terminal-android"
                        ]
                    },
                    "channel": {
                        "type": "string",
                        "enum": [
                            "stable",
                            "beta"
                        ]
                    },
                    "version": {
                        "type": "string",
                        "pattern": "^\\d+\\.\\d+\\.\\d+$"
                    },
                    "platform": {
                        "type": "string",
                        "enum": [
                            "darwin-aarch64",
                            "darwin-x86_64",
                            "darwin-universal",
                            "windows-x86_64",
                            "windows-aarch64",
                            "linux-x86_64",
                            "linux-aarch64"
                        ]
                    },
                    "binary": {
                        "type": "string",
                        "format": "binary",
                        "contentMediaType": "application/octet-stream",
                        "description": "Maximum file size: 524288 kilobytes."
                    },
                    "signature": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "binary",
                        "contentMediaType": "application/octet-stream",
                        "description": "512 MB"
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "64 KB",
                        "maxLength": 8192
                    }
                },
                "required": [
                    "app",
                    "channel",
                    "version",
                    "platform",
                    "binary"
                ],
                "title": "StoreReleaseArtifactRequest"
            },
            "StoreRoleRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "pattern": "^[a-z0-9_]+$",
                        "maxLength": 255
                    },
                    "display_name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "permissions": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "employees:view",
                                "employees:manage",
                                "employees:assign_roles",
                                "employees:view-all",
                                "time-tracking:view",
                                "time-tracking:correct",
                                "time-tracking:export",
                                "absences:view",
                                "absences:manage",
                                "absences:approve",
                                "schedule-models:view",
                                "schedule-models:manage",
                                "holidays:view",
                                "holidays:manage",
                                "org:manage",
                                "documents:view",
                                "documents:manage",
                                "projects:view",
                                "projects:manage",
                                "payroll:view",
                                "payroll:manage",
                                "personnel-questionnaire:manage",
                                "recruiting:manage",
                                "reports:view",
                                "roster:plan-cross-site",
                                "settings:manage",
                                "time-tracking:clock-web",
                                "time-tracking:clock-mobile",
                                "time-tracking:clock-terminal",
                                "notifications:own",
                                "notifications:department",
                                "self-service:avatar",
                                "self-service:profile",
                                "self-service:payroll",
                                "self-service:documents"
                            ]
                        }
                    }
                },
                "required": [
                    "name",
                    "display_name"
                ],
                "title": "StoreRoleRequest"
            },
            "StoreRosterBudgetRequest": {
                "type": "object",
                "properties": {
                    "period": {
                        "$ref": "#/components/schemas/RosterBudgetPeriod"
                    },
                    "amount_cents": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "effective_from": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "currency": {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 3
                    }
                },
                "required": [
                    "period",
                    "amount_cents",
                    "effective_from"
                ],
                "title": "StoreRosterBudgetRequest"
            },
            "StoreRosterEntryRequest": {
                "type": "object",
                "properties": {
                    "employee_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "date": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "shift_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "start_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "end_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "work_area_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "status": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/RosterEntryStatus"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "publish": {
                        "type": "boolean"
                    },
                    "force": {
                        "type": "boolean"
                    },
                    "series": {
                        "type": "object",
                        "properties": {
                            "frequency": {
                                "type": "string",
                                "enum": [
                                    "daily",
                                    "weekly",
                                    "monthly_weekday",
                                    "monthly_date"
                                ]
                            },
                            "interval": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "minimum": 1,
                                "maximum": 99
                            },
                            "weekdays": {
                                "type": "array",
                                "items": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 7
                                },
                                "minItems": 1
                            },
                            "monthly_ordinal": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 5
                            },
                            "ends_mode": {
                                "type": "string",
                                "enum": [
                                    "count",
                                    "until"
                                ]
                            },
                            "ends_count": {
                                "type": "integer",
                                "minimum": 1
                            },
                            "ends_on": {
                                "type": "string",
                                "format": "date-time"
                            }
                        }
                    }
                },
                "required": [
                    "date"
                ],
                "title": "StoreRosterEntryRequest"
            },
            "StoreRosterRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "period_start": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "period_end": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "unit_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "budget_cents": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 0
                    }
                },
                "required": [
                    "name",
                    "period_start",
                    "period_end"
                ],
                "title": "StoreRosterRequest"
            },
            "StoreRosterTemplateRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "kind": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/RosterTemplateKind"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "cycle_length_weeks": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 52
                    },
                    "pattern": {
                        "type": "object",
                        "properties": {
                            "groups": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "name": {
                                            "type": "string",
                                            "maxLength": 255
                                        },
                                        "employee_ids": {
                                            "type": [
                                                "array",
                                                "null"
                                            ],
                                            "items": {
                                                "type": "string",
                                                "format": "uuid"
                                            }
                                        },
                                        "pattern": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "week": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 1
                                                    },
                                                    "entries": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "weekday": {
                                                                    "type": "integer",
                                                                    "minimum": 1,
                                                                    "maximum": 7
                                                                },
                                                                "shift_id": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ],
                                                                    "format": "uuid"
                                                                },
                                                                "start_time": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ]
                                                                },
                                                                "end_time": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ]
                                                                }
                                                            },
                                                            "required": [
                                                                "weekday"
                                                            ]
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "week",
                                                    "entries"
                                                ]
                                            },
                                            "minItems": 1
                                        }
                                    },
                                    "required": [
                                        "name",
                                        "pattern"
                                    ]
                                },
                                "minItems": 1
                            }
                        },
                        "required": [
                            "groups"
                        ]
                    },
                    "unit_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    }
                },
                "required": [
                    "name",
                    "cycle_length_weeks",
                    "pattern"
                ],
                "title": "StoreRosterTemplateRequest"
            },
            "StoreScheduleModelRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "type": {
                        "$ref": "#/components/schemas/ScheduleModelType"
                    },
                    "accommodation_time": {
                        "type": "boolean"
                    },
                    "night_begin": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^\\d{2}:\\d{2}:\\d{2}\\.\\d{3}$"
                    },
                    "entries": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "weekday": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 7
                                },
                                "periods": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "start": {
                                                "type": "integer",
                                                "minimum": 0
                                            },
                                            "end": {
                                                "type": "integer",
                                                "minimum": 0
                                            }
                                        },
                                        "required": [
                                            "start",
                                            "end"
                                        ]
                                    },
                                    "minItems": 1
                                },
                                "pauses": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "start": {
                                                "type": "integer",
                                                "minimum": 0
                                            },
                                            "end": {
                                                "type": "integer",
                                                "minimum": 0
                                            }
                                        },
                                        "required": [
                                            "start",
                                            "end"
                                        ]
                                    }
                                },
                                "core_times": {
                                    "type": [
                                        "array",
                                        "null"
                                    ],
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "start": {
                                                "type": "integer",
                                                "minimum": 0
                                            },
                                            "end": {
                                                "type": "integer",
                                                "minimum": 0
                                            }
                                        },
                                        "required": [
                                            "start",
                                            "end"
                                        ]
                                    }
                                },
                                "pause_thresholds": {
                                    "type": [
                                        "array",
                                        "null"
                                    ],
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "threshold": {
                                                "type": "integer",
                                                "minimum": 0
                                            },
                                            "duration": {
                                                "type": "integer",
                                                "minimum": 0
                                            }
                                        },
                                        "required": [
                                            "threshold",
                                            "duration"
                                        ]
                                    }
                                },
                                "accommodation": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "properties": {
                                        "start": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 86400000
                                        },
                                        "end": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 86400000
                                        }
                                    }
                                }
                            },
                            "required": [
                                "weekday",
                                "periods",
                                "pauses"
                            ]
                        },
                        "minItems": 1
                    },
                    "blocked_weekdays": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 7
                        },
                        "uniqueItems": true
                    }
                },
                "required": [
                    "name",
                    "type",
                    "entries"
                ],
                "title": "StoreScheduleModelRequest"
            },
            "StoreShiftRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "abbreviation": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 8
                    },
                    "color": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^#[0-9A-Fa-f]{6}$"
                    },
                    "start_time": {
                        "type": "string"
                    },
                    "end_time": {
                        "type": "string"
                    },
                    "break_duration": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "is_overnight": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "schedule_model_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "work_area_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "tags": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "string",
                            "maxLength": 50
                        },
                        "maxItems": 10
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 2000
                    },
                    "fairness_weight": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 5
                    }
                },
                "required": [
                    "name",
                    "start_time",
                    "end_time"
                ],
                "title": "StoreShiftRequest"
            },
            "StoreShiftRequirementRequest": {
                "type": "object",
                "properties": {
                    "shift_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "weekday": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 7
                    },
                    "min_count": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "optimal_count": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 0
                    },
                    "skill_requirements": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "object",
                            "properties": {
                                "skill_id": {
                                    "type": "string",
                                    "format": "uuid"
                                },
                                "required_count": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "minimum": 1
                                },
                                "min_level": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "minimum": 1
                                }
                            },
                            "required": [
                                "skill_id"
                            ]
                        }
                    }
                },
                "required": [
                    "shift_id",
                    "weekday",
                    "min_count"
                ],
                "title": "StoreShiftRequirementRequest"
            },
            "StoreShiftSwapDenyRequest": {
                "type": "object",
                "properties": {
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 500
                    }
                },
                "title": "StoreShiftSwapDenyRequest"
            },
            "StoreShiftSwapRequest": {
                "type": "object",
                "properties": {
                    "requester_entry_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "target_employee_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "target_entry_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "requester_entry_id",
                    "target_employee_id"
                ],
                "title": "StoreShiftSwapRequest"
            },
            "StoreShortWorkRequest": {
                "type": "object",
                "properties": {
                    "employee_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "start_date": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "end_date": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "reduction_percent": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                    }
                },
                "required": [
                    "employee_id",
                    "start_date",
                    "end_date",
                    "reduction_percent"
                ],
                "title": "StoreShortWorkRequest"
            },
            "StoreSkillRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "category": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "color": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^#[0-9A-Fa-f]{6}$",
                        "maxLength": 7
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "expirable": {
                        "type": "boolean"
                    },
                    "is_active": {
                        "type": "boolean"
                    },
                    "sort_order": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "max_level": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10
                    },
                    "level_labels": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "string",
                            "maxLength": 100
                        }
                    }
                },
                "required": [
                    "name"
                ],
                "title": "StoreSkillRequest"
            },
            "StoreSurchargeRuleRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "compensation_type_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "time_from": {
                        "type": "string"
                    },
                    "time_to": {
                        "type": "string"
                    },
                    "weekdays": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 7
                        }
                    },
                    "applies_on_holidays": {
                        "type": "boolean"
                    },
                    "rate_type": {
                        "$ref": "#/components/schemas/SurchargeRateType"
                    },
                    "rate_value": {
                        "type": "number",
                        "minimum": 0
                    },
                    "is_active": {
                        "type": "boolean"
                    },
                    "tax_free": {
                        "type": "boolean"
                    },
                    "tax_free_max_percent": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0,
                        "maximum": 999.99
                    },
                    "only_beyond_planned": {
                        "type": "boolean"
                    },
                    "non_cumulative": {
                        "type": "boolean"
                    },
                    "priority": {
                        "type": "integer",
                        "minimum": -1000,
                        "maximum": 1000
                    }
                },
                "required": [
                    "name",
                    "compensation_type_id",
                    "time_from",
                    "time_to",
                    "rate_type",
                    "rate_value"
                ],
                "title": "StoreSurchargeRuleRequest"
            },
            "StoreUnitRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "parent_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "permissions": {
                        "type": "object",
                        "properties": {
                            "employees": {
                                "type": "boolean"
                            },
                            "units": {
                                "type": "boolean"
                            },
                            "departments": {
                                "type": "boolean"
                            },
                            "events": {
                                "type": "boolean"
                            },
                            "leave": {
                                "type": "boolean"
                            },
                            "schedules": {
                                "type": "boolean"
                            },
                            "holidays": {
                                "type": "boolean"
                            },
                            "cost_centers": {
                                "type": "boolean"
                            },
                            "short_work": {
                                "type": "boolean"
                            },
                            "export": {
                                "type": "boolean"
                            },
                            "projects": {
                                "type": "boolean"
                            },
                            "absence_overlap": {
                                "type": "boolean"
                            },
                            "personnel_questionnaire": {
                                "type": "boolean"
                            }
                        }
                    }
                },
                "required": [
                    "name"
                ],
                "title": "StoreUnitRequest"
            },
            "StoreWebhookRequest": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "maxLength": 2048
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "events": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "employee.created",
                                "employee.updated",
                                "employee.deleted",
                                "event.created",
                                "altered_event.created",
                                "altered_event.approved",
                                "altered_event.rejected",
                                "altered_event.deleted",
                                "leave_request.created",
                                "leave_request.approved",
                                "leave_request.denied",
                                "leave_request.deleted",
                                "schedule_model.created",
                                "schedule_model.updated",
                                "schedule_model.deleted",
                                "holiday.created",
                                "holiday.updated",
                                "holiday.deleted",
                                "unit.created",
                                "unit.updated",
                                "unit.deleted",
                                "department.created",
                                "department.updated",
                                "department.deleted",
                                "cost_center.created",
                                "cost_center.updated",
                                "cost_center.deleted",
                                "project.created",
                                "project.updated",
                                "project.deleted",
                                "location.created",
                                "location.updated",
                                "location.deleted",
                                "personnel_questionnaire.completed",
                                "job_application.received",
                                "job_application.stage_changed"
                            ]
                        },
                        "minItems": 1
                    },
                    "active": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "url",
                    "events"
                ],
                "title": "StoreWebhookRequest"
            },
            "StoreWorkActivityRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    },
                    "color": {
                        "type": "string",
                        "maxLength": 32
                    },
                    "booking_mode": {
                        "type": "string",
                        "enum": [
                            "session",
                            "day"
                        ]
                    },
                    "requires_project": {
                        "type": "boolean"
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "sort_order": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9999
                    },
                    "unit_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                },
                "required": [
                    "name"
                ],
                "title": "StoreWorkActivityRequest"
            },
            "StoreWorkAreaRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 100
                    },
                    "color": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^#[0-9A-Fa-f]{6}$",
                        "maxLength": 7
                    },
                    "unit_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "sort_order": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "is_active": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "name"
                ],
                "title": "StoreWorkAreaRequest"
            },
            "StoreWorkingTimeCommentRequest": {
                "type": "object",
                "description": "Body of PUT /rest/employees/{employee}/working_time_comment \u2014 a note on\na single day of the time sheet.",
                "properties": {
                    "date": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "comment": {
                        "type": "string",
                        "maxLength": 1000
                    }
                },
                "required": [
                    "date",
                    "comment"
                ],
                "title": "StoreWorkingTimeCommentRequest"
            },
            "SubmitApplicationDraftRequest": {
                "type": "object",
                "description": "Submission of an application draft (OpenSpec add-recruiting, D8): name and e-mail are required,\nphone, profile link and cover letter optional. `source` is the value of `?source=` on the job\npage: the widget (D17) or a feed channel (D16, `indeed`, `stepstone`, `linkedin`, `aggregator`);\ndefault `career_page`. An unknown text value is not refused but counted as `career_page`, so a\nshared link with a foreign tracking parameter never blocks an application. `website` is the\nhoneypot.",
                "properties": {
                    "first_name": {
                        "type": "string",
                        "maxLength": 100
                    },
                    "last_name": {
                        "type": "string",
                        "maxLength": 100
                    },
                    "email": {
                        "type": "string",
                        "format": "email",
                        "maxLength": 254
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    },
                    "profile_url": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uri",
                        "maxLength": 500
                    },
                    "cover_letter": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 10000
                    },
                    "source": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "career_page",
                            "widget",
                            "indeed",
                            "stepstone",
                            "linkedin",
                            "aggregator",
                            null
                        ]
                    },
                    "website": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    }
                },
                "required": [
                    "first_name",
                    "last_name",
                    "email"
                ],
                "title": "SubmitApplicationDraftRequest"
            },
            "SubmitQuestionnaireRequest": {
                "type": "object",
                "description": "Einreichen: Erkl\u00e4rung, Unterschrift (Zeichnung als PNG-Data-URL + Name) und bei Minderj\u00e4hrigen die\nUnterschrift der gesetzlichen Vertretung. `content_hash` ist der Stand aus der Zusammenfassung;\ndie Unterschrift best\u00e4tigt genau diesen Stand (D7).",
                "properties": {
                    "content_hash": {
                        "type": "string",
                        "minLength": 64,
                        "maxLength": 64
                    },
                    "declaration_accepted": {
                        "type": "boolean"
                    },
                    "employee_signature": {
                        "type": "object",
                        "properties": {
                            "image": {
                                "type": "string",
                                "maxLength": 300000
                            },
                            "name": {
                                "type": "string",
                                "maxLength": 255
                            }
                        },
                        "required": [
                            "image",
                            "name"
                        ]
                    },
                    "guardian_signature": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "image": {
                                "type": "string",
                                "maxLength": 300000
                            },
                            "name": {
                                "type": "string",
                                "maxLength": 255
                            }
                        }
                    }
                },
                "required": [
                    "content_hash",
                    "declaration_accepted",
                    "employee_signature"
                ],
                "title": "SubmitQuestionnaireRequest"
            },
            "SubstituteOption": {
                "type": "string",
                "enum": [
                    "disabled",
                    "optional",
                    "required"
                ],
                "title": "SubstituteOption"
            },
            "SurchargeRateType": {
                "type": "integer",
                "enum": [
                    0,
                    1
                ],
                "title": "SurchargeRateType"
            },
            "SurchargeRuleResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "compensation_type_id": {
                        "type": "string"
                    },
                    "compensation_type": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "id",
                            "name"
                        ]
                    },
                    "time_from": {
                        "type": "string"
                    },
                    "time_to": {
                        "type": "string"
                    },
                    "weekdays": {
                        "type": "string"
                    },
                    "applies_on_holidays": {
                        "type": "string"
                    },
                    "rate_type": {
                        "type": "string"
                    },
                    "rate_value": {
                        "type": "number"
                    },
                    "is_active": {
                        "type": "string"
                    },
                    "tax_free": {
                        "type": "string"
                    },
                    "tax_free_max_percent": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "only_beyond_planned": {
                        "type": "string"
                    },
                    "non_cumulative": {
                        "type": "string"
                    },
                    "priority": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "name",
                    "compensation_type_id",
                    "time_from",
                    "time_to",
                    "weekdays",
                    "applies_on_holidays",
                    "rate_type",
                    "rate_value",
                    "is_active",
                    "tax_free",
                    "tax_free_max_percent",
                    "only_beyond_planned",
                    "non_cumulative",
                    "priority"
                ],
                "title": "SurchargeRuleResource"
            },
            "SurchargeSettlementResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "surcharge_rule_id": {
                        "type": "string"
                    },
                    "rule_name": {
                        "type": "string"
                    },
                    "year_month": {
                        "type": "string"
                    },
                    "hours": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "hours_ms": {
                        "type": "string"
                    },
                    "amount_cents": {
                        "type": "string"
                    },
                    "amount": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "tax_free_cents": {
                        "type": "string"
                    },
                    "tax_free": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "taxable_cents": {
                        "type": "string"
                    },
                    "taxable": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "currency": {
                        "type": "string"
                    },
                    "hourly_rate_cents": {
                        "type": "string"
                    },
                    "rate_missing": {
                        "type": "boolean"
                    },
                    "rate_type": {
                        "type": "string"
                    },
                    "rate_value": {
                        "type": "number"
                    },
                    "correction_for_year_month": {
                        "type": "string"
                    },
                    "calculated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "surcharge_rule_id",
                    "year_month",
                    "hours",
                    "hours_ms",
                    "amount_cents",
                    "amount",
                    "tax_free_cents",
                    "tax_free",
                    "taxable_cents",
                    "taxable",
                    "currency",
                    "hourly_rate_cents",
                    "rate_missing",
                    "rate_type",
                    "rate_value",
                    "correction_for_year_month",
                    "calculated_at"
                ],
                "title": "SurchargeSettlementResource"
            },
            "SyncEmployeeWorkAreasRequest": {
                "type": "object",
                "properties": {
                    "work_area_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                },
                "required": [
                    "work_area_ids"
                ],
                "title": "SyncEmployeeWorkAreasRequest"
            },
            "SyncPublicHolidayRequest": {
                "type": "object",
                "properties": {
                    "source_key": {
                        "type": "string",
                        "enum": [
                            "NATIONAL",
                            "BW",
                            "BY",
                            "BE",
                            "BB",
                            "HB",
                            "HH",
                            "HE",
                            "MV",
                            "NI",
                            "NW",
                            "RP",
                            "SL",
                            "SN",
                            "ST",
                            "SH",
                            "TH"
                        ]
                    },
                    "year": {
                        "type": "integer",
                        "minimum": 2000,
                        "maximum": 2100
                    }
                },
                "required": [
                    "source_key",
                    "year"
                ],
                "title": "SyncPublicHolidayRequest"
            },
            "TenantModule": {
                "type": "string",
                "enum": [
                    "employees",
                    "units",
                    "working_times",
                    "schedule_models",
                    "leave_requests",
                    "holidays",
                    "export",
                    "zucchetti",
                    "short_work",
                    "freelancer",
                    "locations",
                    "departments",
                    "cost_centers",
                    "projects",
                    "mobile_app",
                    "nfc_clock",
                    "geo_clock",
                    "overtime_accounts",
                    "shift_roster",
                    "datev_payroll",
                    "payroll",
                    "terminals",
                    "custom_domain",
                    "webhooks",
                    "mood",
                    "employee_documents",
                    "dls_import",
                    "eau",
                    "activities",
                    "personnel_questionnaire",
                    "recruiting"
                ],
                "title": "TenantModule"
            },
            "TimeAccountResource": {
                "type": "object",
                "properties": {
                    "employee_id": {
                        "type": "string"
                    },
                    "year": {
                        "type": "string"
                    },
                    "months": {
                        "type": "array",
                        "items": {}
                    }
                },
                "required": [
                    "employee_id",
                    "year",
                    "months"
                ],
                "title": "TimeAccountResource"
            },
            "UnassignRosterEntryRequest": {
                "type": "object",
                "description": "Body of POST /rest/roster_entries/{rosterEntry}/unassign. The reason is\nkept on the declination record when one is documented.",
                "properties": {
                    "document_declination": {
                        "type": "boolean"
                    },
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 500
                    }
                },
                "title": "UnassignRosterEntryRequest"
            },
            "UnitResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "parent_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "permissions": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "boolean"
                        }
                    },
                    "children": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/UnitResource"
                        }
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "name",
                    "parent_id",
                    "permissions",
                    "created_at",
                    "updated_at"
                ],
                "title": "UnitResource"
            },
            "UpdateAbsenceTypeRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "color": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^#[0-9A-Fa-f]{6}$",
                        "maxLength": 7
                    },
                    "icon": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100
                    },
                    "category": {
                        "$ref": "#/components/schemas/AbsenceCategory"
                    },
                    "unit": {
                        "type": "string",
                        "enum": [
                            "day",
                            "hour"
                        ]
                    },
                    "half_day_allowed": {
                        "type": "boolean"
                    },
                    "requires_approval": {
                        "type": "boolean"
                    },
                    "is_paid": {
                        "type": "boolean"
                    },
                    "certificate_required": {
                        "type": "boolean"
                    },
                    "certificate_deadline_days": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 1
                    },
                    "substitute_option": {
                        "$ref": "#/components/schemas/SubstituteOption"
                    },
                    "count_weekdays_only": {
                        "type": "boolean"
                    },
                    "is_active": {
                        "type": "boolean"
                    },
                    "sort_order": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "slug": {
                        "type": "string",
                        "pattern": "^[a-z0-9_]+$",
                        "maxLength": 100
                    },
                    "affects_vacation": {
                        "type": "boolean"
                    },
                    "target_work_factor": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                    },
                    "working_time_flag": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "eau_relevant": {
                        "type": "boolean"
                    }
                },
                "title": "UpdateAbsenceTypeRequest"
            },
            "UpdateControllingRevenuesRequest": {
                "type": "object",
                "description": "PUT /rest/controlling/revenues: list upsert of `{year_month, amount_cents}`; `amount_cents: null`\ndeletes the month. Amounts are whole, non-negative cents; every month at most once per request.\nErrors are reported per list entry (`revenues.3.amount_cents`).",
                "properties": {
                    "revenues": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "year_month": {
                                    "type": "string",
                                    "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
                                },
                                "amount_cents": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "minimum": 0,
                                    "maximum": 999999999999
                                }
                            },
                            "required": [
                                "year_month",
                                "amount_cents"
                            ]
                        },
                        "minItems": 1,
                        "maxItems": 120,
                        "uniqueItems": true
                    }
                },
                "required": [
                    "revenues"
                ],
                "title": "UpdateControllingRevenuesRequest"
            },
            "UpdateControllingSettingsRequest": {
                "type": "object",
                "description": "PUT /rest/controlling/settings: targets per known KPI key (value, optional tolerance 0 to 100;\n`value: null` removes a target) and the flat employer contribution rates in percent (0 to 60,\ntwo decimals; `null` resets to the year default).",
                "properties": {
                    "targets": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "value": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "minimum": 0,
                                    "maximum": 1000000000
                                },
                                "tolerance": {
                                    "type": [
                                        "number",
                                        "null"
                                    ],
                                    "minimum": 0,
                                    "maximum": 100
                                }
                            },
                            "required": [
                                "value"
                            ]
                        }
                    },
                    "employer_contribution_rate": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "employer_contribution_rate_marginal": {
                        "type": [
                            "number",
                            "null"
                        ]
                    }
                },
                "title": "UpdateControllingSettingsRequest"
            },
            "UpdateDatevLohnartMappingsRequest": {
                "type": "object",
                "properties": {
                    "mappings": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "time_category": {
                                    "type": "string",
                                    "maxLength": 50
                                },
                                "lohnart_nummer": {
                                    "type": "string",
                                    "maxLength": 10
                                },
                                "ausfall_schluessel": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "maxLength": 10
                                },
                                "label": {
                                    "type": "string",
                                    "maxLength": 255
                                },
                                "absence_type_id": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "format": "uuid"
                                }
                            },
                            "required": [
                                "time_category",
                                "lohnart_nummer",
                                "label"
                            ]
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "mappings"
                ],
                "title": "UpdateDatevLohnartMappingsRequest"
            },
            "UpdateDocumentFolderRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "visible_to_employee": {
                        "type": "boolean"
                    }
                },
                "title": "UpdateDocumentFolderRequest"
            },
            "UpdateDocumentFolderTemplateRequest": {
                "type": "object",
                "properties": {
                    "template": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "key": {
                                    "type": "string",
                                    "pattern": "^[a-z0-9_]+$",
                                    "maxLength": 64
                                },
                                "name": {
                                    "type": "string",
                                    "maxLength": 255
                                },
                                "visible_to_employee": {
                                    "type": "boolean"
                                }
                            },
                            "required": [
                                "key",
                                "name"
                            ]
                        },
                        "uniqueItems": true
                    }
                },
                "required": [
                    "template"
                ],
                "title": "UpdateDocumentFolderTemplateRequest"
            },
            "UpdateEmployeeCompensationRequest": {
                "type": "object",
                "properties": {
                    "compensation_type_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "value": {
                        "type": "number",
                        "minimum": 0
                    },
                    "currency": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "minLength": 3,
                        "maxLength": 3
                    },
                    "effective_from": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "interval": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/CompensationInterval"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "weekly_working_hours": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0.1,
                        "maximum": 168
                    },
                    "full_time_weekly_working_hours": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0.1,
                        "maximum": 168
                    },
                    "comment": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    }
                },
                "title": "UpdateEmployeeCompensationRequest"
            },
            "UpdateEmployeeDocumentRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "folder_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "visible_to_employee": {
                        "type": "boolean"
                    }
                },
                "title": "UpdateEmployeeDocumentRequest"
            },
            "UpdateEmployeePayrollDataRequest": {
                "type": "object",
                "properties": {
                    "birth_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Personal",
                        "maxLength": 255
                    },
                    "sv_first_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "sv_last_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "name_prefix": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 20
                    },
                    "name_suffix": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 30
                    },
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    },
                    "street": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "postal_code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 10
                    },
                    "city": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "address_affix": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "address_country": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "minLength": 2,
                        "maxLength": 2
                    },
                    "birth_country": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "minLength": 2,
                        "maxLength": 2
                    },
                    "severely_disabled": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Besondere Kategorie (Art. 9 DSGVO): nur freiwillig, null = keine Angabe."
                    },
                    "birth_date": {
                        "type": "string",
                        "description": "Deprecated, Quelle ist employees.birthday: wird ohne Validierung verworfen, damit \u00e4ltere\nClients nicht mit 422 scheitern."
                    },
                    "birth_place": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "nationality": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "minLength": 2,
                        "maxLength": 2
                    },
                    "gender": {
                        "type": "string",
                        "description": "Deprecated, Quelle ist employees.gender: wird ohne Validierung verworfen."
                    },
                    "marital_status": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/MaritalStatus"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "tax_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Tax",
                        "maxLength": 11
                    },
                    "tax_class": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "1",
                            "2",
                            "3",
                            "4",
                            "4F",
                            "5",
                            "6",
                            null
                        ]
                    },
                    "tax_factor": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0.001,
                        "maximum": 0.999
                    },
                    "religion": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 2
                    },
                    "spouse_religion": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 2
                    },
                    "number_of_children": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 0,
                        "maximum": 20
                    },
                    "child_tax_allowance": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0,
                        "maximum": 10
                    },
                    "pension_obligation": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/PensionObligation"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "flat_rate_taxation": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/FlatRateTaxation"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "flat_rate_passed_on": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "insurance_type": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Health insurance",
                        "enum": [
                            "statutory",
                            "family_insured",
                            "private",
                            "exempt",
                            null
                        ]
                    },
                    "employment_type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/EmploymentType"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "health_insurance_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "health_insurance_number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 12
                    },
                    "health_insurance_company_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "insurance_valid_after": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date",
                        "description": "G\u00fcltig ab einer \u00c4nderung von KV-Art oder Kasse (Kassenwechsel zum Monatsersten, auch\nr\u00fcckwirkend); ohne Angabe gilt die \u00c4nderung ab heute. Nie vor dem Eintrittsdatum."
                    },
                    "health_insurance_member_number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "pkv_provider": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "pkv_monthly_premium": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0
                    },
                    "pkv_subsidy_requested": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "contribution_groups": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Beitragsgruppen KV/RV/AV/PV, je eine Ziffer (z. B. 1111).",
                        "pattern": "^[0-9]{4}$"
                    },
                    "uv_hazard_tariff": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    },
                    "rv_exemption_existing": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "rv_exemption_requested": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "rv_exemption_received_on": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "pension_insurance_number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Pension \u2014 format, Bereichsnummer and check digit are hard checks without override;\na birth date mismatch is a soft check that needs an explicit confirmation."
                    },
                    "vsnr_birthdate_confirmed": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "pension_fund": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "pension_fund_member_number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "social_fund": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Social fund",
                        "maxLength": 255
                    },
                    "social_fund_employee_number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "outpatient_care": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Employment"
                    },
                    "lbnr": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "job_title": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "profession": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "education_level": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Deprecated, ersetzt durch school_degree/vocational_training: wird ohne Validierung\nverworfen, damit \u00e4ltere Clients nicht mit 422 scheitern. Die \u00fcbrigen Regeln halten nur\nden bisherigen API-Vertrag (OpenAPI) stabil.",
                        "enum": [
                            "1",
                            "2",
                            "3",
                            "4",
                            "5",
                            null
                        ]
                    },
                    "school_degree": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/SchoolDegree"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "vocational_training": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/VocationalTraining"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "training_start": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "training_end_expected": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "first_entry_date": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "is_secondary_employment": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "construction_industry_since": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "probation_months": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Dauer der Probezeit in Monaten, null = keine Probezeit.",
                        "minimum": 1,
                        "maximum": 24
                    },
                    "status_at_start": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/EmploymentStatusAtStart"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "status_at_start_other": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "status_at_start_flags": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "$ref": "#/components/schemas/EmploymentStatusFlag"
                        },
                        "uniqueItems": true
                    },
                    "contract_type": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/ContractType"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "fixed_term_written": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "fixed_term_purpose": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "contract_signed_on": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "is_shareholder": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Special"
                    },
                    "is_student": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "multiple_employment": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "Wird aus den weiteren Besch\u00e4ftigungen abgeleitet, sobald solche erfasst sind."
                    },
                    "other_employment_limit_kept": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "disability_degree": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "enum": [
                            "0",
                            "20",
                            "30",
                            "40",
                            "50",
                            "60",
                            "70",
                            "80",
                            "90",
                            "100",
                            null
                        ]
                    },
                    "bank_account_holder": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Bank",
                        "maxLength": 255
                    },
                    "payment_method": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/PaymentMethod"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "iban": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 34
                    },
                    "bic": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 11
                    }
                },
                "title": "UpdateEmployeePayrollDataRequest"
            },
            "UpdateEmployeeRequest": {
                "type": "object",
                "properties": {
                    "code": {
                        "type": "string",
                        "maxLength": 50
                    },
                    "email": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "email",
                        "maxLength": 255
                    },
                    "password": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "minLength": 8
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "surname": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "gender": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/Gender"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "birthday": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "working_hours": {
                        "type": "string",
                        "pattern": "^\\d{2}:\\d{2}:\\d{2}\\.\\d{3}$"
                    },
                    "vacation_days": {
                        "type": "number",
                        "minimum": 0
                    },
                    "unit_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "department_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "cost_center_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "location_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "position": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "role": {
                        "type": "string"
                    },
                    "uses_projects": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "reference_no": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    },
                    "reference_no_change_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "salary_type_work": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100
                    },
                    "salary_type_overtime": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100
                    },
                    "include_in_export": {
                        "type": "boolean"
                    },
                    "time_account_enabled": {
                        "type": "boolean"
                    },
                    "weekly_hours_limit": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "holiday_auto_compensation": {
                        "type": "boolean"
                    },
                    "private_email": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "email",
                        "maxLength": 255
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 32
                    },
                    "emergency_contact_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "emergency_contact_relation": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "emergency_contact_phone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 32
                    },
                    "locale": {
                        "$ref": "#/components/schemas/Locale"
                    },
                    "sv_first_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "sv_last_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    }
                },
                "title": "UpdateEmployeeRequest"
            },
            "UpdateEmployeeSkillRequest": {
                "type": "object",
                "properties": {
                    "level": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "valid_from": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "valid_until": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "proof_reference": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "title": "UpdateEmployeeSkillRequest"
            },
            "UpdateEmploymentCertificateRequest": {
                "type": "object",
                "description": "Save manual inputs and request options of a draft (`PUT .../employment_certificates/{employmentCertificate}`).\n`manual_inputs` is an object field key => value; the value rules follow the field register of the\ncertificate type (date `Y-m-d`, amount and hours `1234.50`, yes/no, select options, compound values\nkeyed by their column keys). Only register keys and, inside compound values, only the column keys\nof the field are accepted; text is limited to 500 characters, tables and lists to 60 rows. Dotted\n\u00a7 312a keys (`3.2`) are escaped in the rule names.",
                "properties": {
                    "requested_by": {
                        "$ref": "#/components/schemas/CertificateRequester"
                    },
                    "request_options": {
                        "type": "object",
                        "properties": {
                            "earnings_24_months": {
                                "type": "boolean"
                            },
                            "period_from": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "format": "date"
                            },
                            "period_to": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "format": "date"
                            }
                        }
                    },
                    "manual_inputs": {
                        "type": "object",
                        "description": "Field key (Vordruckziffer) => value; `null` stores an explicitly empty value, `reset_keys`\nrestore the derived value or the register default.",
                        "additionalProperties": {}
                    },
                    "reset_keys": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "maxLength": 32
                        }
                    }
                },
                "title": "UpdateEmploymentCertificateRequest"
            },
            "UpdateHolidayRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "entries": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "date": {
                                    "type": "string",
                                    "format": "date-time"
                                },
                                "name": {
                                    "type": "string",
                                    "maxLength": 255
                                },
                                "half_day": {
                                    "type": "boolean"
                                }
                            },
                            "required": [
                                "date",
                                "name"
                            ]
                        },
                        "minItems": 1
                    }
                },
                "title": "UpdateHolidayRequest"
            },
            "UpdateHolidaysHistoryRequest": {
                "type": "object",
                "properties": {
                    "assignments": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "holiday_id": {
                                    "type": "string",
                                    "format": "uuid"
                                },
                                "valid_after": {
                                    "type": "string",
                                    "format": "date-time"
                                }
                            },
                            "required": [
                                "holiday_id",
                                "valid_after"
                            ]
                        },
                        "minItems": 1,
                        "uniqueItems": true
                    }
                },
                "required": [
                    "assignments"
                ],
                "title": "UpdateHolidaysHistoryRequest"
            },
            "UpdateJobApplicationStageRequest": {
                "type": "object",
                "description": "Stage change of an application (OpenSpec add-recruiting, D7): every stage is allowed, backwards\ntoo.",
                "properties": {
                    "stage": {
                        "$ref": "#/components/schemas/JobApplicationStage"
                    }
                },
                "required": [
                    "stage"
                ],
                "title": "UpdateJobApplicationStageRequest"
            },
            "UpdateJobPostingRequest": {
                "type": "object",
                "description": "Partial update of a job posting (task 3.3). Status, slug and timestamps are not writable here:\nthe status changes through publish, close and reopen, and the slug follows the title only until\nthe first publication ({@see \\App\\Services\\Recruiting\\JobPostingService}).",
                "properties": {
                    "title": {
                        "type": "string",
                        "maxLength": 150
                    },
                    "description_md": {
                        "type": "string",
                        "maxLength": 20000
                    },
                    "employment_type": {
                        "$ref": "#/components/schemas/JobEmploymentType"
                    },
                    "workplace_type": {
                        "$ref": "#/components/schemas/JobWorkplaceType"
                    },
                    "location_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "salary_min_cents": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 0,
                        "maximum": 100000000
                    },
                    "salary_max_cents": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 0,
                        "maximum": 100000000
                    },
                    "salary_period": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/JobSalaryPeriod"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "valid_through": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    }
                },
                "title": "UpdateJobPostingRequest"
            },
            "UpdateLeaveRequestDoctorVisitRequest": {
                "type": "object",
                "description": "Nachtr\u00e4gliche \u00c4nderung von \u201eArztbesuch\" (und optional \u201eAU dem Arbeitgeber gemeldet\") an einer\nKrankmeldung einer eAU-relevanten Abwesenheitsart (`PUT /rest/leave_requests/{leaveRequest}/doctor_visit`).",
                "properties": {
                    "doctor_visit": {
                        "type": "boolean"
                    },
                    "eau_entgfg_gemeldet": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "doctor_visit"
                ],
                "title": "UpdateLeaveRequestDoctorVisitRequest"
            },
            "UpdateLocationRequest": {
                "type": "object",
                "description": "\u00c4nderung eines Standorts. `apply_to_employees` leitet die Betriebsst\u00e4tten-Zuordnung aller\nMitarbeitenden des Standorts ab `valid_after` aus dem Standort ab.",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "phone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    },
                    "address": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 500
                    },
                    "address_additional": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 500
                    },
                    "city": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "postal_code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 20
                    },
                    "state_region": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "country": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100
                    },
                    "timezone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 100
                    },
                    "establishment_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "apply_to_employees": {
                        "type": "boolean"
                    },
                    "valid_after": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    }
                },
                "title": "UpdateLocationRequest"
            },
            "UpdateModulesRequest": {
                "type": "object",
                "description": "Body of PATCH /rest/config/modules \u2014 the complete list of modules the\ntenant should have switched on.",
                "properties": {
                    "modules": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TenantModule"
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "modules"
                ],
                "title": "UpdateModulesRequest"
            },
            "UpdateNfcTagRequest": {
                "type": "object",
                "properties": {
                    "tag_id": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "location_description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    },
                    "is_active": {
                        "type": "boolean"
                    }
                },
                "title": "UpdateNfcTagRequest"
            },
            "UpdateOvertimeAccountRequest": {
                "type": "object",
                "properties": {
                    "year_month": {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}$"
                    },
                    "balance_ms": {
                        "type": "integer",
                        "description": "Bound to +/- one year in milliseconds so a corrupted or malicious\npayload cannot push the overtime balance to absurd values.",
                        "minimum": -31536000000,
                        "maximum": 31536000000
                    }
                },
                "required": [
                    "year_month",
                    "balance_ms"
                ],
                "title": "UpdateOvertimeAccountRequest"
            },
            "UpdatePayrollCompanySettingsRequest": {
                "type": "object",
                "properties": {
                    "company_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "company_number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "establishment_number": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "trade_association_pin": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "collective_agreement": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "social_fund_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "social_fund_contribution_number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "apportionment_required": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "tax_office": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "tax_number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "registration_period": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/RegistrationPeriod"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "causer_company_number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "eAU Absenderdaten"
                    },
                    "is_health_insurance_or_dav": {
                        "type": "boolean"
                    },
                    "contact_name": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "contact_phone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 20
                    },
                    "contact_fax": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 20
                    },
                    "contact_email": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^(?=[!\"#$%&'()*+,\\-.\\/0-9:;<=>?\u00a7@A-Za-z\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc^_`]+$)(?=[^@\u00a7]*[@\u00a7][^@\u00a7]*$)[^@\u00a7].*[^@\u00a7]$",
                        "maxLength": 320
                    },
                    "address_street": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "address_house_number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 20
                    },
                    "address_postal_code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 10
                    },
                    "address_city": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "legal_circle": {
                        "type": "string",
                        "description": "Rechtskreis West/Ost f\u00fcr die Arbeitsbescheinigung (Ziffer 81)",
                        "enum": [
                            "west",
                            "east"
                        ]
                    },
                    "eau_retrieval_rule": {
                        "description": "eAU-Abruf-Tag",
                        "$ref": "#/components/schemas/EauRetrievalRule"
                    },
                    "eau_retrieval_day": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "Static string rules; the effective rule is merged into the input in prepareForValidation().",
                        "minimum": 2,
                        "maximum": 4
                    }
                },
                "title": "UpdatePayrollCompanySettingsRequest"
            },
            "UpdatePayrollEstablishmentRequest": {
                "type": "object",
                "description": "\u00c4nderung einer Betriebsst\u00e4tte. Zus\u00e4tzlich zu den Anlage-Regeln ist eine BBNR-\u00c4nderung gesperrt,\nsobald die bisherige BBNR in einer versendeten eAU-Anforderung als Verursacher-BBNR steht.",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "bbnr": {
                        "type": "string"
                    },
                    "address_street": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "address_house_number": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 20
                    },
                    "address_postal_code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 10
                    },
                    "address_city": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "legal_circle": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "west",
                            "east",
                            null
                        ]
                    }
                },
                "title": "UpdatePayrollEstablishmentRequest"
            },
            "UpdatePersonnelQuestionnaireDecisionsRequest": {
                "type": "object",
                "description": "Entscheidung je abweichendem Feld: Fragebogenwert \u00fcbernehmen oder bestehenden Stammdatenwert\nbehalten; bei der Krankenkasse bestehender Personen zus\u00e4tzlich das G\u00fcltig-ab-Datum.",
                "properties": {
                    "lock_version": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "decisions": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "decision": {
                                    "type": "string",
                                    "enum": [
                                        "take_questionnaire",
                                        "keep_existing"
                                    ]
                                },
                                "valid_from": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "format": "date"
                                }
                            },
                            "required": [
                                "decision"
                            ]
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "lock_version",
                    "decisions"
                ],
                "title": "UpdatePersonnelQuestionnaireDecisionsRequest"
            },
            "UpdatePersonnelQuestionnaireRequest": {
                "type": "object",
                "description": "Arbeitgeberangaben der Pr\u00fcfansicht (Teilaktualisierung, Feld-ID \u2192 Wert), best\u00e4tigte R\u00fcckfragen zu\nArbeitgeberfeldern und die Arbeitspapiere-Checkliste. `lock_version` sch\u00fctzt vor parallelen\n\u00c4nderungen (409). Die Werte pr\u00fcft das Regelwerk des Formular-Schemas.",
                "properties": {
                    "lock_version": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "answers": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "confirmations": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "maxLength": 100
                        }
                    },
                    "documents_present": {
                        "type": "array",
                        "items": {
                            "type": "boolean"
                        }
                    }
                },
                "required": [
                    "lock_version"
                ],
                "title": "UpdatePersonnelQuestionnaireRequest"
            },
            "UpdatePersonnelQuestionnaireReviewsRequest": {
                "type": "object",
                "description": "Feldstatus der Pr\u00fcfansicht: Feld-ID \u2192 `checked` | `unchecked` | `query`.",
                "properties": {
                    "reviews": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "checked",
                                "unchecked",
                                "query"
                            ]
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "reviews"
                ],
                "title": "UpdatePersonnelQuestionnaireReviewsRequest"
            },
            "UpdatePersonnelQuestionnaireSettingsRequest": {
                "type": "object",
                "description": "Tenant settings of the personnel questionnaire (task 1.5, D14, D16): link validity 7 to 90 days,\nautomatic reminders, cash payment, privacy notice and the construction industry switch. Partial\nupdate; an empty privacy notice falls back to the standard text.",
                "properties": {
                    "link_days": {
                        "type": "integer",
                        "minimum": 7,
                        "maximum": 90
                    },
                    "auto_reminders": {
                        "type": "boolean"
                    },
                    "allow_cash_payment": {
                        "type": "boolean"
                    },
                    "construction_industry": {
                        "type": "boolean"
                    },
                    "privacy_notice": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 10000
                    }
                },
                "title": "UpdatePersonnelQuestionnaireSettingsRequest"
            },
            "UpdateProjectRequest": {
                "type": "object",
                "properties": {
                    "code": {
                        "type": "string",
                        "maxLength": 50
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    },
                    "cost_center_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "activity_requirement": {
                        "type": "string",
                        "enum": [
                            "optional",
                            "required"
                        ]
                    }
                },
                "title": "UpdateProjectRequest"
            },
            "UpdateQuestionnaireAnswersRequest": {
                "type": "object",
                "description": "Zwischenspeichern im Wizard: Antworten als Feld-ID \u2192 Wert (Listen als Zeilen), Best\u00e4tigungen von\nR\u00fcckfragen (Schl\u00fcssel aus `evaluation.confirms`) und der aktuelle Schritt. Die Werte pr\u00fcft das\nRegelwerk des Formular-Schemas verbindlich.",
                "properties": {
                    "answers": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "confirmations": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "maxLength": 100
                        },
                        "maxItems": 100
                    },
                    "current_step": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 1,
                        "maximum": 6
                    }
                },
                "required": [
                    "answers"
                ],
                "title": "UpdateQuestionnaireAnswersRequest"
            },
            "UpdateRecruitingCompanyProfileRequest": {
                "type": "object",
                "description": "Company profile of the career page (OpenSpec add-recruiting, task 9.3): accent colour as\n`#rrggbb`, a plain-text short description of at most 600 characters and the company website as\nabsolute http or https address (D19, `hiringOrganization.sameAs`). Partial update; empty or null\nremoves the value. The logo has its own upload route.",
                "properties": {
                    "accent_color": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^#[0-9a-fA-F]{6}$"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 600
                    },
                    "website": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uri",
                        "maxLength": 255
                    }
                },
                "title": "UpdateRecruitingCompanyProfileRequest"
            },
            "UpdateRecruitingLocationRequest": {
                "type": "object",
                "description": "Address change of a work location from the posting editor (OpenSpec add-recruiting, D3, D10).\nPartial update: only the fields sent are validated and written, so a location of the time tracking\nwhose country is still free text keeps it until the editor sends an ISO code.",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "address": {
                        "type": "string",
                        "maxLength": 500
                    },
                    "address_additional": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 500
                    },
                    "postal_code": {
                        "type": "string",
                        "maxLength": 20
                    },
                    "city": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "state_region": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "country": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2
                    }
                },
                "title": "UpdateRecruitingLocationRequest"
            },
            "UpdateRecruitingMailTemplatesRequest": {
                "type": "object",
                "description": "Mail templates of the recruiting settings (OpenSpec add-recruiting, task 9.1). Partial update per\ntemplate: `{subject, body}` stores an own text, `null` restores the default. Only the\nplaceholders {vorname}, {nachname}, {stelle} and {firma} are allowed.",
                "properties": {
                    "rejection": {
                        "type": "object",
                        "properties": {
                            "subject": {
                                "type": "string",
                                "maxLength": 200
                            },
                            "body": {
                                "type": "string",
                                "maxLength": 10000
                            }
                        }
                    },
                    "invitation": {
                        "type": "object",
                        "properties": {
                            "subject": {
                                "type": "string",
                                "maxLength": 200
                            },
                            "body": {
                                "type": "string",
                                "maxLength": 10000
                            }
                        }
                    }
                },
                "title": "UpdateRecruitingMailTemplatesRequest"
            },
            "UpdateRecruitingSettingsRequest": {
                "type": "object",
                "description": "Recruiting settings (OpenSpec add-recruiting, D12, task 1.5): privacy notice (empty = standard\ntext), retention period 1 to 24 months and the HR recipient address (empty = everybody with\n`recruiting:manage`) and whether the postings may enter the aggregate job feeds (D16). Partial\nupdate; the version counter is never client-writable.",
                "properties": {
                    "privacy_notice": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 10000
                    },
                    "retention_months": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 24
                    },
                    "notification_email": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "email",
                        "maxLength": 255
                    },
                    "feeds_enabled": {
                        "type": "boolean"
                    }
                },
                "title": "UpdateRecruitingSettingsRequest"
            },
            "UpdateRecruitingWidgetSettingsRequest": {
                "type": "object",
                "description": "Job widget settings (OpenSpec add-recruiting, D17): partial update of filters, card fields, page\nsize, colors (`#rrggbb`) and preselection; unknown keys are rejected.",
                "properties": {
                    "filters": {
                        "type": "object",
                        "properties": {
                            "location": {
                                "type": "boolean"
                            },
                            "employment_type": {
                                "type": "boolean"
                            }
                        }
                    },
                    "card_fields": {
                        "type": "object",
                        "properties": {
                            "location": {
                                "type": "boolean"
                            },
                            "employment_type": {
                                "type": "boolean"
                            },
                            "workplace_type": {
                                "type": "boolean"
                            },
                            "salary": {
                                "type": "boolean"
                            },
                            "published_at": {
                                "type": "boolean"
                            }
                        }
                    },
                    "per_page": {
                        "type": "integer",
                        "minimum": 5,
                        "maximum": 50
                    },
                    "colors": {
                        "type": "object",
                        "properties": {
                            "background": {
                                "type": "string",
                                "pattern": "^#[0-9a-fA-F]{6}$"
                            },
                            "card": {
                                "type": "string",
                                "pattern": "^#[0-9a-fA-F]{6}$"
                            },
                            "border": {
                                "type": "string",
                                "pattern": "^#[0-9a-fA-F]{6}$"
                            },
                            "text": {
                                "type": "string",
                                "pattern": "^#[0-9a-fA-F]{6}$"
                            },
                            "accent": {
                                "type": "string",
                                "pattern": "^#[0-9a-fA-F]{6}$"
                            }
                        }
                    },
                    "preselect": {
                        "type": "object",
                        "properties": {
                            "location_id": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "format": "uuid"
                            },
                            "employment_type": {
                                "anyOf": [
                                    {
                                        "$ref": "#/components/schemas/JobEmploymentType"
                                    },
                                    {
                                        "type": "null"
                                    }
                                ]
                            }
                        }
                    }
                },
                "title": "UpdateRecruitingWidgetSettingsRequest"
            },
            "UpdateRoleRequest": {
                "type": "object",
                "properties": {
                    "display_name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "permissions": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "employees:view",
                                "employees:manage",
                                "employees:assign_roles",
                                "employees:view-all",
                                "time-tracking:view",
                                "time-tracking:correct",
                                "time-tracking:export",
                                "absences:view",
                                "absences:manage",
                                "absences:approve",
                                "schedule-models:view",
                                "schedule-models:manage",
                                "holidays:view",
                                "holidays:manage",
                                "org:manage",
                                "documents:view",
                                "documents:manage",
                                "projects:view",
                                "projects:manage",
                                "payroll:view",
                                "payroll:manage",
                                "personnel-questionnaire:manage",
                                "recruiting:manage",
                                "reports:view",
                                "roster:plan-cross-site",
                                "settings:manage",
                                "time-tracking:clock-web",
                                "time-tracking:clock-mobile",
                                "time-tracking:clock-terminal",
                                "notifications:own",
                                "notifications:department",
                                "self-service:avatar",
                                "self-service:profile",
                                "self-service:payroll",
                                "self-service:documents"
                            ]
                        }
                    }
                },
                "title": "UpdateRoleRequest"
            },
            "UpdateRosterEntryRequest": {
                "type": "object",
                "properties": {
                    "employee_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "date": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "shift_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "start_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "end_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "work_area_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "status": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/RosterEntryStatus"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "scope": {
                        "$ref": "#/components/schemas/SeriesEditScope"
                    },
                    "publish": {
                        "type": "boolean"
                    },
                    "force": {
                        "type": "boolean"
                    }
                },
                "title": "UpdateRosterEntryRequest"
            },
            "UpdateRosterRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "period_start": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "period_end": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "unit_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "notes": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "budget_cents": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 0
                    }
                },
                "title": "UpdateRosterRequest"
            },
            "UpdateRosterTemplateRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "kind": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/RosterTemplateKind"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "cycle_length_weeks": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 52
                    },
                    "pattern": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "minItems": 1
                    },
                    "unit_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    }
                },
                "title": "UpdateRosterTemplateRequest"
            },
            "UpdateScheduleModelRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "type": {
                        "$ref": "#/components/schemas/ScheduleModelType"
                    },
                    "accommodation_time": {
                        "type": "boolean"
                    },
                    "night_begin": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^\\d{2}:\\d{2}:\\d{2}\\.\\d{3}$"
                    },
                    "entries": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "weekday": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 7
                                },
                                "periods": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "start": {
                                                "type": "integer",
                                                "minimum": 0
                                            },
                                            "end": {
                                                "type": "integer",
                                                "minimum": 0
                                            }
                                        },
                                        "required": [
                                            "start",
                                            "end"
                                        ]
                                    },
                                    "minItems": 1
                                },
                                "pauses": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "start": {
                                                "type": "integer",
                                                "minimum": 0
                                            },
                                            "end": {
                                                "type": "integer",
                                                "minimum": 0
                                            }
                                        },
                                        "required": [
                                            "start",
                                            "end"
                                        ]
                                    }
                                },
                                "core_times": {
                                    "type": [
                                        "array",
                                        "null"
                                    ],
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "start": {
                                                "type": "integer",
                                                "minimum": 0
                                            },
                                            "end": {
                                                "type": "integer",
                                                "minimum": 0
                                            }
                                        },
                                        "required": [
                                            "start",
                                            "end"
                                        ]
                                    }
                                },
                                "pause_thresholds": {
                                    "type": [
                                        "array",
                                        "null"
                                    ],
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "threshold": {
                                                "type": "integer",
                                                "minimum": 0
                                            },
                                            "duration": {
                                                "type": "integer",
                                                "minimum": 0
                                            }
                                        },
                                        "required": [
                                            "threshold",
                                            "duration"
                                        ]
                                    }
                                },
                                "accommodation": {
                                    "type": [
                                        "object",
                                        "null"
                                    ],
                                    "properties": {
                                        "start": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 86400000
                                        },
                                        "end": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 86400000
                                        }
                                    }
                                }
                            },
                            "required": [
                                "weekday",
                                "periods",
                                "pauses"
                            ]
                        },
                        "minItems": 1
                    },
                    "blocked_weekdays": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 7
                        },
                        "uniqueItems": true
                    }
                },
                "title": "UpdateScheduleModelRequest"
            },
            "UpdateScheduleModelsHistoryRequest": {
                "type": "object",
                "properties": {
                    "assignments": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "schedule_model_id": {
                                    "type": "string",
                                    "format": "uuid"
                                },
                                "valid_after": {
                                    "type": "string",
                                    "format": "date-time"
                                }
                            },
                            "required": [
                                "schedule_model_id",
                                "valid_after"
                            ]
                        },
                        "minItems": 1,
                        "uniqueItems": true
                    }
                },
                "required": [
                    "assignments"
                ],
                "title": "UpdateScheduleModelsHistoryRequest"
            },
            "UpdateSettingsRequest": {
                "type": "object",
                "description": "Validation for the bulk settings update.\n\n`export_format` is validated against {@see ExportFormat}, the single source of\ntruth for export formats. The previous hardcoded list (`csv,lodas,zucchetti`)\npredates that enum: `lodas` was the C++/stamp.json spelling for DATEV LODAS,\nwhich the enum encodes as `datev` ({@see ExportFormat::DatevLodas}). The list\nwas therefore both too narrow (no `csv_extended`, `datev_lug`, `agenda`,\n`projects`) and inconsistent with every other consumer of the format value\n(`ExportController` resolves `?format=` through the enum).\n\nDecision: accept the enum values, and keep the legacy spelling working by\nnormalizing `lodas` to `datev` in {@see prepareForValidation()} instead of\nrejecting it. Old clients (and tenants whose value was imported from\nstamp.json as `lodas`) keep saving successfully, while every new write stores\nthe canonical enum value. Stored legacy `lodas` values are read-only strings\n(`Tenant::exportFormat()`) and are intentionally left untouched \u2014 no data\nmigration is performed here.\n\n`language` is a deliberate subset of {@see Locale}: only the two locales the\ntenant-wide default is offered for today. It references the enum cases so a\nrenamed/removed locale breaks at compile time instead of silently drifting.",
                "properties": {
                    "company_name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "timezone": {
                        "type": "string"
                    },
                    "language": {
                        "type": "string",
                        "enum": [
                            "de",
                            "en"
                        ]
                    },
                    "mail_reply_to": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "email",
                        "maxLength": 255
                    },
                    "terminal_message": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 500
                    },
                    "card_format": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/CardFormat"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "zucchetti_terminal_key": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "datev_berater_nr": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 20
                    },
                    "datev_mandanten_nr": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 20
                    },
                    "auto_clockout_time": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^\\d+$"
                    },
                    "night_shift_boundary": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^\\d+$"
                    },
                    "accommodation_tolerance_minutes": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 60
                    },
                    "auto_approve_corrections_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 1,
                        "maximum": 120
                    },
                    "activities_required_on_clock_in": {
                        "type": "string",
                        "enum": [
                            "0",
                            "1"
                        ]
                    },
                    "compliance_min_rest_hours": {
                        "type": "integer",
                        "minimum": 10,
                        "maximum": 11
                    },
                    "compliance_night_start": {
                        "type": "integer",
                        "minimum": 22,
                        "maximum": 24
                    },
                    "compliance_night_end": {
                        "type": "integer",
                        "minimum": 5,
                        "maximum": 7
                    },
                    "compliance_min_free_sundays": {
                        "type": "integer",
                        "minimum": 6,
                        "maximum": 15
                    },
                    "compliance_average_period_weeks": {
                        "type": "integer",
                        "minimum": 4,
                        "maximum": 52
                    },
                    "compliance_night_worker_avg_weeks": {
                        "type": "integer",
                        "minimum": 4,
                        "maximum": 8
                    },
                    "vacation_carryover_cutoff": {
                        "type": "string",
                        "pattern": "^(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"
                    },
                    "vacation_extra_expiry": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"
                    },
                    "vacation_rounding_enabled": {
                        "type": "string",
                        "enum": [
                            "0",
                            "1"
                        ]
                    },
                    "vacation_waiting_period_enabled": {
                        "type": "string",
                        "enum": [
                            "0",
                            "1"
                        ]
                    },
                    "vacation_waiting_period_display_mode": {
                        "type": "string",
                        "enum": [
                            "anteilig",
                            "voll_mit_hinweis",
                            "zurueckhalten"
                        ]
                    },
                    "vacation_reminder_channels": {
                        "type": "string",
                        "pattern": "^(inbox|push|email)(,(inbox|push|email))*$"
                    },
                    "roster.auto_pause_mode": {
                        "$ref": "#/components/schemas/RosterAutoPauseMode"
                    },
                    "roster.no_show_detection": {
                        "type": "string",
                        "enum": [
                            "0",
                            "1"
                        ]
                    },
                    "roster.clock_in_window_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 1,
                        "maximum": 1440
                    },
                    "roster.capture_capping": {
                        "type": "string",
                        "enum": [
                            "off",
                            "shift_start",
                            "shift_bounds"
                        ]
                    },
                    "roster.capture_rounding": {
                        "type": "string",
                        "enum": [
                            "off",
                            "5",
                            "10",
                            "15"
                        ]
                    },
                    "roster.capture_rounding_mode": {
                        "type": "string",
                        "enum": [
                            "employer",
                            "nearest"
                        ]
                    },
                    "roster.flag_unplanned_capture": {
                        "type": "string",
                        "enum": [
                            "0",
                            "1"
                        ]
                    },
                    "roster.unplanned_tolerance_minutes": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1440
                    },
                    "roster.enforce_work_areas": {
                        "type": "string",
                        "enum": [
                            "0",
                            "1"
                        ]
                    },
                    "roster.fairness_window_weeks": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 52
                    },
                    "roster.wish_budget_per_month": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                    },
                    "roster.auto_post_open_on_understaffing": {
                        "type": "string",
                        "enum": [
                            "0",
                            "1"
                        ]
                    },
                    "roster.self_service_swap_auto_approve": {
                        "type": "string",
                        "enum": [
                            "0",
                            "1"
                        ]
                    },
                    "roster.acknowledgement_window_hours": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 336
                    },
                    "payroll.surcharge_source": {
                        "type": "string",
                        "enum": [
                            "flags",
                            "rules"
                        ]
                    },
                    "payroll.minijob_limit": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^$|^\\d{1,6}([.,]\\d{1,2})?$"
                    },
                    "eau_testkassen": {
                        "type": "string",
                        "enum": [
                            "0",
                            "1"
                        ]
                    },
                    "personnel_questionnaire_link_days": {
                        "type": "integer",
                        "minimum": 7,
                        "maximum": 90
                    },
                    "personnel_questionnaire_auto_reminders": {
                        "type": "string",
                        "enum": [
                            "0",
                            "1"
                        ]
                    },
                    "personnel_questionnaire_allow_cash_payment": {
                        "type": "string",
                        "enum": [
                            "0",
                            "1"
                        ]
                    },
                    "personnel_questionnaire_privacy_notice": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 10000
                    },
                    "construction_industry": {
                        "type": "string",
                        "enum": [
                            "0",
                            "1"
                        ]
                    },
                    "apps.mobile.location": {
                        "$ref": "#/components/schemas/AppChannelPolicy"
                    },
                    "apps.mobile.clock_comment": {
                        "$ref": "#/components/schemas/AppChannelPolicy"
                    },
                    "pause_staged": {
                        "type": "string",
                        "enum": [
                            "0",
                            "1"
                        ]
                    },
                    "export_format": {
                        "$ref": "#/components/schemas/ExportFormat"
                    }
                },
                "title": "UpdateSettingsRequest"
            },
            "UpdateShiftRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "abbreviation": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 8
                    },
                    "color": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^#[0-9A-Fa-f]{6}$"
                    },
                    "start_time": {
                        "type": "string"
                    },
                    "end_time": {
                        "type": "string"
                    },
                    "break_duration": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "is_overnight": {
                        "type": [
                            "boolean",
                            "null"
                        ]
                    },
                    "schedule_model_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "work_area_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "tags": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "string",
                            "maxLength": 50
                        },
                        "maxItems": 10
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 2000
                    },
                    "fairness_weight": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 5
                    }
                },
                "title": "UpdateShiftRequest"
            },
            "UpdateSkillRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "category": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "color": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^#[0-9A-Fa-f]{6}$",
                        "maxLength": 7
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "expirable": {
                        "type": "boolean"
                    },
                    "is_active": {
                        "type": "boolean"
                    },
                    "sort_order": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "max_level": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 10
                    },
                    "level_labels": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "string",
                            "maxLength": 100
                        }
                    }
                },
                "required": [
                    "name"
                ],
                "title": "UpdateSkillRequest"
            },
            "UpdateUnitRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "parent_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "permissions": {
                        "type": "object",
                        "properties": {
                            "employees": {
                                "type": "boolean"
                            },
                            "units": {
                                "type": "boolean"
                            },
                            "departments": {
                                "type": "boolean"
                            },
                            "events": {
                                "type": "boolean"
                            },
                            "leave": {
                                "type": "boolean"
                            },
                            "schedules": {
                                "type": "boolean"
                            },
                            "holidays": {
                                "type": "boolean"
                            },
                            "cost_centers": {
                                "type": "boolean"
                            },
                            "short_work": {
                                "type": "boolean"
                            },
                            "export": {
                                "type": "boolean"
                            },
                            "projects": {
                                "type": "boolean"
                            },
                            "absence_overlap": {
                                "type": "boolean"
                            },
                            "personnel_questionnaire": {
                                "type": "boolean"
                            }
                        }
                    }
                },
                "title": "UpdateUnitRequest"
            },
            "UpdateVacationEntitlementRequest": {
                "type": "object",
                "properties": {
                    "year": {
                        "type": "integer",
                        "minimum": 2020,
                        "maximum": 2100
                    },
                    "total_days": {
                        "type": "number",
                        "minimum": 0
                    },
                    "carried_over": {
                        "type": "number",
                        "minimum": -366,
                        "maximum": 366
                    },
                    "statutory_days": {
                        "type": "number",
                        "minimum": 0
                    },
                    "extra_days": {
                        "type": "number",
                        "minimum": 0
                    },
                    "carryover_expires_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "extra_expires_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    }
                },
                "required": [
                    "year",
                    "total_days"
                ],
                "title": "UpdateVacationEntitlementRequest"
            },
            "UpdateWebhookRequest": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "maxLength": 2048
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "events": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "employee.created",
                                "employee.updated",
                                "employee.deleted",
                                "event.created",
                                "altered_event.created",
                                "altered_event.approved",
                                "altered_event.rejected",
                                "altered_event.deleted",
                                "leave_request.created",
                                "leave_request.approved",
                                "leave_request.denied",
                                "leave_request.deleted",
                                "schedule_model.created",
                                "schedule_model.updated",
                                "schedule_model.deleted",
                                "holiday.created",
                                "holiday.updated",
                                "holiday.deleted",
                                "unit.created",
                                "unit.updated",
                                "unit.deleted",
                                "department.created",
                                "department.updated",
                                "department.deleted",
                                "cost_center.created",
                                "cost_center.updated",
                                "cost_center.deleted",
                                "project.created",
                                "project.updated",
                                "project.deleted",
                                "location.created",
                                "location.updated",
                                "location.deleted",
                                "personnel_questionnaire.completed",
                                "job_application.received",
                                "job_application.stage_changed"
                            ]
                        },
                        "minItems": 1
                    },
                    "active": {
                        "type": "boolean"
                    }
                },
                "title": "UpdateWebhookRequest"
            },
            "UpdateWorkActivityRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 50
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 1000
                    },
                    "color": {
                        "type": "string",
                        "maxLength": 32
                    },
                    "booking_mode": {
                        "type": "string",
                        "enum": [
                            "session",
                            "day"
                        ]
                    },
                    "requires_project": {
                        "type": "boolean"
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "sort_order": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9999
                    },
                    "unit_ids": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                },
                "title": "UpdateWorkActivityRequest"
            },
            "UpdateWorkAreaRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 100
                    },
                    "color": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "pattern": "^#[0-9A-Fa-f]{6}$",
                        "maxLength": 7
                    },
                    "unit_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "sort_order": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "is_active": {
                        "type": "boolean"
                    }
                },
                "title": "UpdateWorkAreaRequest"
            },
            "UpdateWorkspaceRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "timezone": {
                        "type": "string"
                    }
                },
                "title": "UpdateWorkspaceRequest"
            },
            "UploadRecruitingCompanyLogoRequest": {
                "type": "object",
                "description": "Company logo upload (OpenSpec add-recruiting, task 9.3): one file, at most\n`recruiting.company.logo_max_kb` (2 MB). The type is sniffed from the content by the service\n(PNG, JPEG or WebP, never SVG), the client MIME type is not trusted.",
                "properties": {
                    "logo": {
                        "type": "string",
                        "format": "binary",
                        "contentMediaType": "application/octet-stream",
                        "description": "Maximum file size: 2048 kilobytes."
                    }
                },
                "required": [
                    "logo"
                ],
                "title": "UploadRecruitingCompanyLogoRequest"
            },
            "UserResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "surname": {
                        "type": "string"
                    },
                    "email": {
                        "type": "string"
                    },
                    "locale": {
                        "type": "string"
                    },
                    "type": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "integer",
                                "enum": [
                                    1
                                ]
                            }
                        ]
                    },
                    "role": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "role_display_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "permissions": {
                        "type": "array",
                        "items": {}
                    },
                    "employee": {
                        "allOf": [
                            {
                                "$ref": "#/components/schemas/EmployeeResource"
                            },
                            {
                                "type": "object",
                                "required": [
                                    "unit"
                                ]
                            }
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "code",
                    "name",
                    "surname",
                    "email",
                    "locale",
                    "type",
                    "created_at",
                    "updated_at"
                ],
                "title": "UserResource"
            },
            "VacationAllocationPreviewResource": {
                "type": "object",
                "properties": {
                    "days": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "date": {
                                    "type": "string"
                                },
                                "fraction": {
                                    "type": "number"
                                }
                            },
                            "required": [
                                "date",
                                "fraction"
                            ]
                        }
                    },
                    "total_days": {
                        "type": "number"
                    },
                    "allocation": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "bucket": {
                                    "type": "string"
                                },
                                "days": {
                                    "type": "number"
                                },
                                "expires_at": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "bucket",
                                "days",
                                "expires_at"
                            ]
                        }
                    }
                },
                "required": [
                    "days",
                    "total_days",
                    "allocation"
                ],
                "title": "VacationAllocationPreviewResource"
            },
            "VacationEntitlementResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "employee_id": {
                        "type": "string"
                    },
                    "year": {
                        "type": "string"
                    },
                    "total_days": {
                        "type": "number"
                    },
                    "used_days": {
                        "type": "number"
                    },
                    "remaining_days": {
                        "type": "number"
                    },
                    "carried_over": {
                        "type": "number"
                    },
                    "buckets": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "bucket": {
                                    "type": "string",
                                    "enum": [
                                        "carryover",
                                        "statutory",
                                        "extra"
                                    ]
                                },
                                "granted": {
                                    "type": "number"
                                },
                                "used": {
                                    "type": "number"
                                },
                                "remaining": {
                                    "type": "number"
                                },
                                "expires_at": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "bucket",
                                "granted",
                                "used",
                                "remaining",
                                "expires_at"
                            ]
                        }
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "employee_id",
                    "year",
                    "total_days",
                    "used_days",
                    "remaining_days",
                    "carried_over",
                    "buckets",
                    "created_at",
                    "updated_at"
                ],
                "title": "VacationEntitlementResource"
            },
            "VacationTransactionResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "bucket": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "days": {
                        "type": "number"
                    },
                    "note": {
                        "type": "string"
                    },
                    "source": {
                        "type": "string"
                    },
                    "created_by": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "leave_request_id": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "bucket",
                    "type",
                    "days",
                    "note",
                    "source",
                    "created_by",
                    "leave_request_id",
                    "created_at"
                ],
                "title": "VacationTransactionResource"
            },
            "VocationalTraining": {
                "type": "string",
                "description": "H\u00f6chste Berufsausbildung. Die Werte sind die 7. Stelle des T\u00e4tigkeitsschl\u00fcssels (Schl\u00fcsselverzeichnis der Bundesagentur f\u00fcr Arbeit, Ausgabe 2010); `Unknown` (9) ist ausdr\u00fccklich zul\u00e4ssig.\n",
                "enum": [
                    "1",
                    "2",
                    "3",
                    "4",
                    "5",
                    "6",
                    "9"
                ],
                "title": "VocationalTraining"
            },
            "WebhookCreatedResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "events": {
                        "type": "string"
                    },
                    "active": {
                        "type": "string"
                    },
                    "secret_last4": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "secret": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "url",
                    "description",
                    "events",
                    "active",
                    "secret_last4",
                    "created_at",
                    "updated_at",
                    "secret"
                ],
                "title": "WebhookCreatedResource"
            },
            "WebhookDeliveryResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "event_name": {
                        "type": "string"
                    },
                    "payload": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "response_code": {
                        "type": "string"
                    },
                    "response_body": {
                        "type": "string"
                    },
                    "attempts": {
                        "type": "string"
                    },
                    "completed_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "event_name",
                    "payload",
                    "status",
                    "response_code",
                    "response_body",
                    "attempts",
                    "completed_at",
                    "created_at"
                ],
                "title": "WebhookDeliveryResource"
            },
            "WebhookResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "events": {
                        "type": "string"
                    },
                    "active": {
                        "type": "string"
                    },
                    "secret_last4": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "url",
                    "description",
                    "events",
                    "active",
                    "secret_last4",
                    "created_at",
                    "updated_at"
                ],
                "title": "WebhookResource"
            },
            "WishBudgetResource": {
                "type": "object",
                "properties": {
                    "employee_id": {
                        "type": "string"
                    },
                    "year_month": {
                        "type": "string"
                    },
                    "budget": {
                        "type": "string"
                    },
                    "used": {
                        "type": "string"
                    },
                    "remaining": {
                        "type": "string"
                    },
                    "grant_rate": {
                        "type": "string"
                    }
                },
                "required": [
                    "employee_id",
                    "year_month",
                    "budget",
                    "used",
                    "remaining",
                    "grant_rate"
                ],
                "title": "WishBudgetResource"
            },
            "WithdrawAlteredEventRequest": {
                "type": "object",
                "description": "Body of PATCH /rest/employees/{employee}/working_time/withdraw \u2014 the day\nwhose own pending correction is taken back.",
                "properties": {
                    "date": {
                        "type": "string",
                        "format": "date-time"
                    }
                },
                "required": [
                    "date"
                ],
                "title": "WithdrawAlteredEventRequest"
            },
            "WorkActivityResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "color": {
                        "type": "string"
                    },
                    "booking_mode": {
                        "type": "string"
                    },
                    "requires_project": {
                        "type": "string"
                    },
                    "active": {
                        "type": "string"
                    },
                    "sort_order": {
                        "type": "string"
                    },
                    "unit_ids": {
                        "type": "object",
                        "additionalProperties": {}
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "name",
                    "code",
                    "description",
                    "color",
                    "booking_mode",
                    "requires_project",
                    "active",
                    "sort_order",
                    "unit_ids",
                    "created_at",
                    "updated_at"
                ],
                "title": "WorkActivityResource"
            },
            "WorkAreaResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "unit_id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "color": {
                        "type": "string"
                    },
                    "sort_order": {
                        "type": "integer"
                    },
                    "is_active": {
                        "type": "boolean"
                    },
                    "created_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "id",
                    "unit_id",
                    "name",
                    "color",
                    "sort_order",
                    "is_active",
                    "created_at",
                    "updated_at"
                ],
                "title": "WorkAreaResource"
            },
            "WorkingTimePreviewResource": {
                "type": "object",
                "properties": {
                    "date": {
                        "type": "string"
                    },
                    "day": {
                        "type": "object",
                        "properties": {
                            "before": {
                                "type": "object",
                                "properties": {
                                    "net_work": {
                                        "type": "string"
                                    },
                                    "net_work_ms": {
                                        "type": "integer"
                                    },
                                    "target_work": {
                                        "type": "string"
                                    },
                                    "target_work_ms": {
                                        "type": "integer"
                                    },
                                    "balance": {
                                        "type": "string"
                                    },
                                    "balance_ms": {
                                        "type": "integer"
                                    }
                                },
                                "required": [
                                    "net_work",
                                    "net_work_ms",
                                    "target_work",
                                    "target_work_ms",
                                    "balance",
                                    "balance_ms"
                                ]
                            },
                            "after": {
                                "type": "object",
                                "properties": {
                                    "net_work": {
                                        "type": "string"
                                    },
                                    "net_work_ms": {
                                        "type": "integer"
                                    },
                                    "target_work": {
                                        "type": "string"
                                    },
                                    "target_work_ms": {
                                        "type": "integer"
                                    },
                                    "balance": {
                                        "type": "string"
                                    },
                                    "balance_ms": {
                                        "type": "integer"
                                    }
                                },
                                "required": [
                                    "net_work",
                                    "net_work_ms",
                                    "target_work",
                                    "target_work_ms",
                                    "balance",
                                    "balance_ms"
                                ]
                            },
                            "balance_delta": {
                                "type": "string"
                            },
                            "balance_delta_ms": {
                                "type": "integer"
                            }
                        },
                        "required": [
                            "before",
                            "after",
                            "balance_delta",
                            "balance_delta_ms"
                        ]
                    },
                    "month": {
                        "type": "object",
                        "properties": {
                            "year_month": {
                                "type": "string"
                            },
                            "before": {
                                "type": "object",
                                "properties": {
                                    "balance": {
                                        "type": "string"
                                    },
                                    "balance_ms": {
                                        "type": "integer"
                                    },
                                    "earned": {
                                        "type": "string"
                                    },
                                    "earned_ms": {
                                        "type": "integer"
                                    },
                                    "actual_work": {
                                        "type": "string"
                                    },
                                    "actual_work_ms": {
                                        "type": "integer"
                                    },
                                    "target_work": {
                                        "type": "string"
                                    },
                                    "target_work_ms": {
                                        "type": "integer"
                                    }
                                },
                                "required": [
                                    "balance",
                                    "balance_ms",
                                    "earned",
                                    "earned_ms",
                                    "actual_work",
                                    "actual_work_ms",
                                    "target_work",
                                    "target_work_ms"
                                ]
                            },
                            "after": {
                                "type": "object",
                                "properties": {
                                    "balance": {
                                        "type": "string"
                                    },
                                    "balance_ms": {
                                        "type": "integer"
                                    },
                                    "earned": {
                                        "type": "string"
                                    },
                                    "earned_ms": {
                                        "type": "integer"
                                    },
                                    "actual_work": {
                                        "type": "string"
                                    },
                                    "actual_work_ms": {
                                        "type": "integer"
                                    },
                                    "target_work": {
                                        "type": "string"
                                    },
                                    "target_work_ms": {
                                        "type": "integer"
                                    }
                                },
                                "required": [
                                    "balance",
                                    "balance_ms",
                                    "earned",
                                    "earned_ms",
                                    "actual_work",
                                    "actual_work_ms",
                                    "target_work",
                                    "target_work_ms"
                                ]
                            },
                            "balance_delta": {
                                "type": "string"
                            },
                            "balance_delta_ms": {
                                "type": "integer"
                            }
                        },
                        "required": [
                            "year_month",
                            "before",
                            "after",
                            "balance_delta",
                            "balance_delta_ms"
                        ]
                    }
                },
                "required": [
                    "date",
                    "day",
                    "month"
                ],
                "title": "WorkingTimePreviewResource"
            },
            "WorkingTimeSummaryResource": {
                "type": "object",
                "properties": {
                    "period": {
                        "type": "string"
                    },
                    "actual_work": {
                        "type": "string"
                    },
                    "actual_work_ms": {
                        "type": "string"
                    },
                    "target_work": {
                        "type": "string"
                    },
                    "target_work_ms": {
                        "type": "string"
                    },
                    "target_work_full_period": {
                        "type": "string"
                    },
                    "target_work_full_period_ms": {
                        "type": "string"
                    },
                    "period_overtime": {
                        "type": "string"
                    },
                    "period_overtime_ms": {
                        "type": "string"
                    },
                    "overtime_account": {
                        "type": "string"
                    },
                    "overtime_account_ms": {
                        "type": "string"
                    },
                    "vacation_days": {
                        "type": "string"
                    },
                    "illness_days": {
                        "type": "string"
                    },
                    "business_trip_days": {
                        "type": "string"
                    },
                    "holiday_days": {
                        "type": "string"
                    },
                    "working_days": {
                        "type": "string"
                    },
                    "completed_days": {
                        "type": "string"
                    }
                },
                "required": [
                    "period",
                    "actual_work",
                    "actual_work_ms",
                    "target_work",
                    "target_work_ms",
                    "target_work_full_period",
                    "target_work_full_period_ms",
                    "period_overtime",
                    "period_overtime_ms",
                    "overtime_account",
                    "overtime_account_ms",
                    "vacation_days",
                    "illness_days",
                    "business_trip_days",
                    "holiday_days",
                    "working_days",
                    "completed_days"
                ],
                "title": "WorkingTimeSummaryResource"
            }
        },
        "responses": {
            "ValidationException": {
                "description": "Validation error",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Errors overview."
                                },
                                "errors": {
                                    "type": "object",
                                    "description": "A detailed description of each field that failed validation.",
                                    "additionalProperties": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "required": [
                                "message",
                                "errors"
                            ]
                        }
                    }
                }
            },
            "ModelNotFoundException": {
                "description": "Not found",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Error overview."
                                }
                            },
                            "required": [
                                "message"
                            ]
                        }
                    }
                }
            },
            "AuthenticationException": {
                "description": "Unauthenticated",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Error overview."
                                }
                            },
                            "required": [
                                "message"
                            ]
                        }
                    }
                }
            },
            "AuthorizationException": {
                "description": "Authorization error",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Error overview."
                                }
                            },
                            "required": [
                                "message"
                            ]
                        }
                    }
                }
            }
        }
    }
}