{
  "openapi": "3.1.2",
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "info": {
    "title": "Telemonit — zewnętrzne API i odczyty publiczne",
    "version": "0.14.0",
    "summary": "Mapa pracy, prywatne historie i uzgodnione plany terenowe.",
    "description": "Specyfikacja odzwierciedla trasy i DTO Telemonit 0.12.0. Wersja dokumentu nie potwierdza wdrożenia domeny ani aktywacji kont operatorów.\n\n/api/v1 wymaga Authorization: Bearer tm_<64 małe znaki hex>. Klucz ma użytkownika, organizację, zakresy i datę ważności; nie jest OAuth ani JWT. Cookies, CSRF i X-Telemonit-Workspace nie są wymagane dla tokenowego API. Każde żądanie ponownie sprawdza ważność/cofnięcie, scope, bieżące członkostwo, role i dostęp do punktów. Scope nigdy nie rozszerza ACL. Znajomość publicznej projekcji nie daje prawa do prywatnego punktu, fotografii, rozmowy, haseł ani endpointu urządzenia. Formaty Bearer są rozróżniane: token użytkownika tm_, token czujnika tm_sensor_ i klucz kiosku mają odrębne zastosowania.\n\nHTTP Bearer w OpenAPI ma pustą tablicę security; wymagany rzeczywisty scope jest w x-required-scopes, a dostępne zakresy w components.securitySchemes.ApiKeyBearer.x-available-scopes. /api/v1 udostępnia odczyt modeli GLB, rejestrację/ustawienia infrastruktury oraz ograniczone operacje terenowe; nie udostępnia checkoutu, przelewów, sekretów, publikacji CMS ani zarządzania cudzymi kluczami. Bieżący klucz może cofnąć sam siebie przez opisaną trasę /api/v1/token/revoke.\n\nEndpointy sesyjne wymagają telemonit_session. Zwykłe zmiany API wymagają X-CSRF-Token i X-Telemonit-Workspace; formularz /connect/authorize ma własny kontrakt _csrf/header oraz expected_workspace, opisany przy trasie. Inny wyjątek: POST /api/operations/shares/open używa również anonimowej sesji z CSRF, bez nagłówka organizacji; odbiorca projekcji prywatnej musi być zalogowany. Publiczne katalogi, klucz telemetryczny, klucz kiosku oraz podpisane webhooki mają własne security opisane przy trasie.\n\nSukces JSON ma {data: ...}; błąd {error: {code, message, details}}. Wyjątki: NDJSON, ICS, SVG, JPEG, GLB, ZIP i surowe JSON-RPC MCP. Standardowy JSON UTF-8 ma limit 1 MiB i głębokość 32; edge snapshot ma osobny limit. Używaj HTTPS. Nie ma wildcard CORS ani globalnego Idempotency-Key. Daty odpowiedzi są UTC. Wygaśnięcie blokuje kolejne odczyty; nie usuwa kopii już pobranej przez odbiorcę.\n\nIdempotencja dotyczy tylko operacji z opisanym request_id/event_key: identyczna treść zwraca istniejący zapis, zmieniona treść daje 409. Tworzenie punktu, kontraktu, harmonogramu i udostępnienia nie ma automatycznej ochrony przed ponowieniem po utracie odpowiedzi. Dynamiczny meldunek QR odrzuca replay zamiast ponownie zwracać sukces.\n\n0.5: zakresy incidents:read/write, tracking:read i parking:read nie dodają praw do cudzych danych. Udostępnienie pozycji osoby, akceptacja prośby, hasło zdjęcia i checkout pozostają operacjami sesyjnymi, nie poleceniami dowolnego agenta. ANPR jest obserwacją, nie zgodą bankową; token tm_park_ nie może czytać rachunków ani płacić. tm_track_ zapisuje pozycję jednej własnej rzeczy, a nie człowieka po numerze telefonu. Prywatne podglądy nie ujawniają danych. Pełny kontrakt płatności i granice adapterów: docs/PARKING-V5.md oraz MARKETPLACE-V5.md.\n\n0.6: wydarzenia oddzielają czas wydarzenia, publikację źródła, import i widoczność. Import JSON/RSS/Atom/ICS tworzy prywatne propozycje, bez pobierania dowolnych URL. events:read/write nie omijają aktualnego ACL i nie dają endpointu publikacji. Link udostępnienia jest wydawany raz, a jawna rotacja nie resetuje limitu otwarć ani terminu. docs/EVENTS-V6.md, OPERATIONS-V6.md i DIGITAL-TWIN-V6.md.\n\n0.7: import punktów /api/import/points wymaga sesji, podglądu, jawnego wyboru organizacji/wierszy i potwierdzenia. Wspiera rozpoznany wariant gps_backup gzip/binary3 oraz CSV, GeoJSON i punkty GPX. Limit planu i aktualny ACL są sprawdzane ponownie przy zapisie. Scope org nie publikuje danych. Wynik można bezpiecznie ponowić w okresie ważności potwierdzenia; szczegóły w docs/GPS-IMPORT-V7.md. Ustawienia marki i profilu nawigacji dotyczą instalacji, nie zmieniają ACL.\n\n0.9: Cienkie klienty używają własnej delegacji first-party z kodem jednorazowym i PKCE S256 oraz serwerowego BFF. GET/POST /connect/authorize to HTML i przekierowania, nie JSON ani pełny OAuth/OIDC. Formularz zgody używa sesji, _csrf lub X-CSRF-Token i expected_workspace; nie wymaga X-Telemonit-Workspace. POST /api/clients/token wymienia cztery pola JSON na token przypisany do klienta, użytkownika i wybranej organizacji, ważny najwyżej osiem godzin; brak refresh tokenu i ID Token. /api/v1/me zwraca minimalny bieżący kontekst, /api/v1/token/revoke cofa tylko bieżący klucz. GET /api/v1/points/{id} i /api/v1/incidents/{id} mają natywny ACL i nie udostępniają publicznie prywatnych danych lub plików. Tokenowe zlecenia i eksport zachowują organizację klucza także wtedy, gdy użytkownik należy do wielu organizacji. Zakres profilu domenowego i uprawnienia użytkownika są niezależnymi ograniczeniami. Szczegóły: docs/DOMAIN-STRATEGY-V9.md.\n\n0.10: /api/saas ma publiczny katalog/runtime oraz tenant-bound rekordy jawnie opublikowane. Operacje własnych portali wymagają sesji właściciela; operator osobno zatwierdza uzgodnioną płatność i gotowość DNS/TLS. Zakup manual_review nie jest automatycznym checkoutem; kod 100% ma jeden scope, jedno użycie i skończony okres. Czynności zapisu wymagają CSRF oraz X-Telemonit-Workspace. Żaden plan lub szablon nie rozszerza record ACL.\n\nIDENTITY_PUBLIC_URL włącza osobny host centralnego konta z własnym host-only cookie, przestrzenią sesji, natywnymi formularzami i dokładnym Origin. Core odrzuca wtedy /api/auth/login i /api/auth/register kodem 403 identity_credentials_host przed przyjęciem danych logowania; pozostawia tylko rozpoczęcie mostu na /login lub /register. Most ma stały callback, PKCE S256, stan w sesji core i jednorazowy kod 60 s, oddzielny od tmc_ delegacji BFF. Identity host nie udostępnia całego core API, SW ani aplikacji. Brak wspólnego cookie .telemonit.pl, ID Token, refresh tokenu i pełnego OAuth/OIDC. Sam logout core nie usuwa centralnego cookie; klient przechodzi na bezpieczny central_logout_url z jawnym przyciskiem zakończenia sesji. Publiczny manifest i llms.txt są opisowe, bez gwarancji indeksacji AI.\n\n0.11: Opracowania incydentów mają wersje, niezmienne migawki, prywatne pliki i potwierdzenie konta, bez deklaracji przyczyn lub kwalifikowanego podpisu. RSS/Atom/JSON/ICS daje prywatną propozycję z proweniencją; OQLLM jest oddzielną kolejką po zgodzie, a publikacja wymaga osobnej decyzji. community:read/write i journeys:read/write udostępniają dokładnie opisany podzbiór API. Udostępnianie GPS, wzajemne potwierdzenie spotkania i publikacja pozostają sesyjne. Przejazdy w linii prostej nie są nawigacją ani ETA. Partner CMS ma szkic, rewizje i zatwierdzoną projekcję; deklaracja polityki nie jest certyfikacją prawa. HEAD jest opisany wyłącznie tam, gdzie faktycznie obsługuje go dispatcher. /p/{slug} działa na odrębnym hoście BFF, nie na core. Dokumentacja adaptera i katalog statusów nie oznaczają aktywnego konta, poniesienia opłaty ani udanego połączenia z zewnętrznym dostawcą.\n\n0.12: Jeden lokalny profil eksportu: niezmienne wejście, dry-run plan, zgoda na dokładny hash i rewizję, oddzielne admission/wykonanie CLI, readback, zdarzenia i receipt. HTTP nie udostępnia admit, execute ani uniwersalnego wellm/LLM run. Do czasu konfiguracji dwóch odrębnych usług wykonanie jest wyłączone. Zakres ten nie jest certyfikacją pełnego POA-X ani queue-v2; nie włącza płatności, zewnętrznych dostawców lub zdalnych poleceń.\n\n0.13: Wspólna historia mapy: wersje punktów, raporty czujników i osobno włączane archiwa pozycji. Bez interpolacji, bez automatycznego backfill i bez publicznego śledzenia osób. Pobrania JSON/GeoJSON podlegają aktualnemu ACL i zakresom API. Dostawcy pogody, automatyczny import Traccar i eksport całej złożonej mapy do filmu pozostają poza tym wydaniem.\n\n0.14: Prywatne plany prac, rewizje techniczne, osobiste uzgodnienia stron, zależne wizyty i ręczne figury mapy. Warunki pogody i dojazdu pobierane za zgodą przez skonfigurowanych dostawców. Alerty w obszarze wymagają potwierdzenia; SMS wymaga osobnej zgody odbiorcy i operatora. Brak automatycznego optymalizatora harmonogramu, publicznego śledzenia, zmiany sieci drogowej, automatycznej interwencji ani gwarantowanego doręczenia alarmu.",
    "contact": {
      "name": "Administrator tej instalacji Telemonit"
    }
  },
  "servers": [
    {
      "url": "/",
      "description": "Bieżąca instalacja. W narzędziach klienckich ustaw własny HTTPS origin, np. https://telemonit.pl; ten dokument nie potwierdza wdrożenia domeny."
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "Punkty",
      "description": "Punkty mapy i zgłaszanie usterek w granicach przestrzeni oraz ACL."
    },
    {
      "name": "Zlecenia",
      "description": "Odczyt udziału w marketplace i tworzenie szkicu, bez transakcji pieniężnych."
    },
    {
      "name": "Eksport",
      "description": "Strumieniowy eksport własnych, dostępnych danych."
    },
    {
      "name": "Publiczne",
      "description": "Jawnie opublikowane projekcje i publiczna konfiguracja."
    },
    {
      "name": "MCP",
      "description": "Publiczne narzędzia tylko do odczytu, z własnym opakowaniem JSON-RPC."
    },
    {
      "name": "Operacyjne",
      "description": "Minimalna kontrola działania procesu."
    },
    {
      "name": "Infrastruktura",
      "description": "Katalog, stan i telemetryczne odczyty urządzeń."
    },
    {
      "name": "Praca terenowa",
      "description": "Meldunki, harmonogramy, czas i kontrakty."
    },
    {
      "name": "Udostępnienia",
      "description": "Projekcje Public/Org/Team/User z terminem i limitem wyświetleń."
    },
    {
      "name": "Integracje",
      "description": "Podpisane klatki edge i zatwierdzone artefakty GLB."
    },
    {
      "name": "Zgłoszenia publiczne",
      "description": "Prywatne zgłoszenia do uzgodnionych odbiorców, z potwierdzeniem człowieka."
    },
    {
      "name": "Klienci domenowi",
      "description": "Własne połączenie first-party z PKCE i serwerowym BFF. Nie jest pełnym serwerem OAuth/OIDC."
    },
    {
      "name": "SaaS — publiczne"
    },
    {
      "name": "SaaS — właściciel"
    },
    {
      "name": "SaaS — operator"
    },
    {
      "name": "Centralne konto"
    },
    {
      "name": "Odkrywanie usług"
    },
    {
      "name": "Opracowanie incydentu"
    },
    {
      "name": "Rozmowy i spotkania"
    },
    {
      "name": "Przejazdy i przebieg"
    },
    {
      "name": "Źródła mapy"
    },
    {
      "name": "Strony partnera"
    },
    {
      "name": "Procesy POA"
    },
    {
      "name": "Historia mapy"
    },
    {
      "name": "Planowanie prac"
    }
  ],
  "paths": {
    "/api/v1/points": {
      "get": {
        "tags": [
          "Punkty"
        ],
        "summary": "Lista dostępnych punktów",
        "description": "Wymaga points:read. Klucz jest związany z użytkownikiem i przestrzenią. Aktualne ograniczenie gościa do wybranych punktów jest sprawdzane przy każdym żądaniu. Domyślnie tylko aktywne punkty, sortowanie po nazwie bez uwzględniania wielkości liter, maksymalnie 5000 pozycji. Brak paginacji; do pełnego eksportu służy /api/v1/export.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "points:read"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        },
        "responses": {
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "200": {
            "description": "Tablica punktów w opakowaniu data.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Point"
                      },
                      "maxItems": 5000
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          }
        },
        "operationId": "listPoints",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Fragment nazwy lub numeru. %, _ i backslash są traktowane dosłownie.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Dokładna własna etykieta typu punktu.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "description": "0 lub brak: aktywne; 1: tylko zarchiwizowane; all: oba stany.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1",
                "all"
              ],
              "default": "0"
            }
          },
          {
            "name": "issue_status",
            "in": "query",
            "required": false,
            "description": "new/in_progress/resolved: istnieje zgłoszenie z tym statusem; none: brak otwartych zgłoszeń, również gdy są już rozwiązane.",
            "schema": {
              "type": "string",
              "enum": [
                "new",
                "in_progress",
                "resolved",
                "none"
              ]
            }
          }
        ]
      },
      "post": {
        "tags": [
          "Punkty"
        ],
        "summary": "Utwórz punkt",
        "description": "Wymaga points:write oraz bieżącego uprawnienia edit_objects. Scope sam nie daje prawa edycji; goście ograniczeni do punktów nie mogą tworzyć nowych punktów. Obowiązuje limit aktywnych punktów planu (Free: 3). Unikalny numer obejmuje także archiwum. Ta operacja nie ma gwarancji idempotencji: po utracie odpowiedzi sprawdź listę po własnym numerze przed ponowieniem.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "points:write"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        },
        "responses": {
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "201": {
            "description": "Utworzony punkt; open_issues nie jest dodawane do tej odpowiedzi.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Point"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          }
        },
        "operationId": "createPoint",
        "requestBody": {
          "required": true,
          "description": "Obiekt JSON UTF-8; maksymalnie 1 MiB, głębokość JSON do 32.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PointCreate"
              },
              "examples": {
                "camera": {
                  "value": {
                    "number": "CAM-001",
                    "name": "Kamera przy bramie",
                    "type": "camera",
                    "icon": "camera",
                    "lat": 52.2297,
                    "lng": 21.0122,
                    "parameters": {
                      "zasilanie": "PoE"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/points/{point_id}/issues": {
      "post": {
        "tags": [
          "Punkty"
        ],
        "summary": "Zgłoś usterkę punktu",
        "description": "Wymaga issues:write, dostępu do konkretnego punktu i bieżącego can_report przy tym punkcie. Tylko aktywne punkty. request_id jest unikalny w obrębie przestrzeni i autora zgłoszenia. Ponowienie tej samej treści dla tego samego punktu zwraca ten sam rekord (również HTTP 201); inny punkt lub treść z tym samym request_id daje 409. Opis jest opcjonalny. Nie ma tokenowej operacji zmiany statusu usterki.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "issues:write"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        },
        "responses": {
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "201": {
            "description": "Utworzone albo wcześniej zapisane zgłoszenie.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Issue"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          }
        },
        "operationId": "reportPointIssue",
        "parameters": [
          {
            "name": "point_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator punktu dostępnego użytkownikowi klucza."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Obiekt JSON UTF-8; maksymalnie 1 MiB, głębokość JSON do 32.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssueCreate"
              },
              "examples": {
                "without_description": {
                  "value": {
                    "request_id": "d8fd5a25-0fb4-4d33-aeb4-0d334e1272a1"
                  }
                },
                "described": {
                  "value": {
                    "request_id": "765a4350-1ba7-4c4a-a64a-103cffdd219a",
                    "description": "Brak obrazu z kamery."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/jobs": {
      "get": {
        "tags": [
          "Zlecenia"
        ],
        "summary": "Lista zleceń użytkownika",
        "description": "Wymaga jobs:read. Zwraca maksymalnie 200 zleceń w wybranej kolejności, w których użytkownik klucza jest zamawiającym, wybranym wykonawcą lub autorem oferty. Udział w marketplace jest globalny dla użytkownika: lista może obejmować jego zlecenia z innych przestrzeni, mimo że klucz ma przypisaną jedną przestrzeń. Bieżące członkostwo w przestrzeni klucza jest nadal wymagane. Najpierw serwer może zamknąć do 30 aukcji po terminie; nie zamyka aukcji przed czasem. Obsługuje sort i max_estimated_minutes. Filtr czasu i sortowanie są wykonywane przed limitem 200; brak paginacji.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "jobs:read"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        },
        "responses": {
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "200": {
            "description": "Lista własnych zleceń z projekcją ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "jobs": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Job"
                          },
                          "maxItems": 200
                        }
                      },
                      "required": [
                        "jobs"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          }
        },
        "operationId": "listOwnJobs",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "newest",
                "estimated_minutes",
                "estimated_minutes_desc"
              ],
              "default": "newest"
            },
            "description": "Data od najnowszej albo szacowany czas wykonania rosnąco/malejąco. Nieoszacowane zawsze na końcu obu sortowań czasu; remisy: created_at malejąco, następnie id. Nie zmienia wyboru zwycięzcy aukcji."
          },
          {
            "name": "max_estimated_minutes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1440
            },
            "description": "Maksymalny deklarowany czas wykonania. Filtr pomija nieoszacowane zlecenia. Brak/pusta wartość nie ogranicza czasu."
          }
        ]
      },
      "post": {
        "tags": [
          "Zlecenia"
        ],
        "summary": "Utwórz szkic zlecenia",
        "description": "Wymaga jobs:write oraz bieżącego członkostwa w przestrzeni klucza. Tworzy draft bez uruchamiania aukcji i bez obciążenia. Powiązanie z point_id wymaga dodatkowo manage_orders przy aktywnym punkcie. W innym przypadku wymagane są lat i lng. request_id jest unikalny dla zamawiającego; ponowienie zgodnej, znormalizowanej treści i tej samej przestrzeni zwraca ten sam szkic lub jego późniejszy stan, z HTTP 201. Inna treść z tym samym request_id daje 409. Prośba o publikację wymaga osobnego public_summary. Dalsze działania odbywają się w aplikacji webowej, nie przez /api/v1. Szacowany czas estimated_minutes jest opcjonalnym ręcznym polem i należy do treści chronionej przez request_id; zmiana czasu przy tym samym request_id daje 409.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "jobs:write"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        },
        "responses": {
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "201": {
            "description": "Szczegóły utworzonego szkicu albo tego samego zlecenia po ponowieniu.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/JobDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "createJobDraft",
        "requestBody": {
          "required": true,
          "description": "Obiekt JSON UTF-8; maksymalnie 1 MiB, głębokość JSON do 32.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobCreate"
              },
              "examples": {
                "private_request": {
                  "value": {
                    "request_id": "d8fd5a25-0fb4-4d33-aeb4-0d334e1272a1",
                    "description": "Potrzebuję naprawy kamery przy bramie.",
                    "category": "cctv",
                    "selection": "lowest_price",
                    "lat": 52.2297,
                    "lng": 21.0122,
                    "published": false,
                    "public_location": false,
                    "estimated_minutes": 45
                  }
                },
                "linked_point": {
                  "value": {
                    "request_id": "765a4350-1ba7-4c4a-a64a-103cffdd219a",
                    "description": "Sprawdź zasilanie kamery przy tym punkcie.",
                    "point_id": "f94ef786-d9c1-4811-85ac-30d9f8eb05a3",
                    "category": "cctv"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/export": {
      "get": {
        "tags": [
          "Eksport"
        ],
        "summary": "Eksport danych widocznych użytkownikowi",
        "description": "Wymaga export:read. Strumień NDJSON, bez opakowania data i bez paginacji. Obejmuje wszystkie dostępne użytkownikowi punkty przypisanej przestrzeni, także archiwalne, oraz ich notatki, usterki, obserwacje, wiadomości i zlecenia terenowe według bieżącego ACL. Zawiera również widoczne wiadomości kierowane i własne zlecenia/oferty marketplace, w tym udział poza aktywną przestrzenią; czat marketplace tylko dla zamawiającego i zwycięzcy. Hasła, tokeny, sekrety i cała baza operatora nie są eksportowane. URL mediów wymaga osobnego uwierzytelnienia sesją aplikacji: klucz /api/v1 nie daje dostępu do tras pobierania plików. Odbiorca musi sprawdzić końcowy rekord end z complete=true; przerwany strumień nie jest kompletnym eksportem. Wersja4 rozszerza strumień o moduły infrastruktury, pracy terenowej i integracji według bieżących ACL/TTL. Token export:read nie upoważnia do sesyjnego ZIP; sam model GLB ma oddzielną trasę z licznikiem odtworzeń.\n\nV0.11: community_thread/message/meeting wymaga dodatkowo community:read dla tokenu; journey/mileage wymaga journeys:read; incident_replay_document/source/snapshot i rekordy incydentów/historii/widoków wymagają incidents:read; calendar_event/event_history/event_interests wymagają events:read; tracking wymaga tracking:read. Scope export:read sam nie wystarcza. Nowe moduły ponownie sprawdzają ACL, bieżący scope, cofnięcie klucza/delegacji i retencję w trakcie strumienia. map_source_* i partner_page/policy/revisions są dostępne tylko w eksporcie sesji aktualnego właściciela, pomijane dla każdego klucza API. Rozmowy nie eksportują GPS osób. Replay ma najwyżej 5000 incydentów na partię z jawnym rekordem incident_replay_export_limit; pozostałe można pobrać indywidualnie. Zapis end.complete=true potwierdza koniec strumienia, a nie znosi takiego jawnego limitu. Specyficzne pliki źródeł/eksportów replay można pobierać z Bearer incidents:read; inne /api/media nadal mają własne wymagania sesji.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "export:read"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        },
        "responses": {
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "200": {
            "description": "Plik telemonit-export.ndjson, UTF-8, po jednym obiekcie ExportRecord w każdej linii.",
            "headers": {
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "example": "attachment; filename=\"telemonit-export.ndjson\""
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "example": "no-store"
              }
            },
            "content": {
              "application/x-ndjson": {
                "schema": {
                  "type": "string",
                  "description": "Strumień tekstu NDJSON, nie tablica JSON."
                },
                "x-ndjson-item-schema": {
                  "$ref": "#/components/schemas/ExportRecord"
                }
              }
            }
          }
        },
        "operationId": "exportOwnData"
      }
    },
    "/api/public/config": {
      "get": {
        "tags": [
          "Publiczne"
        ],
        "summary": "Publiczna konfiguracja portalu",
        "description": "Jawne ustawienia marki, nowej aukcji i aktualnej gotowości integracji. Bez danych kont użytkowników i sekretów. Ta trasa nie korzysta z limitera public-read.",
        "security": [],
        "responses": {
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "200": {
            "description": "Aktualne ustawienia publiczne.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PublicConfig"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "operationId": "getPublicConfig"
      }
    },
    "/api/public/providers": {
      "get": {
        "tags": [
          "Publiczne"
        ],
        "summary": "Publiczny katalog dostępnych wykonawców",
        "description": "Wyłącznie jawnie opublikowane profile z niewygasłą deklaracją dostępności. Maksymalnie 100 pozycji; brak paginacji. Baza kandydatów jest ograniczona do 500 profili przed filtrowaniem, więc wynik nie gwarantuje kompletności. Bez origin sortowanie po nazwie; z origin po zaokrąglonej odległości, a następnie user_id. Lokalizacja i filtrowanie geograficzne korzystają tylko z przybliżonych współrzędnych za wyraźną zgodą wykonawcy. Przy origin profile bez tej zgody są pomijane. Po wyłączeniu katalogu lub marketplace odpowiedź jest pustą listą.",
        "security": [],
        "responses": {
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "200": {
            "description": "Bezpieczna publiczna projekcja profili.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "providers": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/PublicProvider"
                          },
                          "maxItems": 100
                        }
                      },
                      "required": [
                        "providers"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          }
        },
        "x-rate-limit": {
          "requests": 180,
          "window_seconds": 60,
          "bucket": "shared public-read + client IP"
        },
        "operationId": "listPublicProviders",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Opcjonalna kategoria.",
            "schema": {
              "$ref": "#/components/schemas/Category"
            }
          },
          {
            "name": "service",
            "in": "query",
            "required": false,
            "description": "Alias category; gdy category jest podane, ma pierwszeństwo.",
            "schema": {
              "$ref": "#/components/schemas/Category"
            }
          },
          {
            "name": "lat",
            "in": "query",
            "required": false,
            "description": "Szerokość punktu wyszukiwania. Podaj razem z lng; pojedyncza współrzędna jest ignorowana.",
            "schema": {
              "$ref": "#/components/schemas/Latitude"
            }
          },
          {
            "name": "lng",
            "in": "query",
            "required": false,
            "description": "Długość punktu wyszukiwania. Podaj razem z lat.",
            "schema": {
              "$ref": "#/components/schemas/Longitude"
            }
          },
          {
            "name": "radius_km",
            "in": "query",
            "required": false,
            "description": "Promień w km, nie większy niż dynamiczne maksimum administratora (do 100). Domyślnie ustawienie portalu, zwykle 10. Filtrowanie działa po podaniu obu współrzędnych.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "radius",
            "in": "query",
            "required": false,
            "description": "Alias radius_km; radius_km ma pierwszeństwo.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ]
      }
    },
    "/api/public/jobs": {
      "get": {
        "tags": [
          "Publiczne"
        ],
        "summary": "Publiczne ogłoszenia trwających aukcji",
        "description": "Wyłącznie published=true, niepusty osobny public_summary i trwająca aukcja. Zwraca maksymalnie 100 kandydatów w wybranej kolejności, po filtrze czasu i przed filtrowaniem kategorii oraz lokalizacji; brak paginacji i gwarancji kompletności. Filtr geograficzny wymaga lat i lng oraz zgody public_location przy ogłoszeniu; używa zaokrąglonego GPS. description jest aliasem public_summary. estimated_minutes to ręczny szacunek zamawiającego albo null. Sortowanie czasu zawsze umieszcza nieoszacowane na końcu. Brak ofert, danych finansowych, stron transakcji i prywatnej rozmowy. Po wyłączeniu katalogu lub marketplace odpowiedź jest pustą listą.",
        "security": [],
        "responses": {
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "200": {
            "description": "Publiczne podsumowania aukcji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "jobs": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/PublicJob"
                          },
                          "maxItems": 100
                        }
                      },
                      "required": [
                        "jobs"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          }
        },
        "x-rate-limit": {
          "requests": 180,
          "window_seconds": 60,
          "bucket": "shared public-read + client IP"
        },
        "operationId": "listPublicJobs",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Opcjonalna kategoria.",
            "schema": {
              "$ref": "#/components/schemas/Category"
            }
          },
          {
            "name": "service",
            "in": "query",
            "required": false,
            "description": "Alias category; gdy category jest podane, ma pierwszeństwo.",
            "schema": {
              "$ref": "#/components/schemas/Category"
            }
          },
          {
            "name": "lat",
            "in": "query",
            "required": false,
            "description": "Szerokość punktu wyszukiwania. Podaj razem z lng; pojedyncza współrzędna jest ignorowana.",
            "schema": {
              "$ref": "#/components/schemas/Latitude"
            }
          },
          {
            "name": "lng",
            "in": "query",
            "required": false,
            "description": "Długość punktu wyszukiwania. Podaj razem z lat.",
            "schema": {
              "$ref": "#/components/schemas/Longitude"
            }
          },
          {
            "name": "radius_km",
            "in": "query",
            "required": false,
            "description": "Promień w km, nie większy niż dynamiczne maksimum administratora (do 100). Domyślnie ustawienie portalu, zwykle 10. Filtrowanie działa po podaniu obu współrzędnych.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "radius",
            "in": "query",
            "required": false,
            "description": "Alias radius_km; radius_km ma pierwszeństwo.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "newest",
                "estimated_minutes",
                "estimated_minutes_desc"
              ],
              "default": "newest"
            },
            "description": "Data od najnowszej albo szacowany czas wykonania rosnąco/malejąco. Nieoszacowane zawsze na końcu obu sortowań czasu; remisy: created_at malejąco, następnie id. Nie zmienia wyboru zwycięzcy aukcji."
          },
          {
            "name": "max_estimated_minutes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1440
            },
            "description": "Maksymalny deklarowany czas wykonania. Filtr pomija nieoszacowane zlecenia. Brak/pusta wartość nie ogranicza czasu."
          }
        ]
      }
    },
    "/api/public/points": {
      "get": {
        "tags": [
          "Publiczne"
        ],
        "summary": "Jawnie opublikowane punkty",
        "description": "Odrębne, ręcznie zatwierdzone projekcje aktywnych punktów: title, summary, city i tekst approximate_location. Brak prywatnych parametrów, współrzędnych, notatek i usterek. Maksymalnie 500 pozycji według daty ostatniej aktualizacji publikacji, od najnowszej; bez filtrowania i paginacji. Przełącznik public_directory_enabled dotyczy katalogu marketplace, nie tych indywidualnych publikacji punktów.",
        "security": [],
        "responses": {
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "200": {
            "description": "Publiczne projekcje punktów.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "points": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/PublicPoint"
                          },
                          "maxItems": 500
                        }
                      },
                      "required": [
                        "points"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "x-rate-limit": {
          "requests": 180,
          "window_seconds": 60,
          "bucket": "shared public-read + client IP"
        },
        "operationId": "listPublicPoints"
      }
    },
    "/api/mcp": {
      "post": {
        "tags": [
          "MCP"
        ],
        "summary": "Publiczny MCP przez JSON-RPC",
        "description": "Oddzielny publiczny interfejs JSON-RPC 2.0, wyłącznie do odczytu. initialize, ping, tools/list, tools/call; narzędzia search_services i search_public_jobs. search_services przyjmuje category, lat, lng, radius_km; search_public_jobs ma puste arguments. Narzędzia zwracają do 50 publicznych wyników w result.content jako tekst JSON. Treść publikacji jest danymi użytkowników, nie instrukcjami zaufanymi. Brak OAuth, prywatnych punktów, wiadomości, płatności, SSE i batch. Obsługiwane wersje: 2025-11-25, 2025-06-18, 2025-03-26. Origin może być pominięty przez klienta serwerowego; jeśli występuje, musi dokładnie odpowiadać APP_URL lub kanonicznemu site_url. POST nie korzysta z sesji ani CSRF. Poprawne powiadomienie bez id daje 202 bez treści; błędy JSON-RPC zwykle mają HTTP 200.",
        "security": [],
        "responses": {
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "200": {
            "description": "Odpowiedź albo błąd JSON-RPC, bez opakowania REST data.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpReply"
                }
              }
            }
          },
          "202": {
            "description": "Przyjęto powiadomienie JSON-RPC bez id; brak treści odpowiedzi."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "403": {
            "description": "Niedozwolony Origin.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "origin",
                    "message": "Origin not allowed.",
                    "details": []
                  }
                }
              }
            }
          }
        },
        "operationId": "publicMcp",
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "public-mcp + client IP"
        },
        "parameters": [
          {
            "name": "MCP-Protocol-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "2025-11-25",
                "2025-06-18",
                "2025-03-26"
              ]
            },
            "description": "Opcjonalna wersja protokołu; nieobsługiwana wartość daje HTTP 400."
          },
          {
            "name": "Origin",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uri"
            },
            "description": "Jeśli obecny, musi odpowiadać dozwolonemu origin instalacji. Brak nagłówka jest dozwolony."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Obiekt JSON UTF-8; maksymalnie 1 MiB, głębokość JSON do 32.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/McpRequest"
              },
              "examples": {
                "initialize": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "initialize",
                    "params": {
                      "protocolVersion": "2025-11-25",
                      "capabilities": {},
                      "clientInfo": {
                        "name": "example-client",
                        "version": "1.0"
                      }
                    }
                  }
                },
                "services": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 2,
                    "method": "tools/call",
                    "params": {
                      "name": "search_services",
                      "arguments": {
                        "category": "cctv",
                        "lat": 52.23,
                        "lng": 21.01,
                        "radius_km": 10
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "tags": [
          "Operacyjne"
        ],
        "summary": "Odczyt gotowości procesu i bazy",
        "description": "Sprawdza możliwość odczytu schema_migrations. Nie weryfikuje operatorów płatności, SMTP, AI, kompletności migracji ani gotowości biznesowej instalacji.\n\nV0.10 identity: na osobnym IDENTITY_PUBLIC_URL odpowiedź ma service=telemonit-identity i potwierdza tylko obsługę skonfigurowanego hosta. Ten wariant nie odczytuje bazy i nie potwierdza logowania end-to-end. HEAD na identity zwraca 200 bez treści; core nie deklaruje takiej sondy HEAD.",
        "security": [],
        "responses": {
          "200": {
            "description": "Proces odpowiada, baza zawiera tabelę migracji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Health"
                        },
                        {
                          "$ref": "#/components/schemas/IdentityHealthV10"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "500": {
            "description": "Niepowodzenie kontroli; /health nie leży pod /api i aktualny router zwraca przy błędzie HTML.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "operationId": "getHealth"
      }
    },
    "/api/v1/infrastructure": {
      "get": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Wyszukaj infrastrukturę",
        "description": "Wymaga infrastructure:read. all łączy własne uprawnione urządzenia z publicznym katalogiem; private wymaga ACL. Wyniki po odległości przy lat/lng, inaczej po tytule. Offset dotyczy przefiltrowanej listy. Więcej niż 10000 kandydatów wymaga zawężenia obszaru/typu (422 catalog_area). Lokalizacja publicznej kamery nie daje dostępu do obrazu.",
        "operationId": "get_api_v1_infrastructure",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InfrastructureSearch"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "description": "Fragment tytułu, opisu lub jawnej referencji źródła; dopasowanie bez wielkości liter."
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "",
                "camera",
                "mesh",
                "parking_meter",
                "speed_camera",
                "speed_sensor",
                "bts",
                "pump",
                "water_meter",
                "energy_meter",
                "sensor",
                "playground",
                "light",
                "router",
                "server",
                "hub",
                "antenna",
                "other"
              ],
              "maxLength": 40
            },
            "description": "Starszy filtr jednego typu, np. camera. Pusty lub pominięty oznacza wszystkie typy. Nie łącz niepustego kind z niepustym kinds: 422 kind_conflict. Tablice są odrzucane."
          },
          {
            "name": "kinds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 237,
              "pattern": "^(?:(?:camera|mesh|parking_meter|speed_camera|speed_sensor|bts|pump|water_meter|energy_meter|sensor|playground|light|router|server|hub|antenna|other)(?:,(?:camera|mesh|parking_meter|speed_camera|speed_sensor|bts|pump|water_meter|energy_meter|sensor|playground|light|router|server|hub|antenna|other)){0,16})?$",
              "not": {
                "pattern": "\\s"
              }
            },
            "description": "Lista rozdzielona przecinkami, np. camera,sensor, najwyżej 17 wpisów przed deduplikacją. Typy łączy OR, pozostałe filtry i aktualne uprawnienia łączy AND przed wyliczeniem total i paginacją. Powtórzenia nie powielają wyników. Pusty lub pominięty filtr oznacza wszystkie typy. Niepusty kind z kinds, tablice, nieznane typy, spacje, puste elementy i końcowy przecinek zwracają 422.",
            "example": "camera,sensor"
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "private",
                "public"
              ],
              "default": "all"
            }
          },
          {
            "name": "lat",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Latitude"
            },
            "description": "Wymaga także lng; używane jednorazowo do wyszukiwania w promieniu."
          },
          {
            "name": "lng",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Longitude"
            }
          },
          {
            "name": "radius_km",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 100,
              "maximum": 200
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "maximum": 10000
            }
          }
        ],
        "x-required-scopes": [
          "infrastructure:read"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        }
      },
      "post": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Zarejestruj urządzenie istniejącego punktu",
        "description": "Wymaga infrastructure:write oraz manage_orders i aktywnego punktu. Wpis pozostaje prywatny. Powtórzenie dla tego samego punktu zwraca istniejący wpis (również HTTP 201).",
        "operationId": "post_api_v1_infrastructure",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InfrastructureAsset"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": [
          "infrastructure:write"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InfrastructureRegister"
              }
            }
          }
        }
      }
    },
    "/api/v1/infrastructure/{asset_id}": {
      "get": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Odczytaj urządzenie",
        "description": "Wymaga infrastructure:read. Uprawniony użytkownik dostaje projekcję prywatną; pozostali jedynie jawnie opublikowaną projekcję. Brak prywatnego dostępu nie jest obchodzony przez publiczną publikację.",
        "operationId": "get_api_v1_infrastructure_asset_id",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InfrastructureAsset"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ],
        "x-required-scopes": [
          "infrastructure:read"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        }
      },
      "patch": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Zmień publikację lub monitoring",
        "description": "Wymaga infrastructure:write oraz manage_orders przy źródłowym punkcie; wpis katalogowy bez punktu wymaga administratora platformy i owner. version chroni przed nadpisaniem; konflikt daje 409. Jawne potwierdzenie jest wymagane dla każdego zapisu z published=true.",
        "operationId": "patch_api_v1_infrastructure_asset_id",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InfrastructureAsset"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ],
        "x-required-scopes": [
          "infrastructure:write"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InfrastructureUpdate"
              }
            }
          }
        }
      }
    },
    "/api/v1/infrastructure/{asset_id}/readings": {
      "get": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Odczytaj historię urządzenia",
        "description": "Wymaga infrastructure:read i prywatnego ACL punktu. Najwyżej 200 pomiarów, observed_at malejąco, bez paginacji. Publikacja ogólnego stanu nie upublicznia wartości liczbowych. Pełny dostępny eksport używa /api/v1/export.",
        "operationId": "get_api_v1_infrastructure_asset_id_readings",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/InfrastructureReading"
                      },
                      "maxItems": 200
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ],
        "x-required-scopes": [
          "infrastructure:read"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        }
      },
      "post": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Zapisz odczyt lub stan",
        "description": "Wymaga infrastructure:write, can_observe przy aktywnym punkcie i włączonego monitoringu. Starsze zaakceptowane obserwacje zostają w historii, ale nie cofają bieżącego stanu. Idempotencja request_id na urządzenie; zmiana treści pod tym samym ID daje 409.",
        "operationId": "post_api_v1_infrastructure_asset_id_readings",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InfrastructureReadingResult"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ],
        "x-required-scopes": [
          "infrastructure:write"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InfrastructureReadingInput"
              }
            }
          }
        }
      }
    },
    "/api/v1/operations/dashboard": {
      "get": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Pobierz własne zadania terenowe",
        "description": "Wymaga operations:read. Owner widzi zadania do dostępnych punktów, pozostali wyłącznie przypisane sobie. Filtr ACL działa przed limitem 1000 zadań. Kontrakty: tylko relacja zamawiający/wykonawca, limit100. members i lista udostępnień są wyłącznie dla owner. Brak sekretów kiosku/challenge.",
        "operationId": "get_api_v1_operations_dashboard",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OperationsDashboard"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": [
          "operations:read"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        }
      }
    },
    "/api/v1/operations/calendar": {
      "get": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Eksportuj kalendarz zadań jako ICS",
        "description": "Wymaga operations:read. Wszystkie dostępne terminy aktywnych punktów, bez limitu dashboardu1000. Daty UTC, osobny VEVENT na termin, tekst escaped i składane linie. Brak opakowania data. To eksport, nie synchronizacja CalDAV.",
        "operationId": "get_api_v1_operations_calendar",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "text/calendar": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "x-required-scopes": [
          "operations:read"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        }
      }
    },
    "/api/v1/operations/checkins": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Zarejestruj meldunek QR",
        "description": "Wymaga operations:write, bieżącego ACL aktywnego punktu, dostępu do checkpointu oraz ewentualnego przypisania zadania. Zmienny QR ma serwerowy TTL15–120 s; replay tej samej osoby daje409, wygaśnięcie410, cooldown429. Offline nie uwierzytelnia dynamicznego meldunku. Zdjęcie lub live relay QR i manipulacja GPS pozostają możliwe; physical_presence_proven zawsze false.",
        "operationId": "post_api_v1_operations_checkins",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Checkin"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "410": {
            "$ref": "#/components/responses/Gone"
          }
        },
        "x-required-scopes": [
          "operations:write"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckinInput"
              }
            }
          }
        }
      }
    },
    "/api/v1/operations/tasks": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Utwórz serię terminów odczytu",
        "description": "Wymaga operations:write oraz owner. Wykonawca musi mieć aktualne członkostwo i ACL punktu. Terminy są jawnie rozwinięte (1–366), bez RRULE. Operacja nie tworzy kontraktu ani nie pobiera pieniędzy.",
        "operationId": "post_api_v1_operations_tasks",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TaskCreated"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": [
          "operations:write"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskCreate"
              }
            }
          }
        }
      }
    },
    "/api/v1/operations/tasks/{task_id}/submit": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Przekaż wynik przypisanego zadania",
        "description": "Wymaga operations:write. Tylko przypisany wykonawca, due→submitted. Związany kontrakt musi być zaakceptowany i gotowy; zewnętrzny wymaga potwierdzonej pełnej przedpłaty. Kolejne przekazanie daje409; akceptacja jest osobną operacją sesyjną owner.",
        "operationId": "post_api_v1_operations_tasks_task_id_submit",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OperationTask"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ],
        "x-required-scopes": [
          "operations:write"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskSubmit"
              }
            }
          }
        }
      }
    },
    "/api/v1/operations/tasks/{task_id}/time": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Zapisz czas wykonawcy",
        "description": "Wymaga operations:write. Tylko przypisana osoba przy gotowym kontrakcie i niezatwierdzonym zadaniu. Obowiązuje brak nakładania przedziałów oraz idempotencja request_id. Minuty zaokrąglane w górę; akceptacja czasu następuje przy akceptacji zadania.",
        "operationId": "post_api_v1_operations_tasks_task_id_time",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TimeEntry"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ],
        "x-required-scopes": [
          "operations:write"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TimeEntryInput"
              }
            }
          }
        }
      }
    },
    "/api/v1/camera-events": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Odczytaj niewygasłe obserwacje kamer",
        "description": "Wymaga integrations:read i ACL punktu. Limit500 najnowszych kandydatów przed końcowym filtrem ACL, bez paginacji. point_id zawęża wynik. AI jest propozycją do przeglądu; identity_verified=false. Dostęp do media_id nadal wymaga zwykłej autoryzacji i TTL pliku.",
        "operationId": "get_api_v1_camera_events",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CameraEventList"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "point_id",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ],
        "x-required-scopes": [
          "integrations:read"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        }
      }
    },
    "/api/v1/models": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Odczytaj warianty modeli",
        "description": "Wymaga integrations:read i ACL punktów. Maksymalnie500 rekordów organizacji przed końcowym filtrem. Owner widzi także metadane modeli do przeglądu; pozostali wyłącznie zatwierdzone, aktualne i mieszczące się w limicie. Publiczna projekcja nie udostępnia źródłowych zdjęć.",
        "operationId": "get_api_v1_models",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ModelList"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "point_id",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ],
        "x-required-scopes": [
          "integrations:read"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        }
      }
    },
    "/api/v1/models/{model_id}": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Odczytaj aktualną projekcję modelu",
        "description": "Wymaga integrations:read. Model musi być approved, źródłowy punkt aktywny, starts_at≤teraz<expires_at, a limit niewyczerpany. Org/Team/User dodatkowo aktualne członkostwo i PointAccess; Public tylko jawny zatwierdzony artefakt. Kontrole są ponawiane niezależnie od listy modeli. Metadane nie zużywają limitu. download_path wskazuje endpoint sesyjny; klient Bearer powinien pobierać przez /api/v1/models/{model_id}/file.",
        "operationId": "get_api_v1_models_model_id",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ModelVariant"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ],
        "x-required-scopes": [
          "integrations:read"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        }
      }
    },
    "/api/v1/models/{model_id}/file": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Pobierz zatwierdzony GLB",
        "description": "Wymaga integrations:read. Model musi być approved, źródłowy punkt aktywny, starts_at≤teraz<expires_at, a limit niewyczerpany. Org/Team/User dodatkowo aktualne członkostwo i PointAccess; Public tylko jawny zatwierdzony artefakt. Kontrole są ponawiane niezależnie od listy modeli. Każdy zaakceptowany GET atomowo zużywa jedno odtworzenie, także przy ponowieniu po przerwanym transferze. Model to samodzielny statyczny GLB2 do10MiB, bez zewnętrznych URI. Cache-Control: private,no-store. Brak tokenowego HEAD i brak rekonstrukcji 3D w tej trasie.",
        "operationId": "get_api_v1_models_model_id_file",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "model/gltf-binary": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ],
        "x-required-scopes": [
          "integrations:read"
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        }
      }
    },
    "/api/infrastructure": {
      "get": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Wyszukaj infrastrukturę",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. all łączy własne uprawnione urządzenia z publicznym katalogiem; private wymaga ACL. Wyniki po odległości przy lat/lng, inaczej po tytule. Offset dotyczy przefiltrowanej listy. Więcej niż 10000 kandydatów wymaga zawężenia obszaru/typu (422 catalog_area). Lokalizacja publicznej kamery nie daje dostępu do obrazu.",
        "operationId": "get_api_infrastructure",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InfrastructureSearch"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "description": "Fragment tytułu, opisu lub jawnej referencji źródła; dopasowanie bez wielkości liter."
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "",
                "camera",
                "mesh",
                "parking_meter",
                "speed_camera",
                "speed_sensor",
                "bts",
                "pump",
                "water_meter",
                "energy_meter",
                "sensor",
                "playground",
                "light",
                "router",
                "server",
                "hub",
                "antenna",
                "other"
              ],
              "maxLength": 40
            },
            "description": "Starszy filtr jednego typu, np. camera. Pusty lub pominięty oznacza wszystkie typy. Nie łącz niepustego kind z niepustym kinds: 422 kind_conflict. Tablice są odrzucane."
          },
          {
            "name": "kinds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 237,
              "pattern": "^(?:(?:camera|mesh|parking_meter|speed_camera|speed_sensor|bts|pump|water_meter|energy_meter|sensor|playground|light|router|server|hub|antenna|other)(?:,(?:camera|mesh|parking_meter|speed_camera|speed_sensor|bts|pump|water_meter|energy_meter|sensor|playground|light|router|server|hub|antenna|other)){0,16})?$",
              "not": {
                "pattern": "\\s"
              }
            },
            "description": "Lista rozdzielona przecinkami, np. camera,sensor, najwyżej 17 wpisów przed deduplikacją. Typy łączy OR, pozostałe filtry i aktualne uprawnienia łączy AND przed wyliczeniem total i paginacją. Powtórzenia nie powielają wyników. Pusty lub pominięty filtr oznacza wszystkie typy. Niepusty kind z kinds, tablice, nieznane typy, spacje, puste elementy i końcowy przecinek zwracają 422.",
            "example": "camera,sensor"
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "private",
                "public"
              ],
              "default": "all"
            }
          },
          {
            "name": "lat",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Latitude"
            },
            "description": "Wymaga także lng; używane jednorazowo do wyszukiwania w promieniu."
          },
          {
            "name": "lng",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Longitude"
            }
          },
          {
            "name": "radius_km",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 100,
              "maximum": 200
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "maximum": 10000
            }
          }
        ]
      },
      "post": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Zarejestruj urządzenie istniejącego punktu",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. Wymaga infrastructure:write oraz manage_orders i aktywnego punktu. Wpis pozostaje prywatny. Powtórzenie dla tego samego punktu zwraca istniejący wpis (również HTTP 201).",
        "operationId": "post_api_infrastructure",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InfrastructureAsset"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InfrastructureRegister"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Potwierdzenie bieżącej organizacji."
          }
        ]
      }
    },
    "/api/infrastructure/{asset_id}": {
      "get": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Odczytaj urządzenie",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. Uprawniony użytkownik dostaje projekcję prywatną; pozostali jedynie jawnie opublikowaną projekcję. Brak prywatnego dostępu nie jest obchodzony przez publiczną publikację.",
        "operationId": "get_api_infrastructure_asset_id",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InfrastructureAsset"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      },
      "patch": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Zmień publikację lub monitoring",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. Wymaga infrastructure:write oraz manage_orders przy źródłowym punkcie; wpis katalogowy bez punktu wymaga administratora platformy i owner. version chroni przed nadpisaniem; konflikt daje 409. Jawne potwierdzenie jest wymagane dla każdego zapisu z published=true.",
        "operationId": "patch_api_infrastructure_asset_id",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InfrastructureAsset"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          }
        },
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Potwierdzenie bieżącej organizacji."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InfrastructureUpdate"
              }
            }
          }
        }
      }
    },
    "/api/infrastructure/{asset_id}/readings": {
      "get": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Odczytaj historię urządzenia",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. Wymaga infrastructure:read i prywatnego ACL punktu. Najwyżej 200 pomiarów, observed_at malejąco, bez paginacji. Publikacja ogólnego stanu nie upublicznia wartości liczbowych. Pełny dostępny eksport używa /api/v1/export.",
        "operationId": "get_api_infrastructure_asset_id_readings",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/InfrastructureReading"
                      },
                      "maxItems": 200
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Zapisz odczyt lub stan",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. Wymaga infrastructure:write, can_observe przy aktywnym punkcie i włączonego monitoringu. Starsze zaakceptowane obserwacje zostają w historii, ale nie cofają bieżącego stanu. Idempotencja request_id na urządzenie; zmiana treści pod tym samym ID daje 409.",
        "operationId": "post_api_infrastructure_asset_id_readings",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InfrastructureReadingResult"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          }
        },
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Potwierdzenie bieżącej organizacji."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InfrastructureReadingInput"
              }
            }
          }
        }
      }
    },
    "/api/operations/dashboard": {
      "get": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Pobierz własne zadania terenowe",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. Owner widzi zadania do dostępnych punktów, pozostali wyłącznie przypisane sobie. Filtr ACL działa przed limitem 1000 zadań. Kontrakty: tylko relacja zamawiający/wykonawca, limit100. members i lista udostępnień są wyłącznie dla owner. Brak sekretów kiosku/challenge.",
        "operationId": "get_api_operations_dashboard",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OperationsDashboard"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/operations/calendar": {
      "get": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Eksportuj kalendarz zadań jako ICS",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. Wszystkie dostępne terminy aktywnych punktów, bez limitu dashboardu1000. Daty UTC, osobny VEVENT na termin, tekst escaped i składane linie. Brak opakowania data. To eksport, nie synchronizacja CalDAV.",
        "operationId": "get_api_operations_calendar",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "text/calendar": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/operations/checkins": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Zarejestruj meldunek QR",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. Wymaga operations:write, bieżącego ACL aktywnego punktu, dostępu do checkpointu oraz ewentualnego przypisania zadania. Zmienny QR ma serwerowy TTL15–120 s; replay tej samej osoby daje409, wygaśnięcie410, cooldown429. Offline nie uwierzytelnia dynamicznego meldunku. Zdjęcie lub live relay QR i manipulacja GPS pozostają możliwe; physical_presence_proven zawsze false.",
        "operationId": "post_api_operations_checkins",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Checkin"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "410": {
            "$ref": "#/components/responses/Gone"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckinInput"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Potwierdzenie bieżącej organizacji."
          }
        ]
      }
    },
    "/api/operations/tasks": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Utwórz serię terminów odczytu",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. Wymaga operations:write oraz owner. Wykonawca musi mieć aktualne członkostwo i ACL punktu. Terminy są jawnie rozwinięte (1–366), bez RRULE. Operacja nie tworzy kontraktu ani nie pobiera pieniędzy.",
        "operationId": "post_api_operations_tasks",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TaskCreated"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskCreate"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Potwierdzenie bieżącej organizacji."
          }
        ]
      }
    },
    "/api/operations/tasks/{task_id}/submit": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Przekaż wynik przypisanego zadania",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. Tylko przypisany wykonawca, due→submitted. Związany kontrakt musi być zaakceptowany i gotowy; zewnętrzny wymaga potwierdzonej pełnej przedpłaty. Kolejne przekazanie daje409; akceptacja jest osobną operacją sesyjną owner.",
        "operationId": "post_api_operations_tasks_task_id_submit",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OperationTask"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          }
        },
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Potwierdzenie bieżącej organizacji."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskSubmit"
              }
            }
          }
        }
      }
    },
    "/api/operations/tasks/{task_id}/time": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Zapisz czas wykonawcy",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. Tylko przypisana osoba przy gotowym kontrakcie i niezatwierdzonym zadaniu. Obowiązuje brak nakładania przedziałów oraz idempotencja request_id. Minuty zaokrąglane w górę; akceptacja czasu następuje przy akceptacji zadania.",
        "operationId": "post_api_operations_tasks_task_id_time",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TimeEntry"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          }
        },
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Potwierdzenie bieżącej organizacji."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TimeEntryInput"
              }
            }
          }
        }
      }
    },
    "/api/integrations/camera-events": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Odczytaj niewygasłe obserwacje kamer",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. Wymaga integrations:read i ACL punktu. Limit500 najnowszych kandydatów przed końcowym filtrem ACL, bez paginacji. point_id zawęża wynik. AI jest propozycją do przeglądu; identity_verified=false. Dostęp do media_id nadal wymaga zwykłej autoryzacji i TTL pliku.",
        "operationId": "get_api_integrations_camera_events",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CameraEventList"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "point_id",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      }
    },
    "/api/integrations/models": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Odczytaj warianty modeli",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. Wymaga integrations:read i ACL punktów. Maksymalnie500 rekordów organizacji przed końcowym filtrem. Owner widzi także metadane modeli do przeglądu; pozostali wyłącznie zatwierdzone, aktualne i mieszczące się w limicie. Publiczna projekcja nie udostępnia źródłowych zdjęć.",
        "operationId": "get_api_integrations_models",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ModelList"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "point_id",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Utwórz zestaw zdjęć wariantu modelu",
        "description": "Owner i can_observe punktu. awaiting_adapter oznacza oczekiwanie na osobnego workera rekonstrukcji; ta trasa nie tworzy automatycznie siatki3D.",
        "operationId": "post_api_integrations_models",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ModelVariant"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModelCreate"
              }
            }
          }
        }
      }
    },
    "/api/integrations/models/{model_id}": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Odczytaj aktualną projekcję modelu",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. Model musi być approved, źródłowy punkt aktywny, starts_at≤teraz<expires_at, a limit niewyczerpany. Org/Team/User dodatkowo aktualne członkostwo i PointAccess; Public tylko jawny zatwierdzony artefakt. Kontrole są ponawiane niezależnie od listy modeli. Metadane nie zużywają limitu. download_path wskazuje endpoint sesyjny; klient Bearer powinien pobierać przez /api/v1/models/{model_id}/file.",
        "operationId": "get_api_integrations_models_model_id",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ModelVariant"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Integracje"
        ],
        "summary": "Odczytaj aktualną projekcję modelu",
        "description": "Sesyjne HEAD wykonuje te same kontrole, bez treści i bez zużycia limitu odtworzeń.",
        "operationId": "get_api_integrations_models_model_idHead",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Dostępny model, brak treści odpowiedzi; limit bez zmian."
          }
        },
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      }
    },
    "/api/integrations/models/{model_id}/file": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Pobierz zatwierdzony GLB",
        "description": "Sesja przeglądarki; obowiązują te same kontrole domenowe i ACL co w odpowiedniku /api/v1. Model musi być approved, źródłowy punkt aktywny, starts_at≤teraz<expires_at, a limit niewyczerpany. Org/Team/User dodatkowo aktualne członkostwo i PointAccess; Public tylko jawny zatwierdzony artefakt. Kontrole są ponawiane niezależnie od listy modeli. Każdy zaakceptowany GET atomowo zużywa jedno odtworzenie, także przy ponowieniu po przerwanym transferze. Model to samodzielny statyczny GLB2 do10MiB, bez zewnętrznych URI. Cache-Control: private,no-store. Brak tokenowego HEAD i brak rekonstrukcji 3D w tej trasie.",
        "operationId": "get_api_integrations_models_model_id_file",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "model/gltf-binary": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Integracje"
        ],
        "summary": "Pobierz zatwierdzony GLB",
        "description": "Sesyjne HEAD wykonuje te same kontrole, bez treści i bez zużycia limitu odtworzeń.",
        "operationId": "get_api_integrations_models_model_id_fileHead",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Dostępny model, brak treści odpowiedzi; limit bez zmian."
          }
        },
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      }
    },
    "/api/infrastructure/sources": {
      "get": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Poznaj źródła katalogu",
        "description": "Publiczny rejestr źródeł, licencji i statusu adapterów. adapter=research oznacza opis do wdrożenia, nie działające automatyczne pobieranie.",
        "operationId": "get_api_infrastructure_sources",
        "security": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "sources": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/FreeObject"
                          }
                        },
                        "kinds": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/InfrastructureKind"
                          }
                        },
                        "civic_categories": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/infrastructure/public": {
      "get": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Przeszukaj publiczny katalog",
        "description": "Wyłącznie jawnie published urządzenia, z osobno zatwierdzoną lokalizacją i opisem. Wymusza scope=public niezależnie od cookies. Bez wartości liczbowych, endpointów, haseł i strumieni kamer. Limit90/min/IP. Odległość po prostej; więcej niż10000 kandydatów wymaga zawężenia.",
        "operationId": "get_api_infrastructure_public",
        "security": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InfrastructureSearch"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "description": "Fragment tytułu, opisu lub jawnej referencji źródła; dopasowanie bez wielkości liter."
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "",
                "camera",
                "mesh",
                "parking_meter",
                "speed_camera",
                "speed_sensor",
                "bts",
                "pump",
                "water_meter",
                "energy_meter",
                "sensor",
                "playground",
                "light",
                "router",
                "server",
                "hub",
                "antenna",
                "other"
              ],
              "maxLength": 40
            },
            "description": "Starszy filtr jednego typu, np. camera. Pusty lub pominięty oznacza wszystkie typy. Nie łącz niepustego kind z niepustym kinds: 422 kind_conflict. Tablice są odrzucane."
          },
          {
            "name": "kinds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 237,
              "pattern": "^(?:(?:camera|mesh|parking_meter|speed_camera|speed_sensor|bts|pump|water_meter|energy_meter|sensor|playground|light|router|server|hub|antenna|other)(?:,(?:camera|mesh|parking_meter|speed_camera|speed_sensor|bts|pump|water_meter|energy_meter|sensor|playground|light|router|server|hub|antenna|other)){0,16})?$",
              "not": {
                "pattern": "\\s"
              }
            },
            "description": "Lista rozdzielona przecinkami, np. camera,sensor, najwyżej 17 wpisów przed deduplikacją. Typy łączy OR, pozostałe filtry i aktualne uprawnienia łączy AND przed wyliczeniem total i paginacją. Powtórzenia nie powielają wyników. Pusty lub pominięty filtr oznacza wszystkie typy. Niepusty kind z kinds, tablice, nieznane typy, spacje, puste elementy i końcowy przecinek zwracają 422.",
            "example": "camera,sensor"
          },
          {
            "name": "lat",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Latitude"
            },
            "description": "Wymaga także lng; używane jednorazowo do wyszukiwania w promieniu."
          },
          {
            "name": "lng",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Longitude"
            }
          },
          {
            "name": "radius_km",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 100,
              "maximum": 200
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "maximum": 10000
            }
          }
        ]
      }
    },
    "/api/infrastructure/public/{asset_id}": {
      "get": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Odczytaj publiczny opis urządzenia",
        "description": "Publikowana projekcja istniejącego wpisu, bez prywatnego źródłowego obiektu. Wycofana publikacja/archiwum:404. Lokalizacja z katalogu nie jest uprawnieniem do kamery ani telemetrii.",
        "operationId": "get_api_infrastructure_public_asset_id",
        "security": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InfrastructurePublic"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      }
    },
    "/api/infrastructure/telemetry/{asset_id}": {
      "post": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Przekaż odczyt z agenta czujnika",
        "description": "Oddzielny SensorBearer powiązany z dokładnie tym asset_id. Bieżące uprawnienia wystawcy oraz can_observe są ponownie sprawdzane. Monitor musi być włączony. Limit120/min/asset/IP. Idempotencja request_id jak dla /api/v1/infrastructure/{asset_id}/readings. Nie wymaga sesji/CSRF.",
        "operationId": "post_api_infrastructure_telemetry_asset_id",
        "security": [
          {
            "SensorBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InfrastructureReadingResult"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InfrastructureReadingInput"
              }
            }
          }
        }
      }
    },
    "/api/operations/kiosk/challenge": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Wydaj zmienny QR na zaufany kiosk",
        "description": "Tylko KioskBearer checkpoint:challenge. Klucz wskazuje jeden dynamiczny checkpoint; właściciel musi nadal mieć dostęp. Odpowiedź zawiera krótko ważny token do wyświetlenia, nie ujawnia klucza kiosku. TTL serwera15–120s, odświeżaj przed expires_at; limit120/min/IP. Kiosk nie może logować meldunku w imieniu osoby. Nie wysyłaj klucza w URL.",
        "operationId": "post_api_operations_kiosk_challenge",
        "security": [
          {
            "KioskBearer": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/QrChallenge"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/operations/shares/open": {
      "post": {
        "tags": [
          "Udostępnienia"
        ],
        "summary": "Otwórz projekcję i zużyj wyświetlenie",
        "description": "Jawny POST z tokenem wewnątrz JSON. Sesja anonimowa + CSRF wystarcza tylko dla Public. Org/Team/User wymagają aktualnego członkostwa, odbiorcy i PointAccess każdego punktu; autor nadal musi być owner. starts≤teraz<expires, brak cofnięcia i niewyczerpany max_views. Udany odczyt, także pustej listy, atomowo zużywa jeden globalny widok. Brak GET zużywającego limit. Nie rozszerza źródłowych uprawnień. Limit60/min/IP. Token z fragmentu #t= nie jest automatycznie wysyłany do serwera.",
        "operationId": "post_api_operations_shares_open",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ShareProjection"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "410": {
            "$ref": "#/components/responses/Gone"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "$ref": "#/components/schemas/HexToken"
                  }
                },
                "additionalProperties": true,
                "required": [
                  "token"
                ]
              }
            }
          }
        }
      }
    },
    "/api/integrations/edge/{connector_id}/events": {
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Przekaż podpisaną obserwację edge",
        "description": "Własna autoryzacja HMAC nad dokładnym JSON, ±60s, nonce jednorazowy na connector. Reguła musi należeć do aktywnego edge connectora, wystawca nadal mieć can_observe. Body do4500000bajtów, JPEG do3MiB; captured_at z ostatnich5min (+10s). event_key zapewnia idempotencję treści; retry wymaga nowego nonce i świeżego podpisu. Limit120/min/connector/IP. 202 oznacza zapis/ewentualne kolejkowanie, nie analizę ani wysłanie do służb. PHP nie pobiera RTSP i nie przetwarza ciągłego streamu.",
        "operationId": "post_api_integrations_edge_connector_id_events",
        "security": [
          {
            "EdgeSignature": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge",
            "description": "Body przekracza4500000bajtów."
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "202": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CameraEvent"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Timestamp",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{10}$"
            },
            "description": "Unix seconds."
          },
          {
            "name": "X-Telemonit-Nonce",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{16,80}$"
            },
            "description": "Nowy losowy nonce każdej próby HTTP; nie jest event_key."
          },
          {
            "name": "connector_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CameraEventInput"
                  },
                  {
                    "required": [
                      "rule_id"
                    ]
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/api/integrations/public-models/{model_id}": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Pobierz publiczny opis modelu",
        "description": "Bez sesji tylko audience=public i approved; aktywny punkt, ważne daty oraz niewyczerpany max_views. Brak prywatnych fotografii, identyfikatorów odbiorców i parametrów źródłowego punktu. Metadane nie zużywają odtworzenia. Wyczerpanie/wygaśnięcie daje404.",
        "operationId": "get_api_integrations_public_models_model_id",
        "security": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ModelVariant"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Integracje"
        ],
        "summary": "Sprawdź dostępność publicznego modelu",
        "description": "Te same kontrole co GET, bez treści i bez zużywania odtworzenia.",
        "operationId": "head_api_integrations_public_models_model_id",
        "security": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "200": {
            "description": "Nagłówki dostępnego zasobu; bez treści i bez zużycia limitu."
          }
        },
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      }
    },
    "/api/integrations/public-models/{model_id}/file": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Pobierz publiczny plik GLB",
        "description": "Bez sesji tylko audience=public i approved; aktywny punkt, ważne daty oraz niewyczerpany max_views. Brak prywatnych fotografii, identyfikatorów odbiorców i parametrów źródłowego punktu. GET atomowo zużywa odtworzenie; ponowienie pobrania również. Samodzielny statyczny GLB2 do10MiB; no-store.",
        "operationId": "get_api_integrations_public_models_model_id_file",
        "security": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "model/gltf-binary": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Integracje"
        ],
        "summary": "Sprawdź dostępność publicznego modelu",
        "description": "Te same kontrole co GET, bez treści i bez zużywania odtworzenia.",
        "operationId": "head_api_integrations_public_models_model_id_file",
        "security": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "200": {
            "description": "Nagłówki dostępnego zasobu; bez treści i bez zużycia limitu."
          }
        },
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      }
    },
    "/api/operations/checkpoints": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Utwórz checkpoint obchodu",
        "description": "Owner i aktywny punkt. Lista user_ids ogranicza osoby dodatkowo do bieżącego ACL punktu; pusta lista nie nadaje nowego dostępu. Dynamiczny QR powstaje osobno w zaufanej sesji lub kiosku.",
        "operationId": "post_api_operations_checkpoints",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Checkpoint"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckpointCreate"
              }
            }
          }
        }
      }
    },
    "/api/operations/checkpoints/{checkpoint_id}": {
      "delete": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Cofnij checkpoint",
        "description": "Owner. Archiwizacja blokuje dalsze meldunki i spełnianie bramki sejfu; historyczne zapisy pozostają.",
        "operationId": "delete_api_operations_checkpoints_checkpoint_id",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Revoked"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "checkpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ]
      }
    },
    "/api/operations/checkpoints/{checkpoint_id}/qr": {
      "get": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Pobierz SVG do druku",
        "description": "Uprawniony odbiorca checkpointu i PointAccess. Kod drukowany zawiera tylko adres checkpointu. Wydruk dla trybu dynamicznego nie zastępuje bieżącego challenge. SVG generowane lokalnie, private/no-store.",
        "operationId": "get_api_operations_checkpoints_checkpoint_id_qr",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/svg+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "checkpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      }
    },
    "/api/operations/checkpoints/{checkpoint_id}/challenge": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Wydaj dynamiczny QR w sesji owner",
        "description": "Owner i aktywny dynamiczny checkpoint. Losowy192-bit nonce, w bazie tylko hash całego tokenu. Opcjonalne user_id/task_id wiążą challenge z osobą lub przypisanym zadaniem przy tym punkcie. Kod ważny według czasu serwera; nie jest dowodem fizycznej obecności.",
        "operationId": "post_api_operations_checkpoints_checkpoint_id_challenge",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/QrChallenge"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "checkpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "task_id": {
                    "$ref": "#/components/schemas/Id"
                  }
                },
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/api/operations/checkpoints/{checkpoint_id}/kiosk": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Wydaj klucz dedykowanego kiosku",
        "description": "Owner; tylko checkpoint dynamiczny. Pełny256-bitowy klucz zwracany raz. Przechowuj go na zaufanym urządzeniu, nie w wyświetlanym QR. Kiosk może wyłącznie odświeżać challenge tego checkpointu.",
        "operationId": "post_api_operations_checkpoints_checkpoint_id_kiosk",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/KioskKey"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "checkpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "days": {
                    "type": "integer",
                    "minimum": 1,
                    "default": 1,
                    "maximum": 30
                  }
                },
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/api/operations/checkpoints/{checkpoint_id}/revoke-kiosk": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Cofnij klucz kiosku",
        "description": "Owner tego checkpointu. Następna próba wydania challenge zostanie odrzucona.",
        "operationId": "post_api_operations_checkpoints_checkpoint_id_revoke_kiosk",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Revoked"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "checkpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "key_id": {
                    "$ref": "#/components/schemas/Id"
                  }
                },
                "additionalProperties": true,
                "required": [
                  "key_id"
                ]
              }
            }
          }
        }
      }
    },
    "/api/operations/selection": {
      "post": {
        "tags": [
          "Udostępnienia"
        ],
        "summary": "Sprawdź wybrany obszar punktów",
        "description": "Zalogowany użytkownik otrzymuje tylko punkty bieżącego ACL. Selekcja nie tworzy udostępnienia ani nie publikuje punktów.",
        "operationId": "post_api_operations_selection",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SelectionResult"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PointSelection"
              }
            }
          }
        }
      }
    },
    "/api/operations/shares": {
      "post": {
        "tags": [
          "Udostępnienia"
        ],
        "summary": "Utwórz czasowe udostępnienie punktów",
        "description": "Owner; do500 istniejących punktów. Public to wyłącznie jawna projekcja; prywatna projekcja jest przecięciem odbiorców i ich źródłowych ACL. Wygaśnięcie/limit/cofnięcie nie unieważniają już pobranych kopii. Brak automatycznej idempotencji tego POST.",
        "operationId": "post_api_operations_shares",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ShareCreated"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareCreate"
              }
            }
          }
        }
      }
    },
    "/api/operations/shares/{share_id}": {
      "delete": {
        "tags": [
          "Udostępnienia"
        ],
        "summary": "Cofnij udostępnienie",
        "description": "Owner. Kolejne odczyty i zmiany przez ten token zostają zablokowane; wersja wzrasta i zostaje audyt.",
        "operationId": "delete_api_operations_shares_share_id",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Revoked"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "share_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ]
      }
    },
    "/api/operations/shares/mutate": {
      "post": {
        "tags": [
          "Udostępnienia"
        ],
        "summary": "Zmień punkt w ramach prywatnego udostępnienia",
        "description": "Token musi być aktualny, niewyczerpany, prywatny i zawierać daną akcję i punkt. Dodatkowo wymagane edit_objects oraz bieżące źródłowe ACL. Dane update/delete są tymi samymi danymi co MapService, w tym version. Nie nadaje CRUD odbiorcy bez istniejących uprawnień i nie usuwa ich po wygaśnięciu linku.",
        "operationId": "post_api_operations_shares_mutate",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "$ref": "#/components/schemas/HexToken"
                  },
                  "point_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "update",
                      "delete"
                    ]
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "integer",
                        "minimum": 1
                      }
                    },
                    "additionalProperties": true
                  }
                },
                "additionalProperties": true,
                "required": [
                  "token",
                  "point_id",
                  "action",
                  "data"
                ]
              }
            }
          }
        }
      }
    },
    "/api/operations/teams": {
      "post": {
        "tags": [
          "Udostępnienia"
        ],
        "summary": "Zapisz zespół i jawne członkostwo",
        "description": "Owner. user_ids wyłącznie aktualnych członków organizacji; pełna lista zastępuje poprzednią. Podaj id, aby zmienić istniejący zespół; revoked=true cofa zespół. Zespół nie nadaje automatycznie PointAccess.",
        "operationId": "post_api_operations_teams",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OpsTeam"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "user_ids": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Id"
                    },
                    "maxItems": 100
                  },
                  "revoked": {
                    "type": "boolean",
                    "default": false
                  }
                },
                "additionalProperties": true,
                "required": [
                  "name"
                ]
              }
            }
          }
        }
      }
    },
    "/api/operations/vault/{entry_id}/policy": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Ustal dodatkową bramkę dostępu do sejfu",
        "description": "Owner przy aktywnym punkcie wpisu. require_checkin akceptuje wyłącznie świeży dynamic_qr z aktywnego checkpointu; require_assignment wymaga gotowego przydzielonego kontraktu/zlecenia. Obie są dodatkowymi warunkami AND względem istniejącego dostępu do punktu i grantu sejfu. Owner zachowuje administracyjny dostęp; odczyt nie przekazuje prawa do sprzętu ani automatycznie nie rotuje hasła.",
        "operationId": "post_api_operations_vault_entry_id_policy",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "entry_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "require_checkin": {
                    "type": "boolean",
                    "default": true
                  },
                  "require_assignment": {
                    "type": "boolean",
                    "default": false
                  },
                  "max_age_seconds": {
                    "type": "integer",
                    "minimum": 30,
                    "default": 900,
                    "maximum": 86400
                  }
                },
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/api/operations/tasks/{task_id}/approve": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Zatwierdź zadanie i jego czas",
        "description": "Owner, aktualny ACL punktu i gotowy kontrakt. submitted→approved, wraz z istniejącymi wpisami czasu. Nie wykonuje transferu pieniędzy. Powtórna akceptacja approved zwraca istniejący wynik.",
        "operationId": "post_api_operations_tasks_task_id_approve",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OperationTask"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ]
      }
    },
    "/api/operations/contracts": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Zaproponuj kontrakt z etapami",
        "description": "Owner. Nie pobiera pieniędzy i nie uruchamia wykonania. Wykonawca musi przeczytać i zaakceptować dokładny terms_hash. Brak globalnej idempotencji utworzenia. To rejestr uzgodnień, nie kwalifikowany podpis elektroniczny.",
        "operationId": "post_api_operations_contracts",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OperationsContract"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContractCreate"
              }
            }
          }
        }
      }
    },
    "/api/operations/contracts/{contract_id}": {
      "get": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Odczytaj własny kontrakt",
        "description": "Wyłącznie aktualny członek organizacji będący owner_id lub worker_id tego kontraktu. Inny właściciel organizacji nie przejmuje automatycznie cudzej relacji kontraktowej.",
        "operationId": "get_api_operations_contracts_contract_id",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OperationsContract"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "contract_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      }
    },
    "/api/operations/contracts/{contract_id}/accept": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Zaakceptuj warunki kontraktu",
        "description": "Tylko wskazany wykonawca; aktualny hash i świadome confirm. Internal przechodzi do active, external do awaiting_payment. Powtórzenie zgodnej akceptacji zwraca istniejący kontrakt.",
        "operationId": "post_api_operations_contracts_contract_id_accept",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OperationsContract"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "contract_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "terms_hash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "confirm": {
                    "const": true
                  }
                },
                "additionalProperties": true,
                "required": [
                  "terms_hash",
                  "confirm"
                ]
              }
            }
          }
        }
      }
    },
    "/api/operations/contracts/{contract_id}/checkout": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Przygotuj pełną przedpłatę kontraktu",
        "description": "Wyłącznie zlecający external po akceptacji, aktywna konfiguracja legalna i Stripe Connect. Weryfikuje onboarding wykonawcy, zamraża pełną kwotę i stosuje stabilną idempotencję. Zwraca checkout_url albo paid=true, gdy płatność została już niezależnie potwierdzona. Przekierowanie z przeglądarki nie oznacza zapłaty. Brak adaptera etapowych rozliczeń P24/PayPal w tej trasie.",
        "operationId": "post_api_operations_contracts_contract_id_checkout",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "contract_id": {
                          "$ref": "#/components/schemas/Id"
                        },
                        "checkout_url": {
                          "type": "string",
                          "format": "uri"
                        },
                        "paid": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": true,
                      "required": [
                        "contract_id"
                      ]
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "502": {
            "$ref": "#/components/responses/ProviderError"
          },
          "503": {
            "$ref": "#/components/responses/IntegrationUnavailable"
          }
        },
        "parameters": [
          {
            "name": "contract_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ]
      }
    },
    "/api/operations/contracts/{contract_id}/reconcile": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Uzgodnij istniejącą operację Stripe",
        "description": "Tylko administrator platformy. Sprawdza istniejącą sesję lub transfer u operatora, powiązanie z tym kontraktem i oczekiwaną kwotą. Nie pozwala użytkownikowi ręcznie oznaczyć paid; nie tworzy nowej wypłaty.",
        "operationId": "post_api_operations_contracts_contract_id_reconcile",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "contract_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transfer_id": {
                    "type": "string",
                    "maxLength": 255
                  },
                  "provider_order_id": {
                    "type": "string",
                    "maxLength": 255
                  }
                },
                "additionalProperties": true,
                "description": "Wymagany jeden istniejący identyfikator operatora; jeżeli oba podano, transfer_id ma pierwszeństwo."
              }
            }
          }
        }
      }
    },
    "/api/operations/milestones/{milestone_id}/submit": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Przekaż wykonany etap",
        "description": "Przypisany wykonawca; gotowy kontrakt i planned. Wszystkie przypisane do etapu zadania muszą być zatwierdzone.",
        "operationId": "post_api_operations_milestones_milestone_id_submit",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OperationsContract"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "milestone_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "result": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4000
                  }
                },
                "additionalProperties": true,
                "required": [
                  "result"
                ]
              }
            }
          }
        }
      }
    },
    "/api/operations/milestones/{milestone_id}/approve": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Odbierz etap",
        "description": "Wyłącznie zlecający kontraktu. Zatwierdza zgłoszone wykonanie; dla external nie oznacza samodzielnie transferu. Internal może zamknąć kontrakt po ostatnim etapie.",
        "operationId": "post_api_operations_milestones_milestone_id_approve",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OperationsContract"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "milestone_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ]
      }
    },
    "/api/operations/milestones/{milestone_id}/release": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Zleć transfer zatwierdzonej części",
        "description": "Wyłącznie zlecający; pełna potwierdzona przedpłata, zaakceptowany etap i brak manual_review. Kwota etapu po snapshot prowizji, jedna trwała dyspozycja i idempotency key. Powtórzenie już zwolnionej części nie tworzy transferu. Niejasny wynik→needs_reconciliation; po23h brak ślepego ponawiania. Zwrot/spór/reversal blokuje dalsze transfery. released oznacza transfer na konto Connect, nie przelew bankowy wykonawcy.",
        "operationId": "post_api_operations_milestones_milestone_id_release",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "milestone_id": {
                          "$ref": "#/components/schemas/Id"
                        },
                        "status": {
                          "type": "string"
                        },
                        "transfer_id": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "502": {
            "$ref": "#/components/responses/ProviderError"
          },
          "503": {
            "$ref": "#/components/responses/IntegrationUnavailable"
          }
        },
        "parameters": [
          {
            "name": "milestone_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ]
      }
    },
    "/api/operations/calendar/import": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Sprawdź lub zaimportuj konkretne terminy ICS",
        "description": "Owner. Ograniczony parser RFC5545: VCALENDAR +1–100 VEVENT, UTF-8 do256KiB, DTSTART UTC. Bez TZID/RRULE/VALARM/ATTACH/odwołań sieciowych. Domyślnie preview bez zapisów. commit=true wymaga punktu, wykonawcy i request_id, a ten sam import nie tworzy duplikatów. UID nie służy do dwustronnej synchronizacji; termin importu wiąże się z jawnie wybranym punktem i osobą.",
        "operationId": "post_api_operations_calendar_import",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ics": {
                    "type": "string",
                    "maxLength": 262144
                  },
                  "commit": {
                    "type": "boolean",
                    "default": false
                  },
                  "request_id": {
                    "$ref": "#/components/schemas/RequestId"
                  },
                  "point_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "worker_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "unit": {
                    "type": "string",
                    "maxLength": 30
                  }
                },
                "additionalProperties": true,
                "required": [
                  "ics"
                ]
              }
            }
          }
        }
      }
    },
    "/api/webhooks/contracts-stripe": {
      "post": {
        "tags": [
          "Praca terenowa"
        ],
        "summary": "Potwierdzenie operatora kontraktów",
        "description": "Oddzielny podpisany endpoint dla surface=telemonit_contract; limit1MiB raw body. Podpis i ponowne pobranie z Stripe weryfikują kontrakt, użytkowników, kwotę, PLN i konto odbiorcy. Deduplikacja event_id. Nie wymaga sesji/CSRF ani tokena użytkownika. Callback nie jest dowodem wypłaty bankowej; niepotwierdzony podpis400, błąd operatora502.",
        "operationId": "post_api_webhooks_contracts_stripe",
        "security": [
          {
            "StripeSignature": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "502": {
            "$ref": "#/components/responses/ProviderError"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FreeObject"
              }
            }
          }
        }
      }
    },
    "/api/infrastructure/{asset_id}/tokens": {
      "post": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Wydaj token telemetryczny",
        "description": "manage_orders i ACL punktu (dla importu bez punktu administrator+owner). Pełny token tylko w odpowiedzi; przypisany do jednego urządzenia, 1–90 dni.",
        "operationId": "post_api_infrastructure_asset_id_tokens",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SensorToken"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expires_days": {
                    "type": "integer",
                    "minimum": 1,
                    "default": 30,
                    "maximum": 90
                  }
                },
                "additionalProperties": true
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Cofnij tokeny telemetryczne urządzenia",
        "description": "Wymaga tego samego zarządzania co utworzenie. Cofa wszystkie aktualne tokeny tego urządzenia.",
        "operationId": "delete_api_infrastructure_asset_id_tokens",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Revoked"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ]
      }
    },
    "/api/infrastructure/{asset_id}/watch": {
      "get": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Sprawdź obserwowanie stanu",
        "description": "Dostęp do prywatnego wpisu lub jego jawnej publikacji.",
        "operationId": "get_api_infrastructure_asset_id_watch",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "watching": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": true,
                      "required": [
                        "watching"
                      ]
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Włącz obserwowanie zmian stanu",
        "description": "Zapisuje osobistą subskrypcję. Nie nadaje prawa do urządzenia; dostęp jest ponawiany przy powiadomieniu. Web Push wymaga osobno zgody przeglądarki i konfiguracji VAPID.",
        "operationId": "post_api_infrastructure_asset_id_watch",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "watching": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": true,
                      "required": [
                        "watching"
                      ]
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "default": true
                  }
                },
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/api/infrastructure/alerts": {
      "get": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Odczytaj własne alerty",
        "description": "Najwyżej200 najnowszych alertów autora z ponownym ACL wpisu. Ogólny status nie jest prywatnym pomiarem ani potwierdzeniem awarii.",
        "operationId": "get_api_infrastructure_alerts",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/components/schemas/Id"
                          },
                          "asset_id": {
                            "$ref": "#/components/schemas/Id"
                          },
                          "title": {
                            "type": "string"
                          },
                          "previous_state": {
                            "$ref": "#/components/schemas/InfrastructureStatus"
                          },
                          "current_state": {
                            "$ref": "#/components/schemas/InfrastructureStatus"
                          },
                          "created_at": {
                            "$ref": "#/components/schemas/Timestamp"
                          }
                        },
                        "additionalProperties": true
                      },
                      "maxItems": 200
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/infrastructure/import/preview": {
      "post": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Przygotuj podgląd importu GeoJSON",
        "description": "Administrator platformy i owner. FeatureCollection1–500 geometrii Point [lng,lat]; unikalne id/source_ref, kind, name, opis i opcjonalnie czas UTC/accuracy/source_url. Wymagana licencja i atrybucja. Tworzy prywatny podgląd ważny1h, bez publikacji.",
        "operationId": "post_api_infrastructure_import_preview",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "source_key": {
                    "type": "string"
                  },
                  "attribution": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                  },
                  "license": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                  },
                  "geojson": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "FeatureCollection"
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/FreeObject"
                        },
                        "minItems": 1,
                        "maxItems": 500
                      }
                    },
                    "additionalProperties": true,
                    "required": [
                      "type",
                      "features"
                    ]
                  }
                },
                "additionalProperties": true,
                "required": [
                  "source_key",
                  "attribution",
                  "license",
                  "geojson"
                ]
              }
            }
          }
        }
      }
    },
    "/api/infrastructure/import/overpass": {
      "post": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Pobierz podgląd ograniczonego importu OSM",
        "description": "Administrator i owner oraz INFRA_OVERPASS_ENABLED. Stały endpoint Overpass; bbox maks.0,2°×0,2°, najwyżej500 rekordów. Współrzędne center nie oznaczają rzeczywistego wejścia ani aktywności urządzenia. Wynik pozostaje prywatnym podglądem. Limit6/h/IP.",
        "operationId": "post_api_infrastructure_import_overpass",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "bbox": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "$ref": "#/components/schemas/Latitude"
                      },
                      {
                        "$ref": "#/components/schemas/Longitude"
                      },
                      {
                        "$ref": "#/components/schemas/Latitude"
                      },
                      {
                        "$ref": "#/components/schemas/Longitude"
                      }
                    ],
                    "minItems": 4,
                    "maxItems": 4,
                    "description": "[south,west,north,east], rosnące granice."
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "camera",
                      "parking_meter",
                      "speed_camera",
                      "bts",
                      "pump",
                      "playground",
                      "light",
                      "sensor"
                    ]
                  }
                },
                "additionalProperties": true,
                "required": [
                  "bbox",
                  "kind"
                ]
              }
            }
          }
        }
      }
    },
    "/api/infrastructure/import/commit": {
      "post": {
        "tags": [
          "Infrastruktura"
        ],
        "summary": "Zatwierdź sprawdzony import katalogu",
        "description": "Administrator i owner; rights_confirmed=true, własny podgląd nadal w terminie1h. Powtórzenie committed zwraca duplicate=true. Istniejące referencje źródła nie są nadpisywane. Wpisy pozostają nieopublikowane; publikacja jest osobnym PATCH.",
        "operationId": "post_api_infrastructure_import_commit",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "import_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "rights_confirmed": {
                    "const": true
                  }
                },
                "additionalProperties": true,
                "required": [
                  "import_id",
                  "rights_confirmed"
                ]
              }
            }
          }
        }
      }
    },
    "/api/civic/reports": {
      "get": {
        "tags": [
          "Zgłoszenia publiczne"
        ],
        "summary": "Odczytaj swoje zgłoszenia do jednostek",
        "description": "Autor widzi swoje, administrator platformy może obsługiwać zgłoszenia. Limit100 najnowszych. Eksport osobisty nigdy nie eksportuje wszystkich reporterów tylko z racji administratora.",
        "operationId": "get_api_civic_reports",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CivicReport"
                      },
                      "maxItems": 100
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Zgłoszenia publiczne"
        ],
        "summary": "Utwórz szkic zgłoszenia terenowego",
        "description": "Zalogowana osoba. Idempotentny request_id przypisany do autora. Zapis szkicu nie wykonuje zewnętrznej wysyłki ani automatycznej oceny przestępstwa. Limit20/h/użytkownik/IP.",
        "operationId": "post_api_civic_reports",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CivicReport"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CivicReportCreate"
              }
            }
          }
        }
      }
    },
    "/api/civic/reports/{report_id}": {
      "get": {
        "tags": [
          "Zgłoszenia publiczne"
        ],
        "summary": "Odczytaj zgłoszenie",
        "description": "Autor albo administrator platformy; prywatny raport.",
        "operationId": "get_api_civic_reports_report_id",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CivicReport"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "report_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      }
    },
    "/api/civic/reports/{report_id}/confirm": {
      "post": {
        "tags": [
          "Zgłoszenia publiczne"
        ],
        "summary": "Zatwierdź wysyłkę do wybranej jednostki",
        "description": "Tylko autor szkicu; aktywny i zweryfikowany odbiorca właściwy dla kategorii oraz obszaru, skonfigurowany kanał. Potwierdzenie rzetelności i przekazania danych obowiązkowe; policja wymaga osobnego police_submission_confirmed. Kolejka i accepted_by_gateway nie oznaczają podjęcia działań. Zdjęcia przekazywane jako czasowe linki do oczyszczonego JPEG, bez danych autora. Limit20/h/użytkownik/IP.",
        "operationId": "post_api_civic_reports_report_id_confirm",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CivicReport"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "report_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "recipient_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "good_faith_confirmed": {
                    "const": true
                  },
                  "data_sharing_confirmed": {
                    "const": true
                  },
                  "police_submission_confirmed": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": true,
                "required": [
                  "recipient_id",
                  "good_faith_confirmed",
                  "data_sharing_confirmed"
                ]
              }
            }
          }
        }
      }
    },
    "/api/civic/reports/{report_id}/cancel": {
      "post": {
        "tags": [
          "Zgłoszenia publiczne"
        ],
        "summary": "Cofnij przyszłe próby i dostęp do zdjęć",
        "description": "Autor lub administrator. Blokuje kolejne próby/linki; nie cofa już otrzymanej treści z systemu odbiorcy. Podczas aktywnej wysyłki409.",
        "operationId": "post_api_civic_reports_report_id_cancel",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CivicReport"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "report_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ]
      }
    },
    "/api/civic/reports/{report_id}/photos": {
      "post": {
        "tags": [
          "Zgłoszenia publiczne"
        ],
        "summary": "Dołącz oczyszczoną fotografię do szkicu",
        "description": "Autor własnego szkicu, maks.5 zdjęć. JPEG/PNG/WebP do12MiB, re-encode JPEG bez EXIF. Żądanie multipart maks.13MiB. Zwykłe sesyjne CSRF/Workspace nadal obowiązują.",
        "operationId": "post_api_civic_reports_report_id_photos",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "$ref": "#/components/schemas/Id"
                        },
                        "url": {
                          "type": "string"
                        },
                        "stored_bytes": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "metadata": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "report_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "additionalProperties": true,
                "required": [
                  "file"
                ]
              }
            }
          }
        }
      }
    },
    "/api/civic/photos/{photo_id}": {
      "get": {
        "tags": [
          "Zgłoszenia publiczne"
        ],
        "summary": "Pobierz własne zdjęcie zgłoszenia",
        "description": "Autor zgłoszenia albo administrator platformy. Oczyszczony JPEG bez EXIF; no-store, same-origin. HEAD nie zwraca treści.",
        "operationId": "get_api_civic_photos_photo_id",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "photo_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Zgłoszenia publiczne"
        ],
        "summary": "Pobierz własne zdjęcie zgłoszenia",
        "description": "Autor zgłoszenia albo administrator platformy. Oczyszczony JPEG bez EXIF; no-store, same-origin. HEAD nie zwraca treści.",
        "operationId": "head_api_civic_photos_photo_id",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Nagłówki zdjęcia bez treści."
          }
        },
        "parameters": [
          {
            "name": "photo_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      }
    },
    "/api/civic/evidence/{token}": {
      "get": {
        "tags": [
          "Zgłoszenia publiczne"
        ],
        "summary": "Pobierz czasowe zdjęcie dla jednostki",
        "description": "Token w ścieżce jest sekretem do pojedynczego zdjęcia przekazanego jednostce. Link ważny24h od potwierdzenia, z limitem odczytów; wycofany/wygasły/niewysłany raport:404. GET atomowo zużywa odczyt, HEAD nie. Brak sesji. Redaguj logi URL, nie publikuj w sitemap; no-store/no-referrer. Nie jest publiczną bazą fotografii.",
        "operationId": "get_api_civic_evidence_token",
        "security": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Zgłoszenia publiczne"
        ],
        "summary": "Pobierz czasowe zdjęcie dla jednostki",
        "description": "Token w ścieżce jest sekretem do pojedynczego zdjęcia przekazanego jednostce. Link ważny24h od potwierdzenia, z limitem odczytów; wycofany/wygasły/niewysłany raport:404. GET atomowo zużywa odczyt, HEAD nie. Brak sesji. Redaguj logi URL, nie publikuj w sitemap; no-store/no-referrer. Nie jest publiczną bazą fotografii.",
        "operationId": "head_api_civic_evidence_token",
        "security": [],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "200": {
            "description": "Nagłówki zdjęcia bez treści i zużycia odczytu."
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            }
          }
        ]
      }
    },
    "/api/civic/callback/{recipient_id}": {
      "post": {
        "tags": [
          "Zgłoszenia publiczne"
        ],
        "summary": "Odbierz podpisaną zmianę statusu jednostki",
        "description": "Tylko aktywny zweryfikowany odbiorca protokołu signed_webhook. Osobny HMAC timestamp+dot+rawbody, okno±300s. event_id deduplikuje; ta sama treść daje duplicate=true, inna409. Blokuje regresję i zmianę końcowego statusu. Limit120/min/odbiorca/IP, raw JSON do1MiB.",
        "operationId": "post_api_civic_callback_recipient_id",
        "security": [
          {
            "CivicSignature": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "received": {
                          "type": "boolean"
                        },
                        "duplicate": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": true,
                      "required": [
                        "received",
                        "duplicate"
                      ]
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Timestamp",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$"
            },
            "description": "Unix seconds; podpis nad dokładnym raw body."
          },
          {
            "name": "recipient_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "event_id": {
                    "$ref": "#/components/schemas/RequestId"
                  },
                  "report_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "received",
                      "in_progress",
                      "resolved",
                      "rejected"
                    ]
                  }
                },
                "additionalProperties": true,
                "required": [
                  "event_id",
                  "report_id",
                  "status"
                ]
              }
            }
          }
        }
      }
    },
    "/api/civic/recipients": {
      "get": {
        "tags": [
          "Zgłoszenia publiczne"
        ],
        "summary": "Znajdź właściwych odbiorców",
        "description": "Domyślnie aktywne i zweryfikowane jednostki; filtry lokalizacji i kategorii. manage=1 wyłącznie administrator platformy, zwraca też konfigurację i wersję bez sekretów.",
        "operationId": "get_api_civic_recipients",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FreeObject"
                      }
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "lat",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Latitude"
            }
          },
          {
            "name": "lng",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Longitude"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CivicCategory"
            }
          },
          {
            "name": "manage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ],
              "default": "0"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "Zgłoszenia publiczne"
        ],
        "summary": "Zarejestruj uzgodniony kanał jednostki",
        "description": "Administrator platformy. endpoint_key odwołuje się do serwerowej konfiguracji i allowlisty, nie przyjmuje dowolnego adresu ani sekretu od reportera. verified wymaga podstawy weryfikacji; Open311 wymaga service_code.",
        "operationId": "post_api_civic_recipients",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 160
                  },
                  "agency_kind": {
                    "type": "string",
                    "enum": [
                      "municipality",
                      "property_manager",
                      "operator",
                      "police"
                    ],
                    "default": "municipality"
                  },
                  "categories": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/CivicCategory"
                    },
                    "minItems": 1,
                    "maxItems": 9
                  },
                  "lat": {
                    "$ref": "#/components/schemas/Latitude"
                  },
                  "lng": {
                    "$ref": "#/components/schemas/Longitude"
                  },
                  "radius_km": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 200
                  },
                  "endpoint_key": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_-]{0,79}$"
                  },
                  "protocol": {
                    "type": "string",
                    "enum": [
                      "signed_webhook",
                      "open311"
                    ],
                    "default": "signed_webhook"
                  },
                  "service_code": {
                    "type": "string",
                    "maxLength": 80
                  },
                  "verified": {
                    "type": "boolean",
                    "default": false
                  },
                  "active": {
                    "type": "boolean",
                    "default": true
                  },
                  "verification_reference": {
                    "type": "string",
                    "maxLength": 180
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": true,
                "required": [
                  "name",
                  "categories",
                  "lat",
                  "lng",
                  "radius_km",
                  "endpoint_key"
                ]
              }
            }
          }
        }
      }
    },
    "/api/civic/recipients/{recipient_id}": {
      "patch": {
        "tags": [
          "Zgłoszenia publiczne"
        ],
        "summary": "Zaktualizuj kanał jednostki",
        "description": "Administrator; pełne wymagane dane oraz aktualna version. Zmiana konfiguracji blokuje starą kolejkę do ponownego uzgodnienia, zamiast wysyłać do nowego odbiorcy bez potwierdzenia.",
        "operationId": "patch_api_civic_recipients_recipient_id",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "recipient_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 160
                  },
                  "agency_kind": {
                    "type": "string",
                    "enum": [
                      "municipality",
                      "property_manager",
                      "operator",
                      "police"
                    ],
                    "default": "municipality"
                  },
                  "categories": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/CivicCategory"
                    },
                    "minItems": 1,
                    "maxItems": 9
                  },
                  "lat": {
                    "$ref": "#/components/schemas/Latitude"
                  },
                  "lng": {
                    "$ref": "#/components/schemas/Longitude"
                  },
                  "radius_km": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 200
                  },
                  "endpoint_key": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_-]{0,79}$"
                  },
                  "protocol": {
                    "type": "string",
                    "enum": [
                      "signed_webhook",
                      "open311"
                    ],
                    "default": "signed_webhook"
                  },
                  "service_code": {
                    "type": "string",
                    "maxLength": 80
                  },
                  "verified": {
                    "type": "boolean",
                    "default": false
                  },
                  "active": {
                    "type": "boolean",
                    "default": true
                  },
                  "verification_reference": {
                    "type": "string",
                    "maxLength": 180
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": true,
                "required": [
                  "name",
                  "categories",
                  "lat",
                  "lng",
                  "radius_km",
                  "endpoint_key",
                  "version"
                ]
              }
            }
          }
        }
      }
    },
    "/api/integrations/camera-rules": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Odczytaj reguły kamer",
        "description": "Wyłącznie reguły punktów bieżącego ACL. Zwraca capture_mode=edge_snapshots i continuous_video_in_php=false.",
        "operationId": "get_api_integrations_camera_rules",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Zapisz regułę analizy klatek",
        "description": "Sesyjny owner, bez publicznego pobierania RTSP. Włączenie wymaga uprawnienia do obrazu i przekazania oczyszczonych klatek do AI.",
        "operationId": "post_api_integrations_camera_rules",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CameraRuleInput"
              }
            }
          }
        }
      }
    },
    "/api/integrations/camera-rules/{rule_id}": {
      "patch": {
        "tags": [
          "Integracje"
        ],
        "summary": "Zmień regułę analizy",
        "description": "Owner; weryfikuje ACL urządzenia, własny connector oraz zgodę. Usunięcie dostępu blokuje kolejną pracę workera.",
        "operationId": "patch_api_integrations_camera_rules_rule_id",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "rule_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "device_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "connector_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "ai_connector_id": {
                    "$ref": "#/components/schemas/NullableId"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "scenario": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 2000
                  },
                  "interval_seconds": {
                    "type": "integer",
                    "minimum": 60,
                    "default": 300,
                    "maximum": 86400
                  },
                  "retention_seconds": {
                    "type": "integer",
                    "minimum": 60,
                    "default": 86400,
                    "maximum": 604800
                  },
                  "enabled": {
                    "type": "boolean",
                    "default": false
                  },
                  "consent": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": true,
                "description": "Owner i can_observe aktywnego punktu kamery. Edge connector musi być własny, opcjonalny AI connector typu oqllm. Pierwsze włączenie wymaga consent=true. Minimalny odstęp analizy60s, jedna równoległa analiza organizacji; to klatki, nie ciągły stream."
              }
            }
          }
        }
      }
    },
    "/api/integrations/camera-rules/{rule_id}/events": {
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Dodaj obserwację w sesji",
        "description": "can_observe aktywnego punktu; włączona reguła. Ta sama idempotencja event_key co edge, lecz standardowy limit JSON1MiB ogranicza rozmiar inline obrazu; większą klatkę wysyła podpisany agent edge. Stan kolejki/awaiting_configuration nie oznacza zakończenia analizy.",
        "operationId": "post_api_integrations_camera_rules_rule_id_events",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CameraEvent"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "rule_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CameraEventInput"
              }
            }
          }
        }
      }
    },
    "/api/integrations/camera-events/{event_id}/review": {
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Oceń propozycję analizy",
        "description": "can_review_analysis przy punkcie; zdarzenie nadal ważne. accepted/rejected to ocena człowieka, nie automatyczne wysłanie do służb ani ustalenie tożsamości.",
        "operationId": "post_api_integrations_camera_events_event_id_review",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "review_status": {
                          "type": "string",
                          "enum": [
                            "accepted",
                            "rejected"
                          ]
                        },
                        "automatic_dispatch": {
                          "const": false
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "decision": {
                    "type": "string",
                    "enum": [
                      "accepted",
                      "rejected"
                    ]
                  }
                },
                "additionalProperties": true,
                "required": [
                  "decision"
                ]
              }
            }
          }
        }
      }
    },
    "/api/integrations/photos": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Wybierz trwałe zdjęcia punktu",
        "description": "PointAccess i zwykłe MediaStore ACL. Najwyżej100, wyłączone wygasające klatki camera_event. Nie jest publicznym endpointem.",
        "operationId": "get_api_integrations_photos",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "photos": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/FreeObject"
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "point_id",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      }
    },
    "/api/integrations/models/{model_id}/artifact": {
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Wgraj wynikowy GLB do przeglądu",
        "description": "Owner i aktywny punkt. Samodzielny GLB2 do10MiB, statyczny, z siatką i jednym BIN, bez URI/animacji/skins/wymaganych rozszerzeń. Body multipart do11MiB. Upload zwiększa wersję i cofa approved do pending_review; nie publikuje pliku.",
        "operationId": "post_api_integrations_models_model_id_artifact",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ModelVariant"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "additionalProperties": true,
                "required": [
                  "file"
                ]
              }
            }
          }
        }
      }
    },
    "/api/integrations/models/{model_id}/review-file": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Pobierz plik do przeglądu właściciela",
        "description": "Tylko owner i aktywny PointAccess, administracyjny przegląd ostatniej wersji. Nie jest ścieżką dla odbiorców modelu; nie zużywa publicznego limitu. Odbiorca używa /file z kontrolą zatwierdzenia/TTL/licznika.",
        "operationId": "get_api_integrations_models_model_id_review_file",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "model/gltf-binary": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Integracje"
        ],
        "summary": "Pobierz plik do przeglądu właściciela",
        "description": "Tylko owner i aktywny PointAccess, administracyjny przegląd ostatniej wersji. Nie jest ścieżką dla odbiorców modelu; nie zużywa publicznego limitu. Odbiorca używa /file z kontrolą zatwierdzenia/TTL/licznika.",
        "operationId": "head_api_integrations_models_model_id_review_file",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Nagłówki pliku do przeglądu, bez treści."
          }
        },
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      }
    },
    "/api/integrations/models/{model_id}/approve": {
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Zatwierdź artefakt i zakres widoczności",
        "description": "Owner po przeglądzie pliku i praw do publikacji. Wymaga aktualnej version i confirm_review=true; opcjonalnie aktualizuje audience/termin/limit. Nie przekazuje zdjęć źródłowych. Wcześniej zużyte widoki nie są zerowane.",
        "operationId": "post_api_integrations_models_model_id_approve",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ModelVariant"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "audience": {
                    "$ref": "#/components/schemas/Audience"
                  },
                  "team_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "user_ids": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Id"
                    },
                    "minItems": 1,
                    "maxItems": 50
                  },
                  "starts_at": {
                    "$ref": "#/components/schemas/Timestamp"
                  },
                  "expires_at": {
                    "$ref": "#/components/schemas/Timestamp"
                  },
                  "max_views": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "confirm_review": {
                    "const": true
                  }
                },
                "additionalProperties": true,
                "required": [
                  "version",
                  "confirm_review"
                ]
              }
            }
          }
        }
      }
    },
    "/api/integrations/models/{model_id}/revoke": {
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Cofnij model",
        "description": "Owner i PointAccess. Następne projekcje/pobrania są blokowane. Nie usuwa kopii pliku już pobranego.",
        "operationId": "post_api_integrations_models_model_id_revoke",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Revoked"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ]
      }
    },
    "/api/integrations/state": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Pobierz sesyjny stan panelu integracji",
        "description": "Zwraca wyłącznie uprawnione punkty, urządzenia, reguły i obserwacje. Picker punktów limit200 z point_picker_has_more; urządzenia maks.1000 kandydatów. Budżet/chmura i pełne connectory tylko owner. Odbiorcy zwykli otrzymują ograniczoną listę bramek kontaktowych bez sekretów.",
        "operationId": "get_api_integrations_state",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/integrations/connectors": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Odczytaj własne connectory",
        "description": "Owner. DTO bez wartości sekretu i bez secret_env; configured tylko oznacza obecność konfiguracji, nie test połączenia.",
        "operationId": "get_api_integrations_connectors",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Dodaj connector",
        "description": "Owner, a dla aktywacji/sekretu także administrator platformy. Nie wykonuje jeszcze testu ani zewnętrznego transferu.",
        "operationId": "post_api_integrations_connectors",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectorInput"
              }
            }
          }
        }
      }
    },
    "/api/integrations/connectors/{connector_id}": {
      "patch": {
        "tags": [
          "Integracje"
        ],
        "summary": "Zmień connector",
        "description": "Owner, aktualna version, ten sam provider. Wrażliwe zmiany wymagają administratora platformy.",
        "operationId": "patch_api_integrations_connectors_connector_id",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "connector_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "provider": {
                    "type": "string",
                    "enum": [
                      "oqllm",
                      "edge",
                      "nextcloud",
                      "google_drive",
                      "onedrive",
                      "smsapi",
                      "twilio"
                    ]
                  },
                  "enabled": {
                    "type": "boolean",
                    "default": false
                  },
                  "secret_env": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^TM_INTEGRATION_[A-Z0-9_]{3,90}$",
                        "writeOnly": true
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "config": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "Dozwolone pola zależą od providera: oqllm model/profile/dedicated_account; edge description; nextcloud base_url/username; google_drive folder_id; onedrive drive_id/folder_id; smsapi sender; twilio account_sid/from_phone/relay_url. Serwer waliduje hosty i typy; dowolne sekrety/URL są odrzucane."
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": true,
                "required": [
                  "version"
                ],
                "description": "Owner może zapisać wyłączony connector. Włączenie, przypisanie/zmiana secret_env oraz wrażliwa zmiana aktywnej konfiguracji wymagają także administratora platformy. secret_env jest nazwą zmiennej, nie hasłem."
              }
            }
          }
        }
      }
    },
    "/api/integrations/connectors/{connector_id}/revoke": {
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Cofnij connector",
        "description": "Owner. Blokuje przyszłe wykonania, nie cofa danych już przekazanych operatorowi.",
        "operationId": "post_api_integrations_connectors_connector_id_revoke",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Revoked"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "connector_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ]
      }
    },
    "/api/integrations/connectors/{connector_id}/usage": {
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Odśwież stan użycia OQLLM",
        "description": "Owner, aktywny connector OQLLM i dedykowane konto z potwierdzonym kontraktem usage. Liczniki operatora i lokalne oszacowania pozostają rozdzielone; nie jest to faktura ani obciążenie. Limit6/h/użytkownik/IP.",
        "operationId": "post_api_integrations_connectors_connector_id_usage",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "connector_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ]
      }
    },
    "/api/integrations/ai-budget": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Odczytaj budżet analiz kamer",
        "description": "Owner. Zawiera lokalne rezerwacje/estymacje i osobno zweryfikowane dane providera, jeżeli adapter jest skonfigurowany.",
        "operationId": "get_api_integrations_ai_budget",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Integracje"
        ],
        "summary": "Zmień limity analiz kamer",
        "description": "Owner. Obejmuje camera_vision; nie jest automatycznym limitem kosztów wszystkich odrębnych systemów AI. Wartość0 blokuje kolejne rezerwacje danego budżetu.",
        "operationId": "put_api_integrations_ai_budget",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "daily_requests": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "monthly_requests": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "monthly_estimate_minor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000000
                  },
                  "request_estimate_minor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  }
                },
                "additionalProperties": true,
                "required": [
                  "daily_requests",
                  "monthly_requests",
                  "monthly_estimate_minor",
                  "request_estimate_minor"
                ]
              }
            }
          }
        }
      }
    },
    "/api/integrations/cloud-jobs": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Odczytaj własne transfery chmurowe",
        "description": "Owner; własne100 najnowszych transferów. Pilot: pojedynczy plik do2MiB, bez archiwów; OAuth/odświeżanie uprawnień wymagają osobnego wdrożenia operatora.",
        "operationId": "get_api_integrations_cloud_jobs",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Zleć transfer własnych danych",
        "description": "Owner i confirm_transfer. Nextcloud/Google Drive/OneDrive, aktualne ACL sprawdzane również przez workera. request_id idempotentny dla autora/organizacji; niejasny wynik dostawcy wymaga uzgodnienia. Nie przetwarza ZIP/TAR i nie pobiera dowolnych ścieżek.",
        "operationId": "post_api_integrations_cloud_jobs",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "202": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "$ref": "#/components/schemas/Id"
                        },
                        "status": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "connector_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "export_ndjson",
                      "export_photo",
                      "import_points",
                      "import_photo"
                    ]
                  },
                  "resource": {
                    "type": "string",
                    "maxLength": 180
                  },
                  "point_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "request_id": {
                    "$ref": "#/components/schemas/RequestId"
                  },
                  "confirm_transfer": {
                    "const": true
                  }
                },
                "additionalProperties": true,
                "required": [
                  "connector_id",
                  "kind",
                  "request_id",
                  "confirm_transfer"
                ],
                "description": "export_photo: resource=id uprawnionego zdjęcia; import: pojedyncza nazwa/ID pliku; import_photo także point_id. export_ndjson nie wymaga resource."
              }
            }
          }
        }
      }
    },
    "/api/integrations/contacts": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Odczytaj swój telefon, zgody i dyspozycje",
        "description": "Dotyczy wyłącznie bieżącego użytkownika. recording_enabled=false i marketing_enabled=false.",
        "operationId": "get_api_integrations_contacts",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/integrations/contact": {
      "get": {
        "tags": [
          "Integracje"
        ],
        "summary": "Pobierz telefon uprawnionego odbiorcy",
        "description": "Obie strony muszą mieć dostęp do konkretnej sprawy, a odbiorca zweryfikowany telefon i niewygasłą zgodę share_phone w tym kontekście. Brak zgody404. Numer nie jest publicznym wynikiem wyszukiwania.",
        "operationId": "get_api_integrations_contact",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "user_id": {
                          "$ref": "#/components/schemas/Id"
                        },
                        "phone": {
                          "type": "string"
                        },
                        "tel_uri": {
                          "type": "string"
                        },
                        "expires_at": {
                          "$ref": "#/components/schemas/Timestamp"
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "user_id",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "context_kind",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32,
              "description": "Obsługiwany kontekst LiveService, np. point lub marketplace_job; obie strony muszą być jego uprawnionymi uczestnikami."
            }
          },
          {
            "name": "context_id",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          }
        ]
      }
    },
    "/api/integrations/phone/start": {
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Zamów SMS weryfikacji własnego telefonu",
        "description": "Tylko własny telefon E.164, consent_sms=true, aktywna skonfigurowana SMSAPI. Kod ważny10min, najwyżej3/h. Odpowiedź queued/verified=false; nigdy nie zwraca kodu i nie potwierdza telefonu przed otrzymaniem SMS.",
        "operationId": "post_api_integrations_phone_start",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "202": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "pattern": "^\\+[1-9][0-9]{7,14}$"
                  },
                  "connector_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "consent_sms": {
                    "const": true
                  }
                },
                "additionalProperties": true,
                "required": [
                  "phone",
                  "connector_id",
                  "consent_sms"
                ]
              }
            }
          }
        }
      }
    },
    "/api/integrations/phone/verify": {
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Potwierdź własny telefon kodem SMS",
        "description": "Najwyżej5 prób kodu, niezależnie od limiteraHTTP10/10min. Nieprawidłowe próby są trwale liczone.",
        "operationId": "post_api_integrations_phone_verify",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "verified": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[0-9]{6}$"
                  }
                },
                "additionalProperties": true,
                "required": [
                  "code"
                ]
              }
            }
          }
        }
      }
    },
    "/api/integrations/contact-consent": {
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Nadaj własną zgodę kontaktową",
        "description": "Uprawniony uczestnik z potwierdzonym telefonem. Ważność do30dni; osobne sms/ai_voice/share_phone. ai_voice wymaga także ai_disclosure_confirmed=true. Zgoda dotyczy konkretnej sprawy, nie marketingu ani kontaktu dowolnych osób.",
        "operationId": "post_api_integrations_contact_consent",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/FreeObject"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "context_kind": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32,
                    "description": "Obsługiwany kontekst LiveService, np. point lub marketplace_job; obie strony muszą być jego uprawnionymi uczestnikami."
                  },
                  "context_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "expires_at": {
                    "$ref": "#/components/schemas/Timestamp"
                  },
                  "sms": {
                    "type": "boolean",
                    "default": false
                  },
                  "ai_voice": {
                    "type": "boolean",
                    "default": false
                  },
                  "share_phone": {
                    "type": "boolean",
                    "default": false
                  },
                  "ai_disclosure_confirmed": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": true,
                "required": [
                  "context_kind",
                  "context_id",
                  "expires_at"
                ]
              }
            }
          }
        }
      }
    },
    "/api/integrations/contact-consent/revoke": {
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Cofnij własną zgodę w sprawie",
        "description": "Kolejne odczyty numeru i wykonania kolejki wymagające tej zgody zostaną zablokowane. Nie cofa już odbytych połączeń.",
        "operationId": "post_api_integrations_contact_consent_revoke",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Revoked"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "context_kind": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32,
                    "description": "Obsługiwany kontekst LiveService, np. point lub marketplace_job; obie strony muszą być jego uprawnionymi uczestnikami."
                  },
                  "context_id": {
                    "$ref": "#/components/schemas/Id"
                  }
                },
                "additionalProperties": true,
                "required": [
                  "context_kind",
                  "context_id"
                ]
              }
            }
          }
        }
      }
    },
    "/api/integrations/messages": {
      "post": {
        "tags": [
          "Integracje"
        ],
        "summary": "Zleć uzgodniony kontakt w sprawie",
        "description": "Jawne confirm, zweryfikowany odbiorca i jego odrębna aktywna zgoda dla sms/ai_voice w tej sprawie. Maks.3/h/odbiorca/sprawa. request_id idempotentny. SMS jest stałym powiadomieniem do aplikacji, nie dowolnym tekstem marketingowym. AI voice wymaga Twilio, ujawnienia AI, aktywacji i osobnego mostuWSS. queued/provider_accepted nie oznaczają dostarczenia SMS ani pomyślnej rozmowy.",
        "operationId": "post_api_integrations_messages",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "$ref": "#/components/responses/PayloadTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "202": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "$ref": "#/components/schemas/Id"
                        },
                        "status": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "context_kind": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32,
                    "description": "Obsługiwany kontekst LiveService, np. point lub marketplace_job; obie strony muszą być jego uprawnionymi uczestnikami."
                  },
                  "context_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "sms",
                      "ai_voice"
                    ]
                  },
                  "recipient_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "connector_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "request_id": {
                    "$ref": "#/components/schemas/RequestId"
                  },
                  "confirm": {
                    "const": true
                  }
                },
                "additionalProperties": true,
                "required": [
                  "context_kind",
                  "context_id",
                  "kind",
                  "recipient_id",
                  "connector_id",
                  "request_id",
                  "confirm"
                ]
              }
            }
          }
        }
      }
    },
    "/api/exports/media.zip": {
      "post": {
        "tags": [
          "Eksport"
        ],
        "summary": "Pobierz prywatne archiwum mediów",
        "description": "Wyłącznie POST z sesją, CSRF i potwierdzeniem organizacji. Wymagany JSON: opcje lub pusty obiekt; max200 punktów, max2000 plików i100MiB zawartości/manifestu oraz gotowego ZIP, limit6/h/użytkownik/IP. Zawiera uprawnione media bieżącej organizacji oraz bezpośrednie załączniki spraw dostępne autorowi/odbiorcy. Domyślnie oczyszczone fotografie; audio/wideo według normalnych praw pobrania. Ponowny ACL/TTL przed każdym plikiem i przed zamknięciem archiwum. GLB oraz civic_photos pominięte i opisane w manifest.json, żeby nie obchodzić osobnych granic dostępu. Oryginały mogą mieć EXIF/GPS; pobranej kopii nie można później cofnąć. Nazwa telemonit-media.zip, private/no-store.",
        "operationId": "post_api_exports_media_zip",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict",
            "description": "archive_changed/context_changed: uprawnienia, plik lub kontekst zmieniły się podczas przygotowania."
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "419": {
            "$ref": "#/components/responses/CsrfExpired"
          },
          "413": {
            "description": "archive_count: ponad2000 plików lub archive_size: ponad100MiB. Zawęź point_ids.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/zip": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "503": {
            "$ref": "#/components/responses/IntegrationUnavailable"
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator bieżącej organizacji; nie nadaje dostępu. Brak lub zmiana kontekstu: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "include_originals": {
                    "type": "boolean",
                    "default": false,
                    "description": "Oryginał media wyłącznie po dodatkowym prawie uploader/owner; pozostali otrzymują preview. Fotografie z bezpośrednich casefiles zawsze oczyszczone."
                  },
                  "point_ids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-f0-9-]{36}$"
                    },
                    "maxItems": 200,
                    "description": "Opcjonalne zawężenie; puste/brak oznacza wszystkie bieżąco dostępne pliki. Każdy podany punkt wymaga ACL."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "x-rate-limit": {
          "requests": 6,
          "window_seconds": 3600,
          "bucket": "user_id + client IP"
        }
      }
    },
    "/api/v1/incidents": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_v1_incidents",
        "summary": "Lista incydentów",
        "description": "Filtry przestrzenne stosowane przed paginacją. Publiczny zakres używa tylko jawnej projekcji. Brak point_id w publicznym zapytaniu.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "x-required-scopes": [
          "incidents:read"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "types",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Lista typów oddzielonych przecinkiem."
            }
          },
          {
            "name": "statuses",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Lista statusów oddzielonych przecinkiem."
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "ISO8601 ze strefą lub data YYYY-MM-DD w UTC."
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "severity_min",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            }
          },
          {
            "name": "severity_max",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            }
          },
          {
            "name": "validity",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "active",
                "expired",
                "future"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "newest",
                "oldest",
                "severity",
                "updated",
                "distance"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            }
          },
          {
            "name": "area",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "JSON: {kind:radius,lat,lng,radius_km:0.1..100} albo {kind:bbox,bbox:[west,south,east,north]} albo {kind:polygon,vertices:[[lng,lat],...]}. Polygon3–100wierzchołków, bbox/polygon najwyżej10°; distance wymaga radius."
            }
          },
          {
            "name": "point_id",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_v1_incidents",
        "summary": "Dodaj prywatny incydent",
        "description": "Idempotencja request_id i hash treści; scope nie omija can_report/ACL. Publikacja osobno.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "x-required-scopes": [
          "incidents:write"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentInputV5"
              }
            }
          }
        }
      }
    },
    "/api/incidents": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incidents",
        "summary": "Lista incydentów",
        "description": "Filtry przestrzenne stosowane przed paginacją. Publiczny zakres używa tylko jawnej projekcji. Brak point_id w publicznym zapytaniu.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "types",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Lista typów oddzielonych przecinkiem."
            }
          },
          {
            "name": "statuses",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Lista statusów oddzielonych przecinkiem."
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "ISO8601 ze strefą lub data YYYY-MM-DD w UTC."
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "severity_min",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            }
          },
          {
            "name": "severity_max",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            }
          },
          {
            "name": "validity",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "active",
                "expired",
                "future"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "newest",
                "oldest",
                "severity",
                "updated",
                "distance"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            }
          },
          {
            "name": "area",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "JSON: {kind:radius,lat,lng,radius_km:0.1..100} albo {kind:bbox,bbox:[west,south,east,north]} albo {kind:polygon,vertices:[[lng,lat],...]}. Polygon3–100wierzchołków, bbox/polygon najwyżej10°; distance wymaga radius."
            }
          },
          {
            "name": "point_id",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_incidents",
        "summary": "Dodaj prywatny incydent",
        "description": "Idempotencja request_id i hash treści; scope nie omija can_report/ACL. Publikacja osobno.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IncidentInputV5"
              }
            }
          }
        }
      }
    },
    "/api/incidents/public": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incidents_public",
        "summary": "Lista incydentów",
        "description": "Filtry przestrzenne stosowane przed paginacją. Publiczny zakres używa tylko jawnej projekcji. Brak point_id w publicznym zapytaniu.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "types",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Lista typów oddzielonych przecinkiem."
            }
          },
          {
            "name": "statuses",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Lista statusów oddzielonych przecinkiem."
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "ISO8601 ze strefą lub data YYYY-MM-DD w UTC."
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "severity_min",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            }
          },
          {
            "name": "severity_max",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            }
          },
          {
            "name": "validity",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "active",
                "expired",
                "future"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "newest",
                "oldest",
                "severity",
                "updated",
                "distance"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            }
          },
          {
            "name": "area",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "JSON: {kind:radius,lat,lng,radius_km:0.1..100} albo {kind:bbox,bbox:[west,south,east,north]} albo {kind:polygon,vertices:[[lng,lat],...]}. Polygon3–100wierzchołków, bbox/polygon najwyżej10°; distance wymaga radius."
            }
          }
        ]
      }
    },
    "/api/v1/incidents/timeline": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_v1_incidents_timeline",
        "summary": "Historia zdarzeń regionu",
        "description": "Aktualne uprawnienia plus zakres zapisanej wersji. Nie rekonstruuje brakujących dawnych danych.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "x-required-scopes": [
          "incidents:read"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "types",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Lista typów oddzielonych przecinkiem."
            }
          },
          {
            "name": "statuses",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Lista statusów oddzielonych przecinkiem."
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "ISO8601 ze strefą lub data YYYY-MM-DD w UTC."
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "severity_min",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            }
          },
          {
            "name": "severity_max",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            }
          },
          {
            "name": "validity",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "active",
                "expired",
                "future"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "newest",
                "oldest",
                "severity",
                "updated",
                "distance"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            }
          },
          {
            "name": "area",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "JSON: {kind:radius,lat,lng,radius_km:0.1..100} albo {kind:bbox,bbox:[west,south,east,north]} albo {kind:polygon,vertices:[[lng,lat],...]}. Polygon3–100wierzchołków, bbox/polygon najwyżej10°; distance wymaga radius."
            }
          }
        ]
      }
    },
    "/api/incidents/timeline": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incidents_timeline",
        "summary": "Historia zdarzeń regionu",
        "description": "Aktualne uprawnienia plus zakres zapisanej wersji. Nie rekonstruuje brakujących dawnych danych.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "types",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Lista typów oddzielonych przecinkiem."
            }
          },
          {
            "name": "statuses",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Lista statusów oddzielonych przecinkiem."
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "ISO8601 ze strefą lub data YYYY-MM-DD w UTC."
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "severity_min",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            }
          },
          {
            "name": "severity_max",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            }
          },
          {
            "name": "validity",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "active",
                "expired",
                "future"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "newest",
                "oldest",
                "severity",
                "updated",
                "distance"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            }
          },
          {
            "name": "area",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "JSON: {kind:radius,lat,lng,radius_km:0.1..100} albo {kind:bbox,bbox:[west,south,east,north]} albo {kind:polygon,vertices:[[lng,lat],...]}. Polygon3–100wierzchołków, bbox/polygon najwyżej10°; distance wymaga radius."
            }
          }
        ]
      }
    },
    "/api/incidents/state": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incidents_state",
        "summary": "Opcje i kontekst formularza incydentów",
        "description": "",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/api/incidents/options": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incidents_options",
        "summary": "Publiczne kategorie incydentów",
        "description": "",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/api/incidents/{id}": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incidents_id",
        "summary": "Szczegóły incydentu",
        "description": "",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "patch": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "patch_api_incidents_id",
        "summary": "Zmień prywatny incydent",
        "description": "Wymaga version, request_id i praw do edycji. Nie ujawnia zmiany publicznie bez osobnej publikacji.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "delete_api_incidents_id",
        "summary": "Usuń incydent",
        "description": "Wymaga version i request_id; zapis historyczny jest nadal kontrolowany przez ACL.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/incidents/{id}/history": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incidents_id_history",
        "summary": "Historia incydentu",
        "description": "",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/incidents/points/{id}/history": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incidents_points_id_history",
        "summary": "Historia wersji obiektu",
        "description": "",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/incident-views": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incident_views",
        "summary": "Zapisane widoki",
        "description": "",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_incident_views",
        "summary": "Zarządzaj zapisanym filtrem",
        "description": "Zakres, termin i publikacja według docs/INCIDENTS-V5.md. Publiczny widok nie poszerza publikacji źródeł.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/incident-views/{id}": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incident_views_id",
        "summary": "Zapisany widok",
        "description": "",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "patch": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "patch_api_incident_views_id",
        "summary": "Zarządzaj zapisanym filtrem",
        "description": "Zakres, termin i publikacja według docs/INCIDENTS-V5.md. Publiczny widok nie poszerza publikacji źródeł.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "delete_api_incident_views_id",
        "summary": "Zarządzaj zapisanym filtrem",
        "description": "Zakres, termin i publikacja według docs/INCIDENTS-V5.md. Publiczny widok nie poszerza publikacji źródeł.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/incidents/{id}/publication": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_incidents_id_publication",
        "summary": "Opublikuj lub wycofaj oddzielną projekcję",
        "description": "Tylko uprawniony owner, version, request_id i świadoma akceptacja publicznej treści. Prywatne fotografie, hasła i adresy nie są kopiowane automatycznie.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/incidents/points/{id}/history/snapshot": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_incidents_points_id_history_snapshot",
        "summary": "Utrwal stan punktu",
        "description": "Tylko edit_objects; zapis rzeczywistego odczytu, nie rekonstrukcja przeszłości.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/incidents/public/{id}": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incidents_public_id",
        "summary": "Publiczny incydent",
        "description": "Aktualny stan publikacji sprawdzany dla każdego żądania. Brak wyjątków dla robotów.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "head_api_incidents_public_id",
        "summary": "Publiczny incydent",
        "description": "Aktualny stan publikacji sprawdzany dla każdego żądania. Brak wyjątków dla robotów.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/incident-views/public/{id}": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incident_views_public_id",
        "summary": "Publiczny zapisany widok",
        "description": "Aktualny stan publikacji sprawdzany dla każdego żądania. Brak wyjątków dla robotów.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "head_api_incident_views_public_id",
        "summary": "Publiczny zapisany widok",
        "description": "Aktualny stan publikacji sprawdzany dla każdego żądania. Brak wyjątków dla robotów.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/incidents/card.png": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incidents_card_png",
        "summary": "Karta społecznościowa PNG1200×630",
        "description": "Wyłącznie zatwierdzona projekcja; Cache-Control:no-store. Nie gwarantuje usunięcia kopii już zapisanej przez portal społecznościowy.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "head": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "head_api_incidents_card_png",
        "summary": "Karta społecznościowa PNG1200×630",
        "description": "Wyłącznie zatwierdzona projekcja; Cache-Control:no-store. Nie gwarantuje usunięcia kopii już zapisanej przez portal społecznościowy.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/api/incidents/public/{id}/card.png": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incidents_public_id_card_png",
        "summary": "Karta społecznościowa PNG1200×630",
        "description": "Wyłącznie zatwierdzona projekcja; Cache-Control:no-store. Nie gwarantuje usunięcia kopii już zapisanej przez portal społecznościowy.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "head_api_incidents_public_id_card_png",
        "summary": "Karta społecznościowa PNG1200×630",
        "description": "Wyłącznie zatwierdzona projekcja; Cache-Control:no-store. Nie gwarantuje usunięcia kopii już zapisanej przez portal społecznościowy.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/incident-views/public/{id}/card.png": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incident_views_public_id_card_png",
        "summary": "Karta społecznościowa PNG1200×630",
        "description": "Wyłącznie zatwierdzona projekcja; Cache-Control:no-store. Nie gwarantuje usunięcia kopii już zapisanej przez portal społecznościowy.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "head_api_incident_views_public_id_card_png",
        "summary": "Karta społecznościowa PNG1200×630",
        "description": "Wyłącznie zatwierdzona projekcja; Cache-Control:no-store. Nie gwarantuje usunięcia kopii już zapisanej przez portal społecznościowy.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/incidents/public/{id}/photos/{media_id}": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incidents_public_id_photos_media_id",
        "summary": "Jawnie udostępnione oczyszczone zdjęcie",
        "description": "",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "media_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "head_api_incidents_public_id_photos_media_id",
        "summary": "Jawnie udostępnione oczyszczone zdjęcie",
        "description": "",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "media_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/v1/tracking/assets": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_v1_tracking_assets",
        "summary": "Dostępne lokalizatory rzeczy",
        "description": "Aktualny punkt/odbiorca/termin; brak tokenów urządzenia.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "x-required-scopes": [
          "tracking:read"
        ]
      }
    },
    "/api/v1/parking/dashboard": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_v1_parking_dashboard",
        "summary": "Własne postoje i parkingi operatora",
        "description": "Bez sekretów; do100 rekordów w kolekcji panelu. Pełny eksport własnych rachunków przez NDJSON.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "x-required-scopes": [
          "parking:read"
        ]
      }
    },
    "/api/tracking/state": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_tracking_state",
        "summary": "Kontekst lokalizacji i meldunków",
        "description": "",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/api/tracking/assets": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_tracking_assets",
        "summary": "Lokalizatory rzeczy",
        "description": "",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_assets",
        "summary": "Dodaj lokalizator własnej rzeczy",
        "description": "point_id,name,kind=pet/luggage/vehicle/asset, source=gps_tracker/traccar, confirm_owned i scope.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tracking/protected": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_tracking_protected",
        "summary": "Twoje chronione udostępnienia",
        "description": "",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_protected",
        "summary": "Utwórz chronione zdjęcie",
        "description": "Istniejące własne nieprzypięte zdjęcie, password12–72bajty, odbiorcy, starts_at/expires_at≤30dni, max_views≤1000, opcjonalny wymagany meldunek.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tracking/requests": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_requests",
        "summary": "Poproś osobę o udostępnienie",
        "description": "Nie rozpoczyna śledzenia.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tracking/requests/{id}/decision": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_requests_id_decision",
        "summary": "Przyjmij lub odrzuć prośbę",
        "description": "Wyłącznie adresat prośby; nie zastępuje próbki GPS.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tracking/location/start": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_location_start",
        "summary": "Udostępnij własną pozycję",
        "description": "consent=true, user_ids, precision_m0/100/1000, TTL. Bez publicznego people scope i bez numeru telefonu.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tracking/location/update": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_location_update",
        "summary": "Zapisz własny odczyt GPS",
        "description": "share_id, lat,lng,accuracy_m,observed_at; własna aktualna sesja.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tracking/location/stop": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_location_stop",
        "summary": "Zatrzymaj własną sesję",
        "description": "share_id, natychmiastowe cofnięcie.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tracking/assets/{id}/tokens": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_assets_id_tokens",
        "summary": "Wydaj token urządzenia",
        "description": "Właściciel; świeży token widoczny raz, termin ważności.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tracking/assets/{id}/revoke-token": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_assets_id_revoke_token",
        "summary": "Cofnij token urządzenia",
        "description": "token_id.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tracking/checkpoints/{id}/challenge": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_checkpoints_id_challenge",
        "summary": "Wydaj zmienny QR i kod liczbowy",
        "description": "QR i numer reprezentują to samo wyzwanie; rotacja unieważnia poprzednie.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tracking/checkins/qr": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_checkins_qr",
        "summary": "Meldunek QR",
        "description": "Token wyzwania i ewentualny świeży GPS/zadanie.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tracking/checkins/number": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_checkins_number",
        "summary": "Meldunek kodem liczbowym",
        "description": "Osiem cyfr, maksymalnie3próby na osobę; replay QR tego samego wyzwania także odrzucony.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tracking/checkins/gps": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_checkins_gps",
        "summary": "Meldunek przyciskiem i GPS",
        "description": "Niższa pewność gps_button; nie odblokowuje silnego warunku sejfu.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/tracking/assets/{id}": {
      "patch": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "patch_api_tracking_assets_id",
        "summary": "Zmień lokalizator",
        "description": "Wymagana aktualna version i potwierdzenie własności.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "delete_api_tracking_assets_id",
        "summary": "Wycofaj lokalizator",
        "description": "",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/tracking/protected/{id}": {
      "delete": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "delete_api_tracking_protected_id",
        "summary": "Cofnij chronione udostępnienie",
        "description": "",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/tracking/protected/open": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_protected_open",
        "summary": "Otwórz chronione zdjęcie",
        "description": "Nie ma publicznego GET z obrazem. Token z fragmentu URL, hasło, obecny odbiorca/ACL/TTL/limit i wymagany meldunek; odpowiedź JPEG no-store.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProtectedPhotoOpenV5"
              }
            }
          }
        }
      }
    },
    "/api/tracking/kiosk/challenge": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_kiosk_challenge",
        "summary": "Wydaj wyzwanie na kiosku",
        "description": "Klucz ma tylko prawo wyświetlania kodu konkretnego checkpointu.",
        "security": [
          {
            "KioskBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/api/tracking/assets/{id}/position": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_tracking_assets_id_position",
        "summary": "Zapisz odczyt własnego lokalizatora",
        "description": "Scoped token jednego urządzenia. Limit8KiB; odrębny adapter Traccar wymagany; aktualne prawa wystawcy.",
        "security": [
          {
            "TrackingBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/parking/public": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_parking_public",
        "summary": "Publiczne taryfy parkingowe",
        "description": "Świadomie opublikowana nazwa, pozycja i taryfa; bez prywatnego point_id i tablic.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "head": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "head_api_parking_public",
        "summary": "Publiczne taryfy parkingowe",
        "description": "Świadomie opublikowana nazwa, pozycja i taryfa; bez prywatnego point_id i tablic.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/api/parking/public/{id}": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_parking_public_id",
        "summary": "Publiczne taryfy parkingowe",
        "description": "Świadomie opublikowana nazwa, pozycja i taryfa; bez prywatnego point_id i tablic.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "head_api_parking_public_id",
        "summary": "Publiczne taryfy parkingowe",
        "description": "Świadomie opublikowana nazwa, pozycja i taryfa; bez prywatnego point_id i tablic.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/parking/dashboard": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_parking_dashboard",
        "summary": "Panel parkingów i własnych postojów",
        "description": "",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/api/parking/facilities": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_parking_facilities",
        "summary": "Dodaj parking",
        "description": "Owner w aktywnym punkcie. payment_env tylko platform admin i oddzielny merchant klienta.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/parking/facilities/{id}": {
      "patch": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "patch_api_parking_facilities_id",
        "summary": "Zmień parking i taryfę",
        "description": "Wymaga version. Zmiana nie przepisuje otwartych postojów; nowy wjazd wymaga nowej zgody.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/parking/facilities/{id}/key": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_parking_facilities_id_key",
        "summary": "Wydaj lub obróć token bramy",
        "description": "Poprzedni klucz natychmiast traci ważność.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/parking/facilities/{id}/permits": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_parking_facilities_id_permits",
        "summary": "Zgoda na taryfę i pojazd",
        "description": "Własna zgoda klienta, weryfikowana przez operatora przed wjazdem.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParkingPermitV5"
              }
            }
          }
        }
      }
    },
    "/api/parking/permits/{id}": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_parking_permits_id",
        "summary": "Weryfikuj lub cofnij zgodę",
        "description": "action=verify/revoke. verify wymaga owner i verified_vehicle_authority=true; klient może cofnąć swoją zgodę.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/parking/events/{id}/review": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_parking_events_id_review",
        "summary": "Rozpatrz odczyt tablicy",
        "description": "confirmed_plate=true po sprawdzeniu albo action=dismiss. Nie omija wymogu zweryfikowanej zgody.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/parking/sessions/{id}": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_parking_sessions_id",
        "summary": "Własny rachunek parkingowy",
        "description": "",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/parking/sessions/{id}/accept": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_parking_sessions_id_accept",
        "summary": "Akceptacja rachunku",
        "description": "Wyłącznie własny rachunek. quote_hash i jawne potwierdzenie. checkout wymaga włączenia operatora; timeout nie tworzy nowej transakcji.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParkingBillConfirmationV5"
              }
            }
          }
        }
      }
    },
    "/api/parking/sessions/{id}/checkout": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_parking_sessions_id_checkout",
        "summary": "Przejście do P24",
        "description": "Wyłącznie własny rachunek. quote_hash i jawne potwierdzenie. checkout wymaga włączenia operatora; timeout nie tworzy nowej transakcji.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParkingBillConfirmationV5"
              }
            }
          }
        }
      }
    },
    "/api/parking/edge/{id}": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_parking_edge_id",
        "summary": "Obserwacja kamery parkingu",
        "description": "120/min. Token jednej bramy, świeży czas, request_id+hash. Brak zgody lub niska pewność → review. Odczyt nigdy nie autoryzuje pobrania pieniędzy.",
        "security": [
          {
            "ParkingBearer": []
          }
        ],
        "responses": {
          "202": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParkingObservationV5"
              }
            }
          }
        }
      }
    },
    "/api/parking/webhooks/przelewy24/{id}": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_parking_webhooks_przelewy24_id",
        "summary": "Podpisane potwierdzenie P24 parkingu",
        "description": "id to facility_id. Brak sesji przeglądarkowej; obowiązkowy podpis SHA384 body z CRC oraz niezależny REST verify. Tylko namespace tmpark. Direct merchant bez split/recurring.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParkingP24NotificationV5"
              }
            }
          }
        }
      }
    },
    "/api/marketplace/quote": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_marketplace_quote",
        "summary": "Podgląd ceny rozszerzonej aukcji",
        "description": "Bez utworzenia płatności. Zwraca jawne składowe kwoty i hash warunków. Model total_basis100→110→99/11; service_basis100→110→90/20. Dodatkowy fee aukcji domyślnie0.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/marketplace/jobs/{id}/quote": {
      "post": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "post_api_marketplace_jobs_id_quote",
        "summary": "Podgląd ceny rozszerzonej aukcji",
        "description": "Bez utworzenia płatności. Zwraca jawne składowe kwoty i hash warunków. Model total_basis100→110→99/11; service_basis100→110→90/20. Dodatkowy fee aukcji domyślnie0.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/api/incidents/photos": {
      "get": {
        "tags": [
          "Telemonit 0.5"
        ],
        "operationId": "get_api_incidents_photos",
        "summary": "Zdjęcia dostępne do incydentu",
        "description": "Wyłącznie trwałe zdjęcia dostępnego punktu; tymczasowy niewysłany upload nie jest oferowany jako trwały załącznik.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "point_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/events": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_events",
        "summary": "Wyszukaj wydarzenia",
        "description": "Event interval overlap, current ACL or separate public projection, geometry before pagination. Distance requires radius and is straight-line.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "culture",
                "concert",
                "sport",
                "community",
                "training",
                "meeting",
                "market",
                "maintenance",
                "transport",
                "other"
              ]
            }
          },
          {
            "name": "types",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Comma-separated event types."
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "proposed",
                "confirmed",
                "postponed",
                "cancelled",
                "completed"
              ]
            }
          },
          {
            "name": "statuses",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Comma-separated statuses."
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "ISO time with zone or civil date YYYY-MM-DD in timezone."
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "End-exclusive; civil date includes the full selected day."
            }
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "now",
                "past",
                "planned",
                "year",
                "undated"
              ]
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1970,
              "maximum": 2199
            }
          },
          {
            "name": "timezone",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "Europe/Warsaw",
              "description": "IANA timezone."
            }
          },
          {
            "name": "topics",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Comma-separated topics, any match."
            }
          },
          {
            "name": "area",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "JSON: {kind:radius,lat,lng,radius_km:0.1..100}; {kind:bbox,bbox:[west,south,east,north]}; {kind:polygon,vertices:[[lng,lat],...]}. Same constraints as incident areas."
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 20000
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "soonest",
                "newest",
                "updated",
                "distance"
              ]
            }
          },
          {
            "name": "point_id",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "use_interests",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "post_api_events",
        "summary": "Dodaj prywatne wydarzenie",
        "description": "Scope never bypasses permission to report in the target organization/point.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventInputV6"
              }
            }
          }
        }
      }
    },
    "/api/v1/events": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_v1_events",
        "summary": "Wyszukaj wydarzenia",
        "description": "Event interval overlap, current ACL or separate public projection, geometry before pagination. Distance requires radius and is straight-line.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "x-required-scopes": [
          "events:read"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "culture",
                "concert",
                "sport",
                "community",
                "training",
                "meeting",
                "market",
                "maintenance",
                "transport",
                "other"
              ]
            }
          },
          {
            "name": "types",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Comma-separated event types."
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "proposed",
                "confirmed",
                "postponed",
                "cancelled",
                "completed"
              ]
            }
          },
          {
            "name": "statuses",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Comma-separated statuses."
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "ISO time with zone or civil date YYYY-MM-DD in timezone."
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "End-exclusive; civil date includes the full selected day."
            }
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "now",
                "past",
                "planned",
                "year",
                "undated"
              ]
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1970,
              "maximum": 2199
            }
          },
          {
            "name": "timezone",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "Europe/Warsaw",
              "description": "IANA timezone."
            }
          },
          {
            "name": "topics",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Comma-separated topics, any match."
            }
          },
          {
            "name": "area",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "JSON: {kind:radius,lat,lng,radius_km:0.1..100}; {kind:bbox,bbox:[west,south,east,north]}; {kind:polygon,vertices:[[lng,lat],...]}. Same constraints as incident areas."
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 20000
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "soonest",
                "newest",
                "updated",
                "distance"
              ]
            }
          },
          {
            "name": "point_id",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "use_interests",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "post_api_v1_events",
        "summary": "Dodaj prywatne wydarzenie",
        "description": "Scope never bypasses permission to report in the target organization/point.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "x-required-scopes": [
          "events:write"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventInputV6"
              }
            }
          }
        }
      }
    },
    "/api/events/public": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_events_public",
        "summary": "Wyszukaj wydarzenia",
        "description": "Event interval overlap, current ACL or separate public projection, geometry before pagination. Distance requires radius and is straight-line.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "culture",
                "concert",
                "sport",
                "community",
                "training",
                "meeting",
                "market",
                "maintenance",
                "transport",
                "other"
              ]
            }
          },
          {
            "name": "types",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Comma-separated event types."
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "proposed",
                "confirmed",
                "postponed",
                "cancelled",
                "completed"
              ]
            }
          },
          {
            "name": "statuses",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Comma-separated statuses."
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "ISO time with zone or civil date YYYY-MM-DD in timezone."
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "End-exclusive; civil date includes the full selected day."
            }
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "now",
                "past",
                "planned",
                "year",
                "undated"
              ]
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1970,
              "maximum": 2199
            }
          },
          {
            "name": "timezone",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "Europe/Warsaw",
              "description": "IANA timezone."
            }
          },
          {
            "name": "topics",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Comma-separated topics, any match."
            }
          },
          {
            "name": "area",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "JSON: {kind:radius,lat,lng,radius_km:0.1..100}; {kind:bbox,bbox:[west,south,east,north]}; {kind:polygon,vertices:[[lng,lat],...]}. Same constraints as incident areas."
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 20000
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "soonest",
                "newest",
                "updated",
                "distance"
              ]
            }
          }
        ]
      }
    },
    "/api/events/{id}": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_events_id",
        "summary": "Szczegóły wydarzenia",
        "description": "Current ACL; writes require version and request_id. A private edit does not republish the public projection.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "patch": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "patch_api_events_id",
        "summary": "Edytuj wydarzenie",
        "description": "Current ACL; writes require version and request_id. A private edit does not republish the public projection.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventUpdateV6"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "delete_api_events_id",
        "summary": "Usuń wydarzenie",
        "description": "Current ACL; writes require version and request_id. A private edit does not republish the public projection.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VersionedRequestV6"
              }
            }
          }
        }
      }
    },
    "/api/v1/events/{id}": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_v1_events_id",
        "summary": "Szczegóły wydarzenia",
        "description": "Current ACL; writes require version and request_id. A private edit does not republish the public projection.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "x-required-scopes": [
          "events:read"
        ]
      },
      "patch": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "patch_api_v1_events_id",
        "summary": "Edytuj wydarzenie",
        "description": "Current ACL; writes require version and request_id. A private edit does not republish the public projection.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "x-required-scopes": [
          "events:write"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventUpdateV6"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "delete_api_v1_events_id",
        "summary": "Usuń wydarzenie",
        "description": "Current ACL; writes require version and request_id. A private edit does not republish the public projection.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "x-required-scopes": [
          "events:write"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VersionedRequestV6"
              }
            }
          }
        }
      }
    },
    "/api/events/state": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_events_state",
        "summary": "Kontekst wydarzeń",
        "description": "",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/api/events/interests": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_events_interests",
        "summary": "Moje zainteresowania",
        "description": "",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "put": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "put_api_events_interests",
        "summary": "Zapisz zainteresowania",
        "description": "Per-user per-workspace; optimistic version control.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventInterestsV6"
              }
            }
          }
        }
      }
    },
    "/api/events/{id}/history": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_events_id_history",
        "summary": "Historia wydarzenia",
        "description": "",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/events/photos": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_events_photos",
        "summary": "Dostępne trwałe fotografie",
        "description": "",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "point_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/events/{id}/publication": {
      "post": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "post_api_events_id_publication",
        "summary": "Opublikuj lub wycofaj projekcję",
        "description": "Session owner only; no Bearer publication endpoint.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventPublicationV6"
              }
            }
          }
        }
      }
    },
    "/api/events/import/preview": {
      "post": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "post_api_events_import_preview",
        "summary": "Przejrzyj import",
        "description": "Bounded content import. No arbitrary remote fetch or entity loading.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventImportPreviewV6"
              }
            }
          }
        }
      }
    },
    "/api/events/import/commit": {
      "post": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "post_api_events_import_commit",
        "summary": "Zapisz wybrane propozycje",
        "description": "No automatic public publication.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventImportCommitV6"
              }
            }
          }
        }
      }
    },
    "/api/events/options": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_events_options",
        "summary": "Publiczne rodzaje i statusy",
        "description": "",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/api/events/public/{id}": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_events_public_id",
        "summary": "Publiczna karta wydarzenia",
        "description": "Current publication gate includes active source owner and point. No special access for crawlers.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "head_api_events_public_id",
        "summary": "Publiczna karta wydarzenia",
        "description": "Current publication gate includes active source owner and point. No special access for crawlers.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/events/card.png": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_events_card_png",
        "summary": "Publiczna karta PNG1200×630",
        "description": "Public projection only; no-store. External social caches may retain earlier public copies.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "head": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "head_api_events_card_png",
        "summary": "Publiczna karta PNG1200×630",
        "description": "Public projection only; no-store. External social caches may retain earlier public copies.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/api/events/public/{id}/card.png": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_events_public_id_card_png",
        "summary": "Publiczna karta PNG1200×630",
        "description": "Public projection only; no-store. External social caches may retain earlier public copies.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "head_api_events_public_id_card_png",
        "summary": "Publiczna karta PNG1200×630",
        "description": "Public projection only; no-store. External social caches may retain earlier public copies.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/events/public/{id}/photos/{media_id}": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_events_public_id_photos_media_id",
        "summary": "Jawnie opublikowana fotografia",
        "description": "Sanitized preview of a durable allowed source, current publication gate.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "media_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "head_api_events_public_id_photos_media_id",
        "summary": "Jawnie opublikowana fotografia",
        "description": "Sanitized preview of a durable allowed source, current publication gate.",
        "security": [],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "media_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/operations/shares/{id}": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_operations_shares_id",
        "summary": "Szczegóły zakresu bez otwarcia linku",
        "description": "Current owner/task rights; GET/HEAD does not consume the share view counter and returns no bearer token.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "head_api_operations_shares_id",
        "summary": "Szczegóły zakresu bez otwarcia linku",
        "description": "Current owner/task rights; GET/HEAD does not consume the share view counter and returns no bearer token.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/operations/tasks/{id}": {
      "get": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "get_api_operations_tasks_id",
        "summary": "Szczegóły zadania",
        "description": "Current owner/task rights; GET/HEAD does not consume the share view counter and returns no bearer token.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "head": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "head_api_operations_tasks_id",
        "summary": "Szczegóły zadania",
        "description": "Current owner/task rights; GET/HEAD does not consume the share view counter and returns no bearer token.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/operations/shares/{id}/link": {
      "post": {
        "tags": [
          "Telemonit 0.6"
        ],
        "operationId": "post_api_operations_shares_id_link",
        "summary": "Wydaj nowy link zakresu",
        "description": "Owner only. Explicit token rotation; previous URL stops working. Counters, ACL and times do not reset.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Validation"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "419": {
            "description": "Nieprawidłowy token CSRF."
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareRotateLinkV6"
              }
            }
          }
        }
      }
    },
    "/api/import/points/state": {
      "get": {
        "tags": [
          "Telemonit 0.7 imports"
        ],
        "operationId": "get_api_import_points_state",
        "summary": "Dostępne organizacje i limity importu",
        "description": "Fresh session context; only organizations where the user may create points. Returns targets, plans, remaining capacity, formats and limits: 3 active previews per author/target, 5 per author globally, 6 MiB normalized preview, 24-hour replay TTL and the latest50 receipts. No Bearer import endpoint.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful private import operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Session or membership unavailable."
          },
          "403": {
            "description": "Current target object-edit permission required."
          },
          "404": {
            "description": "Target or creator-bound preview unavailable."
          },
          "409": {
            "description": "Active-workspace mismatch, plan capacity, duplicate policy or changed replay."
          },
          "410": {
            "description": "The 30-minute preview or 24-hour committed receipt has expired."
          },
          "413": {
            "description": "Compressed/expanded file exceeds 5 MiB, normalized preview exceeds 6 MiB, or compact result exceeds 512 KiB."
          },
          "422": {
            "description": "Unsupported schema, invalid fields, coordinates, dates, selection or missing confirmation."
          },
          "429": {
            "description": "Import rate limit exceeded."
          }
        }
      }
    },
    "/api/import/points/preview": {
      "post": {
        "tags": [
          "Telemonit 0.7 imports"
        ],
        "operationId": "post_api_import_points_preview",
        "summary": "Przejrzyj plik GPS i wybierz organizację",
        "description": "Stores a private creator/target-bound preview for 30 minutes; does not create objects. At the staging limit it replaces the oldest uncommitted preview belonging to the same author. A preview may exceed available point capacity so the user can choose a subset. Invalid rows are excluded with diagnostics. Numbers use shared PHP Unicode case folding in both database drivers. No remote fetch or external AI call.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Successful private import operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PointImportPreviewV7"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Session or membership unavailable."
          },
          "403": {
            "description": "Current target object-edit permission required."
          },
          "404": {
            "description": "Target or creator-bound preview unavailable."
          },
          "409": {
            "description": "Active-workspace mismatch, plan capacity, duplicate policy or changed replay."
          },
          "410": {
            "description": "The 30-minute preview or 24-hour committed receipt has expired."
          },
          "413": {
            "description": "Compressed/expanded file exceeds 5 MiB, normalized preview exceeds 6 MiB, or compact result exceeds 512 KiB."
          },
          "422": {
            "description": "Unsupported schema, invalid fields, coordinates, dates, selection or missing confirmation."
          },
          "429": {
            "description": "Import rate limit exceeded."
          },
          "419": {
            "description": "Missing or invalid CSRF token."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The current active session workspace, which may intentionally differ from target_workspace_id after explicit authorized selection."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/PointImportPreviewInputV7"
              }
            }
          }
        }
      }
    },
    "/api/import/points/commit": {
      "post": {
        "tags": [
          "Telemonit 0.7 imports"
        ],
        "operationId": "post_api_import_points_commit",
        "summary": "Zapisz jawnie wybrane punkty",
        "description": "Transactional organization-only import with current membership, edit permission, Unicode duplicate numbers and plan checks. No publication or silent overwrite. Fresh target context is independent of the active header gate. Immediately discards all source rows after commit, including no-op duplicate skips. Compact receipt is replayable for at most24 hours and among the latest50 author receipts; after retention old tokens fail410/404 and never recreate points.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "201": {
            "description": "Successful private import operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PointImportResultV7"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Session or membership unavailable."
          },
          "403": {
            "description": "Current target object-edit permission required."
          },
          "404": {
            "description": "Target or creator-bound preview unavailable."
          },
          "409": {
            "description": "Active-workspace mismatch, plan capacity, duplicate policy or changed replay."
          },
          "410": {
            "description": "The 30-minute preview or 24-hour committed receipt has expired."
          },
          "413": {
            "description": "Compressed/expanded file exceeds 5 MiB, normalized preview exceeds 6 MiB, or compact result exceeds 512 KiB."
          },
          "422": {
            "description": "Unsupported schema, invalid fields, coordinates, dates, selection or missing confirmation."
          },
          "429": {
            "description": "Import rate limit exceeded."
          },
          "419": {
            "description": "Missing or invalid CSRF token."
          }
        },
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The current active session workspace, which may intentionally differ from target_workspace_id after explicit authorized selection."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PointImportCommitInputV7"
              }
            }
          }
        }
      }
    },
    "/api/objects/export-preview": {
      "post": {
        "tags": [
          "Objects"
        ],
        "operationId": "post_api_objects_export_preview",
        "summary": "Podgląd pliku z bieżącego wyniku i wyboru obiektów",
        "description": "Fresh session membership and point ACL are checked in one transaction. Uses the same MapService filters, ordering and the 5000 record window as the map. Exports at most 1000 records and 5 MiB without silent truncation. Omitted ids means all filtered records; ids:[] means none. An unreadable selected ID returns 404; a readable ID outside the current filters returns 409. Formats: GeoJSON for object roundtrip; readable telemonit.objects.v1 JSON; UTF-8 CSV with formula-like text prefixed by apostrophe and an explicit warning; GPX 1.1 waypoints with source time and metadata extensions. No vendor gps_backup export. The current GPX importer does not restore custom extensions. No media, chats, issue bodies, vault credentials or unrelated tables are queried. The operation writes no export artifact or publication. Request a fresh preview when downloading to recheck permissions. Previously downloaded local files cannot be revoked by this endpoint.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Expected active session organization; there is no separate target organization field."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ObjectExportInputV8"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Private no-store preview.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ObjectExportResultV8"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Session or membership unavailable."
          },
          "404": {
            "description": "At least one selected point is missing or unreadable."
          },
          "405": {
            "description": "Use POST; GET and HEAD do not generate exports."
          },
          "409": {
            "description": "Active workspace changed or a selected point no longer matches the filtered window."
          },
          "413": {
            "description": "More than 1000 points or more than 5 MiB output; narrow filters or selection."
          },
          "419": {
            "description": "Invalid CSRF token."
          },
          "422": {
            "description": "Unsupported fields, format, filters, IDs, or invalid XML characters for GPX."
          },
          "429": {
            "description": "Preview rate limit exceeded."
          },
          "503": {
            "description": "Required PHP DOM extension or temporary stream unavailable."
          }
        }
      }
    },
    "/connect/authorize": {
      "get": {
        "tags": [
          "Klienci domenowi"
        ],
        "operationId": "showThinClientConsent",
        "summary": "Wyświetl zgodę na połączenie zarejestrowanego klienta",
        "description": "Własny przepływ first-party Telemonit, nie pełny endpoint OAuth/OIDC. Żądanie wymaga dokładnie pięciu pojedynczych parametrów, bez response_type/scope/nonce i bez powtórzeń lub notacji tablicowej. Najpierw następuje walidacja z lokalnym rejestrem. Niezalogowany użytkownik otrzymuje 303 do /login?next=..., a zalogowany stronę HTML z wyborem własnej organizacji i podzbioru scope. GET zapisuje żądanie zgody w sesji na 300 sekund; nie wydaje tokenu ani kodu. HEAD przeprowadza walidację/kontrolę sesji, lecz nie tworzy formularza w sesji. PKCE tylko S256. Dane dostępowe klient pozostawia po stronie BFF. Odpowiedź no-store, noindex i Referrer-Policy:no-referrer.\n\nV0.10 SaaS: Obok statycznego rejestru są klienci saas-<domain_id>. Muszą mieć aktywną subskrypcję, włączony portal/moduły, bieżącą domenę z DNS/TLS i członkostwo użytkownika w organizacji portalu. Delegacja jest przypisana do tej jednej organizacji i rewizji autoryzacji, sprawdzanych również przy użyciu klucza. Brak fallbacku do starego klienta dla zarezerwowanej domeny SaaS. Core /login może najpierw skierować do osobnego centralnego konta. Nadal nie jest to pełny OAuth/OIDC.",
        "security": [
          {},
          {
            "SessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "client_id",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ThinClientIdV9"
            },
            "description": "Identyfikator z rejestru instalacji, np. incydent; nie dowolna nazwa domeny.",
            "style": "form",
            "explode": false
          },
          {
            "name": "redirect_uri",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ThinClientRedirectV9"
            },
            "description": "Dokładny callback wybranego klienta.",
            "style": "form",
            "explode": false
          },
          {
            "name": "state",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ThinClientStateV9"
            },
            "description": "Stan lokalnej sesji BFF, zwracany w zatwierdzonym callbacku.",
            "style": "form",
            "explode": false
          },
          {
            "name": "code_challenge",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{43}$",
              "minLength": 43,
              "maxLength": 43
            },
            "description": "base64url(SHA-256(code_verifier)), bez dopełnienia =.",
            "style": "form",
            "explode": false
          },
          {
            "name": "code_challenge_method",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "const": "S256"
            },
            "description": "Jedyna obsługiwana metoda.",
            "style": "form",
            "explode": false
          }
        ],
        "x-rate-limit": {
          "requests": 30,
          "window_seconds": 600,
          "bucket": "client-authorize:user_id + client IP",
          "applies_to": "authenticated GET"
        },
        "responses": {
          "400": {
            "description": "Nieprawidłowy lub nieznany klient, callback, state/PKCE, powtórzone albo dodatkowe parametry. Brak przekierowania do niezaufanego adresu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Bieżące konto nie może użyć wybranego kontekstu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Mechanizm klientów wyłączony w konfiguracji THIN_CLIENTS_ENABLED.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Nieobsługiwana metoda; Allow: GET, HEAD, POST.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczony limit rozpoczęć lub decyzji formularza dla użytkownika.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Wewnętrzny błąd instalacji.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnego lokalnego rejestru klientów; bez kontynuowania połączenia.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "200": {
            "description": "Formularz zgody powiązany z aktualnym użytkownikiem i aktywną organizacją.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "303": {
            "description": "Prawidłowe żądanie klienta wymaga zalogowania w core.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^/login\\?next="
                },
                "description": "Względny adres logowania z zakodowanym powrotem do tego zweryfikowanego żądania."
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Klienci domenowi"
        ],
        "operationId": "decideThinClientConsent",
        "summary": "Zatwierdź albo odrzuć wcześniej wyświetlone połączenie",
        "description": "Natywny formularz HTML, nie JSON. Zalogowana sesja core oraz poprawny CSRF w _csrf albo X-CSRF-Token są obowiązkowe. Nie wymaga X-Telemonit-Workspace; expected_workspace sprawdza kontekst wyświetlonego formularza. Callback, state i wyzwanie PKCE pochodzą wyłącznie z zapisu GET w sesji. Zgoda zatwierdza niepusty podzbiór zarejestrowanych scope i jedną własną organizację, bez przełączania aktywnej sesji. Kod tmc_<64hex> jest jednorazowy i ważny 60 sekund. Odmowa nie wydaje kodu. Decyzja zużywa żądanie formularza; ponowienie daje 409. Nie są obsługiwane refresh tokeny, ID Token ani ogólny serwer OAuth/OIDC. Błędy są stronami HTML także dla Accept:application/json.\n\nV0.10 SaaS: Obok statycznego rejestru są klienci saas-<domain_id>. Muszą mieć aktywną subskrypcję, włączony portal/moduły, bieżącą domenę z DNS/TLS i członkostwo użytkownika w organizacji portalu. Delegacja jest przypisana do tej jednej organizacji i rewizji autoryzacji, sprawdzanych również przy użyciu klucza. Brak fallbacku do starego klienta dla zarezerwowanej domeny SaaS. Core /login może najpierw skierować do osobnego centralnego konta. Nadal nie jest to pełny OAuth/OIDC.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "Alternatywa dla _csrf w body. Jedna z tych dwóch postaci jest obowiązkowa; jeżeli nagłówek występuje, musi być poprawny."
          }
        ],
        "x-csrf-protection": {
          "required": true,
          "alternatives": [
            "body._csrf",
            "header.X-CSRF-Token"
          ]
        },
        "requestBody": {
          "required": true,
          "description": "Content-Length większe niż 16384 bajty jest odrzucane. Zwykły formularz zwrócony przez GET spełnia ten limit.",
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/ThinClientConsentFormV9"
              },
              "encoding": {
                "scopes[]": {
                  "style": "form",
                  "explode": true
                }
              }
            }
          }
        },
        "x-rate-limit": {
          "requests": 30,
          "window_seconds": 600,
          "bucket": "client-consent:user_id + client IP"
        },
        "responses": {
          "400": {
            "description": "Nieprawidłowy lub nieznany klient, callback, state/PKCE, powtórzone albo dodatkowe parametry. Brak przekierowania do niezaufanego adresu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Bieżące konto nie może użyć wybranego kontekstu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Mechanizm klientów wyłączony w konfiguracji THIN_CLIENTS_ENABLED.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Nieobsługiwana metoda; Allow: GET, HEAD, POST.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczony limit rozpoczęć lub decyzji formularza dla użytkownika.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Wewnętrzny błąd instalacji.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnego lokalnego rejestru klientów; bez kontynuowania połączenia.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "303": {
            "description": "Powrót wyłącznie pod dokładny zatwierdzony callback. Zgoda: ?code=tmc_<64hex>&state=...; odmowa: ?error=access_denied&state=.... Surowy token Bearer nigdy nie trafia do tego przekierowania.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string",
                  "format": "uri"
                },
                "description": "Zarejestrowany callback z kodem lub odmową i stanem. Nie zapisuj query do logów."
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "401": {
            "description": "Brak aktywnej zalogowanej sesji albo członkostwa wybranej organizacji.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Formularz wygasł/zużyty, zmienił się użytkownik/aktywna organizacja albo konfiguracja klienta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Zbyt duży formularz.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "description": "Wymagane application/x-www-form-urlencoded.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "419": {
            "description": "Brak poprawnego CSRF aktualnej sesji.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "description": "Pusty, powtórzony lub niedozwolony zakres zgody.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/clients/token": {
      "post": {
        "tags": [
          "Klienci domenowi"
        ],
        "operationId": "exchangeThinClientCode",
        "summary": "Serwerowa wymiana jednorazowego kodu z PKCE na token klienta",
        "description": "Własny protokół first-party Telemonit. Brak wymagania cookie, CSRF i Authorization; dowodem jest jednorazowy kod wraz z właściwym PKCE, klientem i dokładnym callbackiem. Wyłącznie JSON z czterema opisanymi polami. Kod jest konsumowany atomowo, maksymalnie raz, przed upływem 60 sekund; aktualne członkostwo i konfiguracja klienta są sprawdzane ponownie. Zmiana scope/callbacku/TTL w rejestrze od czasu zgody unieważnia wymianę. Utworzony token ma 300–28800 sekund ważności według wpisu klienta, zachowuje scope użytkownika i liczy się do maksimum 10 aktywnych kluczy na użytkownika. Odpowiedź przechowuje tylko serwerowy BFF. Brak client_secret, grant_type, refresh tokenów i ID Token; nie reklamuj tego endpointu jako pełnego OAuth/OIDC. No-store, Pragma:no-cache i Referrer-Policy:no-referrer.\n\nV0.10 SaaS: Obok statycznego rejestru są klienci saas-<domain_id>. Muszą mieć aktywną subskrypcję, włączony portal/moduły, bieżącą domenę z DNS/TLS i członkostwo użytkownika w organizacji portalu. Delegacja jest przypisana do tej jednej organizacji i rewizji autoryzacji, sprawdzanych również przy użyciu klucza. Brak fallbacku do starego klienta dla zarezerwowanej domeny SaaS. Core /login może najpierw skierować do osobnego centralnego konta. Nadal nie jest to pełny OAuth/OIDC.",
        "security": [],
        "x-authentication": "single-use code + PKCE S256 + exact registered client/redirect binding",
        "requestBody": {
          "required": true,
          "description": "Content-Length powyżej 16384 bajtów jest odrzucane; standardowy parser JSON ma ponadto limit 1 MiB i głębokość 32.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ThinClientExchangeInputV9"
              }
            }
          }
        },
        "x-rate-limit": {
          "requests": 60,
          "window_seconds": 60,
          "bucket": "client-token-exchange + client IP"
        },
        "responses": {
          "200": {
            "description": "Token i minimalny kontekst zatwierdzonego połączenia.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ThinClientTokenResultV9"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Nieznany klient, zły/powtórzony/wygasły kod, błędny PKCE/callback lub zmieniony rejestr; nie kontynuuj z innym klientem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "invalid_client",
              "invalid_grant",
              "invalid_json"
            ]
          },
          "401": {
            "description": "Użytkownik nie ma już członkostwa w organizacji zgody.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "unauthorized"
            ]
          },
          "403": {
            "description": "Konto nie może korzystać z tej instalacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "demo_production"
            ]
          },
          "404": {
            "description": "Łączenie klientów jest wyłączone.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "clients_disabled"
            ]
          },
          "405": {
            "description": "Wymagana metoda POST; Allow: POST.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "method"
            ]
          },
          "409": {
            "description": "Użytkownik ma już maksymalną liczbę aktywnych kluczy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "key_limit"
            ]
          },
          "413": {
            "description": "Zbyt duże żądanie.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "body_size"
            ]
          },
          "415": {
            "description": "Wyślij application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "content_type"
            ]
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "description": "Nieprawidłowy lub niedostępny rejestr aplikacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "client_registry"
            ]
          }
        }
      }
    },
    "/api/v1/me": {
      "get": {
        "tags": [
          "Klienci domenowi"
        ],
        "operationId": "getApiKeyIdentity",
        "summary": "Aktualny użytkownik, organizacja i scope bieżącego klucza",
        "description": "Obsługuje ważny zwykły klucz integracyjny albo delegowany klucz klienta. Nie wymaga dodatkowego scope, cookie, CSRF ani X-Telemonit-Workspace. Weryfikuje ważność/cofnięcie, członkostwo i bieżące role; delegacja sprawdza również aktualny rejestr klienta. Zwraca wyłącznie user{id,name}, workspace{id,name}, permissions, scopes, expires_at — bez adresu e-mail, administratora platformy, tokenu i hashy. expires_at zwykłego klucza może przekraczać osiem godzin; limit ośmiu godzin dotyczy delegacji.\n\nV0.10 SaaS: Obok statycznego rejestru są klienci saas-<domain_id>. Muszą mieć aktywną subskrypcję, włączony portal/moduły, bieżącą domenę z DNS/TLS i członkostwo użytkownika w organizacji portalu. Delegacja jest przypisana do tej jednej organizacji i rewizji autoryzacji, sprawdzanych również przy użyciu klucza. Brak fallbacku do starego klienta dla zarezerwowanej domeny SaaS. Core /login może najpierw skierować do osobnego centralnego konta. Nadal nie jest to pełny OAuth/OIDC.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "hash(Authorization) + client IP"
        },
        "responses": {
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "405": {
            "description": "Nieobsługiwana metoda.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "method"
            ]
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "description": "Konfiguracja rejestru klienta delegowanego wymaga sprawdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "client_registry"
            ]
          },
          "200": {
            "description": "Świeżo sprawdzona tożsamość i zakres aktualnego klucza.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ThinClientIdentityV9"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/token/revoke": {
      "post": {
        "tags": [
          "Klienci domenowi"
        ],
        "operationId": "revokeCurrentApiKey",
        "summary": "Cofnij wyłącznie klucz Bearer tego żądania",
        "description": "Działa dla zwykłego i delegowanego klucza. Wymaga nadal ważnego klucza i członkostwa, ale nie wymaga dodatkowego scope, sesji, CSRF ani nagłówka organizacji. Wyślij {}; brak parametru wybierającego inny token. Sukces unieważnia kolejne żądania tego klucza i zapisuje audyt bez sekretu. Nie jest globalnym wylogowaniem ze wszystkich klientów. Drugie żądanie tym samym cofniętym kluczem daje 403 zamiast kolejnego sukcesu; klient usuwa lokalną sesję niezależnie od jej pozostałego czasu.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyTokenRevokeInputV9"
              },
              "example": {}
            }
          }
        },
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "hash(Authorization) + client IP"
        },
        "responses": {
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "405": {
            "description": "Nieobsługiwana metoda.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "method"
            ]
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "description": "Konfiguracja rejestru klienta delegowanego wymaga sprawdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "client_registry"
            ]
          },
          "200": {
            "description": "Bieżący klucz został cofnięty.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TokenRevokedV9"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Nieprawidłowy JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "invalid_json"
            ]
          },
          "413": {
            "description": "Zbyt duży JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "body_size"
            ]
          },
          "415": {
            "description": "Wymagane application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "content_type"
            ]
          },
          "422": {
            "description": "Body musi być puste; nie wolno wskazać innego klucza.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "revoke_body"
            ]
          }
        }
      }
    },
    "/api/v1/points/{id}": {
      "get": {
        "tags": [
          "Punkty"
        ],
        "operationId": "getPointDetailV9",
        "summary": "Szczegół prywatnego punktu wraz z notatkami, usterkami i historią",
        "description": "Wymaga points:read oraz aktualnego dostępu do punktu w organizacji przypisanej do klucza. Zwykły i delegowany Bearer mają ten sam ACL; cookie i nagłówek organizacji nie rozszerzają praw. Zwraca data:{object,notes,issues,history}, a nie sam rekord object. Trzy listy są ograniczone niezależnie do 200 ostatnich pozycji. Zarchiwizowany punkt może być czytelny, jeżeli nadal istnieje i użytkownik ma dostęp. Prywatne parametry, notatki i audyt nie są projekcją publiczną. Endpoint nie pobiera plików ani nie nadaje dostępu do hasła, urządzenia lub kamery. Tylko GET; HEAD i metody zapisu są odrzucane.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "points:read"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator rekordu; sam identyfikator nie przyznaje prawa dostępu."
          }
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        },
        "responses": {
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "405": {
            "description": "Nieobsługiwana metoda.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "method"
            ]
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "description": "Konfiguracja rejestru klienta delegowanego wymaga sprawdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "client_registry"
            ]
          },
          "200": {
            "description": "Dostępny punkt i ograniczone listy związanych danych.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PointDetailV9"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Punkt nie istnieje w organizacji klucza albo nie jest udostępniony tej osobie.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "not_found"
            ]
          }
        }
      }
    },
    "/api/v1/incidents/{id}": {
      "get": {
        "tags": [
          "Incydenty"
        ],
        "operationId": "getIncidentDetailV9",
        "summary": "Szczegół prywatnego incydentu według aktualnego ACL",
        "description": "Wymaga incidents:read. Core ponownie sprawdza członkostwo, organizację klucza, dostęp do punktu i audiencję org/team/user. Zwraca bezpośredni DTO w data, bez dodatkowego pola incident. Publikacja publiczna nie jest wymagana i nie zastępuje prywatnego ACL. Usunięty albo niedostępny incydent daje 404. publication jest snapshotem tylko dla właściciela organizacji; inne osoby dostają null. Referencje media zawierają sesyjne /api/media/{id}; nie są samodzielnym Bearer URL do pliku. can_edit/can_publish opisuje uprawnienia domenowe, nie obiecuje tokenowych tras edycji lub publikacji. Ta ścieżka obsługuje wyłącznie GET; /api/v1/incidents/timeline pozostaje odrębną istniejącą trasą.",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator rekordu; sam identyfikator nie przyznaje prawa dostępu."
          }
        ],
        "x-rate-limit": {
          "requests": 120,
          "window_seconds": 60,
          "bucket": "api_key_id + client IP"
        },
        "responses": {
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "405": {
            "description": "Nieobsługiwana metoda.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "method"
            ]
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "description": "Konfiguracja rejestru klienta delegowanego wymaga sprawdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "client_registry"
            ]
          },
          "200": {
            "description": "Prywatny szczegół dostępnego incydentu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/IncidentDetailV9"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Incydent nie istnieje, został usunięty albo jest poza aktualnymi uprawnieniami.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "incident_not_found"
            ]
          }
        }
      }
    },
    "/api/saas/catalog": {
      "get": {
        "operationId": "saasCatalogV10",
        "tags": [
          "SaaS — publiczne"
        ],
        "summary": "Katalog szablonów i planu SaaS",
        "description": "Brak parametrów query; dowolny parametr daje 422. Nie inicjuje abonamentu ani płatności.",
        "security": [],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasCatalogV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "saasCatalogV10Head",
        "tags": [
          "SaaS — publiczne"
        ],
        "summary": "Katalog szablonów i planu SaaS — HEAD",
        "description": "Brak parametrów query; dowolny parametr daje 422. Nie inicjuje abonamentu ani płatności.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.",
        "security": [],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji."
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy."
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość."
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji."
          }
        }
      }
    },
    "/api/saas/portal": {
      "get": {
        "operationId": "saasRuntimeV10",
        "tags": [
          "SaaS — publiczne"
        ],
        "summary": "Konfiguracja aktywnego hosta portalu",
        "description": "Jedyny parametr host wskazuje zarejestrowaną domenę. Nie służy jako adres pobieranego URL; brak dowolnego proxy. Nieaktywny/nieopłacony portal, wyłączona domena lub brak potwierdzonego TLS: 404. Maksymalnie 1200 prób/60 s według zaufanego mechanizmu core.",
        "security": [],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasRuntimeV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "host",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 253,
              "description": "Sama domena ASCII/Punycode; bez protokołu, portu, ścieżki, wildcardów lub adresu IP. Serwer normalizuje wielkość liter. *.test tylko w trybie local/development/testing."
            },
            "description": ""
          }
        ]
      },
      "head": {
        "operationId": "saasRuntimeV10Head",
        "tags": [
          "SaaS — publiczne"
        ],
        "summary": "Konfiguracja aktywnego hosta portalu — HEAD",
        "description": "Jedyny parametr host wskazuje zarejestrowaną domenę. Nie służy jako adres pobieranego URL; brak dowolnego proxy. Nieaktywny/nieopłacony portal, wyłączona domena lub brak potwierdzonego TLS: 404. Maksymalnie 1200 prób/60 s według zaufanego mechanizmu core.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.",
        "security": [],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji."
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy."
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość."
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji."
          }
        },
        "parameters": [
          {
            "name": "host",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 253,
              "description": "Sama domena ASCII/Punycode; bez protokołu, portu, ścieżki, wildcardów lub adresu IP. Serwer normalizuje wielkość liter. *.test tylko w trybie local/development/testing."
            },
            "description": ""
          }
        ]
      }
    },
    "/api/saas/portals/{portal_id}/records": {
      "get": {
        "operationId": "saasPublicRecordsV10",
        "tags": [
          "SaaS — publiczne"
        ],
        "summary": "Publiczne rekordy jednej organizacji portalu",
        "description": "Wybierz offset/limit ALBO page/per_page; ich łączenie daje 422. Filtr tenant/public i aktualna publikacja obowiązują przed odpowiedzią. Maksymalnie 1000 kandydatów po ograniczeniach SQL; więcej: 422 saas_public_limit i konieczność zawężenia. Limit strony 100. Sortowanie po odległości i id, bez origin po id. Brak publicznych zadań i obserwacji kamer. Portal sprawdzany ponownie przed odpowiedzią. 300 prób/60 s.",
        "security": [],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasPublicRecordsV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator zasobu; sam identyfikator nie nadaje uprawnień."
          },
          {
            "name": "resource",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "incidents",
                "events",
                "points",
                "infrastructure",
                "providers",
                "jobs"
              ]
            },
            "description": "Wymagany, włączony moduł publiczny tego portalu."
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120
            },
            "description": "Wyłącznie publiczny tekst: tytuł/opis, dla punktów również city/approximate_location; bez prywatnych pól."
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 50
            },
            "description": "Rodzaj incydentu/wydarzenia/infrastruktury, kategoria zlecenia lub wykonawcy. Punkty nie obsługują filtra typu."
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 50
            },
            "description": "Publiczny status; dla providers tylko available. Punkty nie obsługują tego filtra."
          },
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "YYYY-MM-DD (00:00:00Z) albo ISO8601 ze strefą, bez ułamka sekund. Tylko incidents/events/jobs."
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "YYYY-MM-DD (23:59:59Z) albo ISO8601 ze strefą. Porównanie z początkiem zdarzenia/terminu, nie pełny overlap przedziałów."
          },
          {
            "name": "lat",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Latitude"
            },
            "description": "Gdy występuje lat/lng/radius_km, wymagane oba lat i lng."
          },
          {
            "name": "lng",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Longitude"
            },
            "description": ""
          },
          {
            "name": "radius_km",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 100,
              "default": 10
            },
            "description": "Odległość po prostej wyłącznie od publicznych współrzędnych. Punkty bez GPS nie trafiają do wyniku przestrzennego."
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9900,
              "default": 0
            },
            "description": ""
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 30
            },
            "description": ""
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 1
            },
            "description": ""
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 30
            },
            "description": ""
          }
        ]
      },
      "head": {
        "operationId": "saasPublicRecordsV10Head",
        "tags": [
          "SaaS — publiczne"
        ],
        "summary": "Publiczne rekordy jednej organizacji portalu — HEAD",
        "description": "Wybierz offset/limit ALBO page/per_page; ich łączenie daje 422. Filtr tenant/public i aktualna publikacja obowiązują przed odpowiedzią. Maksymalnie 1000 kandydatów po ograniczeniach SQL; więcej: 422 saas_public_limit i konieczność zawężenia. Limit strony 100. Sortowanie po odległości i id, bez origin po id. Brak publicznych zadań i obserwacji kamer. Portal sprawdzany ponownie przed odpowiedzią. 300 prób/60 s.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.",
        "security": [],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji."
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy."
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość."
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji."
          }
        },
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator zasobu; sam identyfikator nie nadaje uprawnień."
          },
          {
            "name": "resource",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "incidents",
                "events",
                "points",
                "infrastructure",
                "providers",
                "jobs"
              ]
            },
            "description": "Wymagany, włączony moduł publiczny tego portalu."
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120
            },
            "description": "Wyłącznie publiczny tekst: tytuł/opis, dla punktów również city/approximate_location; bez prywatnych pól."
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 50
            },
            "description": "Rodzaj incydentu/wydarzenia/infrastruktury, kategoria zlecenia lub wykonawcy. Punkty nie obsługują filtra typu."
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 50
            },
            "description": "Publiczny status; dla providers tylko available. Punkty nie obsługują tego filtra."
          },
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "YYYY-MM-DD (00:00:00Z) albo ISO8601 ze strefą, bez ułamka sekund. Tylko incidents/events/jobs."
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "YYYY-MM-DD (23:59:59Z) albo ISO8601 ze strefą. Porównanie z początkiem zdarzenia/terminu, nie pełny overlap przedziałów."
          },
          {
            "name": "lat",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Latitude"
            },
            "description": "Gdy występuje lat/lng/radius_km, wymagane oba lat i lng."
          },
          {
            "name": "lng",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Longitude"
            },
            "description": ""
          },
          {
            "name": "radius_km",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 100,
              "default": 10
            },
            "description": "Odległość po prostej wyłącznie od publicznych współrzędnych. Punkty bez GPS nie trafiają do wyniku przestrzennego."
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9900,
              "default": 0
            },
            "description": ""
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 30
            },
            "description": ""
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 1
            },
            "description": ""
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 30
            },
            "description": ""
          }
        ]
      }
    },
    "/api/saas/dashboard": {
      "get": {
        "operationId": "saasDashboardV10",
        "tags": [
          "SaaS — właściciel"
        ],
        "summary": "Panel własnych portali i zakupów",
        "description": "Bieżąca organizacja sesji, do 50 zakupów i ostatnich operacji audytu. Kod DNS i partnerski nie są odtwarzane.\n\nWymagana aktualna sesja core i właściciel bieżącej organizacji. Bearer nie zastępuje sesji ani roli.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasDashboardV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak wymaganej roli.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-required-role": "workspace_owner"
      },
      "head": {
        "operationId": "saasDashboardV10Head",
        "tags": [
          "SaaS — właściciel"
        ],
        "summary": "Panel własnych portali i zakupów — HEAD",
        "description": "Bieżąca organizacja sesji, do 50 zakupów i ostatnich operacji audytu. Kod DNS i partnerski nie są odtwarzane.\n\nWymagana aktualna sesja core i właściciel bieżącej organizacji. Bearer nie zastępuje sesji ani roli.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji."
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy."
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość."
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji."
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa."
          },
          "403": {
            "description": "Brak wymaganej roli."
          }
        },
        "x-required-role": "workspace_owner"
      }
    },
    "/api/saas/portals": {
      "post": {
        "operationId": "saasCreatePortalV10",
        "tags": [
          "SaaS — właściciel"
        ],
        "summary": "Przygotuj portal i subdomenę",
        "description": "Tworzy portal oraz zarządzaną domenę w stanie verified. Nie opłaca abonamentu i nie potwierdza gotowego TLS/routingu. request_id jest idempotentny w organizacji.\n\nWspólny limit zapisów: 60 prób/600 s na użytkownika.\n\nWymagana aktualna sesja core i właściciel bieżącej organizacji. Bearer nie zastępuje sesji ani roli.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "201": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasPortalV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak wymaganej roli.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Zmiana organizacji, wersji, ponowne request_id z inną treścią lub konflikt stanu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "CSRF własnej sesji jest nieobecny lub nieaktualny.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Limit JSON 1 MiB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Wymagany application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-required-role": "workspace_owner",
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Bieżąca organizacja sesji; wymagana także dla czynności administratora. Brak lub zmiana: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaasPortalCreateV10"
              }
            }
          }
        }
      }
    },
    "/api/saas/portals/{id}": {
      "patch": {
        "operationId": "saasUpdatePortalV10",
        "tags": [
          "SaaS — właściciel"
        ],
        "summary": "Zmień ustawienia portalu",
        "description": "Wersja optymistyczna; brak zmiany szablonu lub organizacji. Wyłączenie/moduły cofają dotychczasową autoryzację portalu.\n\nWspólny limit zapisów: 60 prób/600 s na użytkownika.\n\nWymagana aktualna sesja core i właściciel bieżącej organizacji. Bearer nie zastępuje sesji ani roli.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasPortalV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak wymaganej roli.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Zmiana organizacji, wersji, ponowne request_id z inną treścią lub konflikt stanu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "CSRF własnej sesji jest nieobecny lub nieaktualny.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Limit JSON 1 MiB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Wymagany application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-required-role": "workspace_owner",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator zasobu; sam identyfikator nie nadaje uprawnień."
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Bieżąca organizacja sesji; wymagana także dla czynności administratora. Brak lub zmiana: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaasPortalUpdateV10"
              }
            }
          }
        }
      }
    },
    "/api/saas/portals/{id}/domains": {
      "post": {
        "operationId": "saasClaimDomainV10",
        "tags": [
          "SaaS — właściciel"
        ],
        "summary": "Zgłoś własną domenę",
        "description": "request_id chroni powtórzenie. Wyzwanie TXT wydawane tylko raz, ważne 7 dni. Stan pending_verification; brak automatycznego potwierdzenia własności.\n\nWspólny limit zapisów: 60 prób/600 s na użytkownika.\n\nWymagana aktualna sesja core i właściciel bieżącej organizacji. Bearer nie zastępuje sesji ani roli.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "201": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasDomainClaimResultV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak wymaganej roli.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Zmiana organizacji, wersji, ponowne request_id z inną treścią lub konflikt stanu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "CSRF własnej sesji jest nieobecny lub nieaktualny.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Limit JSON 1 MiB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Wymagany application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-required-role": "workspace_owner",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator zasobu; sam identyfikator nie nadaje uprawnień."
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Bieżąca organizacja sesji; wymagana także dla czynności administratora. Brak lub zmiana: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaasDomainClaimV10"
              }
            }
          }
        }
      }
    },
    "/api/saas/domains/{id}": {
      "patch": {
        "operationId": "saasUpdateDomainV10",
        "tags": [
          "SaaS — właściciel"
        ],
        "summary": "Włącz lub wyłącz domenę",
        "description": "enabled nie zastępuje weryfikacji DNS, subskrypcji ani gotowości TLS. Zmiana cofa dotychczasowe delegacje.\n\nWspólny limit zapisów: 60 prób/600 s na użytkownika.\n\nWymagana aktualna sesja core i właściciel bieżącej organizacji. Bearer nie zastępuje sesji ani roli.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasDomainV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak wymaganej roli.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Zmiana organizacji, wersji, ponowne request_id z inną treścią lub konflikt stanu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "CSRF własnej sesji jest nieobecny lub nieaktualny.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Limit JSON 1 MiB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Wymagany application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-required-role": "workspace_owner",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator zasobu; sam identyfikator nie nadaje uprawnień."
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Bieżąca organizacja sesji; wymagana także dla czynności administratora. Brak lub zmiana: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaasDomainUpdateV10"
              }
            }
          }
        }
      }
    },
    "/api/saas/domains/{id}/challenge": {
      "post": {
        "operationId": "saasRotateDomainChallengeV10",
        "tags": [
          "SaaS — właściciel"
        ],
        "summary": "Wydaj nowy kod TXT",
        "description": "Tylko custom przed aktywacją. Unieważnia poprzedni kod, resetuje verified/TLS i wymaga ponownej weryfikacji.\n\nWspólny limit zapisów: 60 prób/600 s na użytkownika.\n\nWymagana aktualna sesja core i właściciel bieżącej organizacji. Bearer nie zastępuje sesji ani roli.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasDomainClaimResultV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak wymaganej roli.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Zmiana organizacji, wersji, ponowne request_id z inną treścią lub konflikt stanu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "CSRF własnej sesji jest nieobecny lub nieaktualny.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Limit JSON 1 MiB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Wymagany application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-required-role": "workspace_owner",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator zasobu; sam identyfikator nie nadaje uprawnień."
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Bieżąca organizacja sesji; wymagana także dla czynności administratora. Brak lub zmiana: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaasVersionV10"
              }
            }
          }
        }
      }
    },
    "/api/saas/domains/{id}/verify": {
      "post": {
        "operationId": "saasVerifyDomainV10",
        "tags": [
          "SaaS — właściciel"
        ],
        "summary": "Sprawdź DNS domeny",
        "description": "Wymaga własnego TXT oraz poprawnego CNAME lub dopuszczonych A/AAAA. Nie wykonuje HTTP do podanej domeny. 20 prób/3600 s na użytkownika. Wynik verified wymaga nadal jawnej aktywacji operatora.\n\nWspólny limit zapisów: 60 prób/600 s na użytkownika.\n\nWymagana aktualna sesja core i właściciel bieżącej organizacji. Bearer nie zastępuje sesji ani roli.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasDomainV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak wymaganej roli.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Zmiana organizacji, wersji, ponowne request_id z inną treścią lub konflikt stanu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "CSRF własnej sesji jest nieobecny lub nieaktualny.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Limit JSON 1 MiB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Wymagany application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Wyzwanie DNS albo kod partnerski wygasł; nie przyznano dostępu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-required-role": "workspace_owner",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator zasobu; sam identyfikator nie nadaje uprawnień."
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Bieżąca organizacja sesji; wymagana także dla czynności administratora. Brak lub zmiana: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaasVersionV10"
              }
            }
          }
        }
      }
    },
    "/api/saas/purchases": {
      "post": {
        "operationId": "saasCreatePurchaseV10",
        "tags": [
          "SaaS — właściciel"
        ],
        "summary": "Zapisz zakup do ręcznej weryfikacji",
        "description": "Cena i okres zostają utrwalone po stronie serwera. Powstaje payment_pending, checkout_url:null; bez obciążenia karty, PayPal, P24, faktury i automatycznego abonamentu.\n\nWspólny limit zapisów: 60 prób/600 s na użytkownika.\n\nWymagana aktualna sesja core i właściciel bieżącej organizacji. Bearer nie zastępuje sesji ani roli.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "201": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasPurchaseV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak wymaganej roli.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Zmiana organizacji, wersji, ponowne request_id z inną treścią lub konflikt stanu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "CSRF własnej sesji jest nieobecny lub nieaktualny.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Limit JSON 1 MiB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Wymagany application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-required-role": "workspace_owner",
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Bieżąca organizacja sesji; wymagana także dla czynności administratora. Brak lub zmiana: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaasPurchaseCreateV10"
              }
            }
          }
        }
      }
    },
    "/api/saas/coupons/redeem": {
      "post": {
        "operationId": "saasRedeemCouponV10",
        "tags": [
          "SaaS — właściciel"
        ],
        "summary": "Zrealizuj przypisany kod 100%",
        "description": "Właściciel wskazanej organizacji lub konta e-mail. Atomowe jednorazowe zużycie tworzy paid_coupon i skończony dostęp partner; identyczny użytkownik/workspace/request_id zwraca duplicate:true bez przedłużenia. 10 prób/600 s.\n\nWspólny limit zapisów: 60 prób/600 s na użytkownika.\n\nWymagana aktualna sesja core i właściciel bieżącej organizacji. Bearer nie zastępuje sesji ani roli.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasCouponRedeemedV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak wymaganej roli.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Zmiana organizacji, wersji, ponowne request_id z inną treścią lub konflikt stanu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "CSRF własnej sesji jest nieobecny lub nieaktualny.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Limit JSON 1 MiB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Wymagany application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Wyzwanie DNS albo kod partnerski wygasł; nie przyznano dostępu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-required-role": "workspace_owner",
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Bieżąca organizacja sesji; wymagana także dla czynności administratora. Brak lub zmiana: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaasCouponRedeemV10"
              }
            }
          }
        }
      }
    },
    "/api/saas/admin/coupons": {
      "post": {
        "operationId": "saasIssueCouponV10",
        "tags": [
          "SaaS — operator"
        ],
        "summary": "Wystaw ograniczony kod partnerski",
        "description": "Administrator wybiera dokładnie jedną organizację albo e-mail właściciela. Kod pokazany raz; nie wysyła wiadomości i sam nie aktywuje dostępu.\n\nWspólny limit zapisów: 60 prób/600 s na użytkownika.\n\nWymagana aktualna sesja core i administrator platformy. Bearer nie zastępuje sesji ani roli.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "201": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasCouponIssuedV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak wymaganej roli.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Zmiana organizacji, wersji, ponowne request_id z inną treścią lub konflikt stanu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "CSRF własnej sesji jest nieobecny lub nieaktualny.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Limit JSON 1 MiB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Wymagany application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-required-role": "platform_admin",
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Bieżąca organizacja sesji; wymagana także dla czynności administratora. Brak lub zmiana: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaasCouponIssueV10"
              }
            }
          }
        }
      }
    },
    "/api/saas/admin/purchases/{id}/approve": {
      "post": {
        "operationId": "saasApprovePurchaseV10",
        "tags": [
          "SaaS — operator"
        ],
        "summary": "Potwierdź uzgodnioną płatność",
        "description": "Świadome potwierdzenie administratora z dowodem, dokładną kwotą i walutą. Nie jest callbackiem providera. payment_pending → paid_manual; atomowo dodaje opłacony okres.\n\nWspólny limit zapisów: 60 prób/600 s na użytkownika.\n\nWymagana aktualna sesja core i administrator platformy. Bearer nie zastępuje sesji ani roli.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasPurchaseV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak wymaganej roli.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Zmiana organizacji, wersji, ponowne request_id z inną treścią lub konflikt stanu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "CSRF własnej sesji jest nieobecny lub nieaktualny.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Limit JSON 1 MiB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Wymagany application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-required-role": "platform_admin",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator zasobu; sam identyfikator nie nadaje uprawnień."
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Bieżąca organizacja sesji; wymagana także dla czynności administratora. Brak lub zmiana: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaasApprovePurchaseV10"
              }
            }
          }
        }
      }
    },
    "/api/saas/admin/domains/{id}/activate": {
      "post": {
        "operationId": "saasActivateDomainV10",
        "tags": [
          "SaaS — operator"
        ],
        "summary": "Potwierdź routing i HTTPS domeny",
        "description": "Tylko verified i enabled. Ponowny odczyt DNS przed zapisem; administrator potwierdza faktyczną gotowość ingress/TLS. Ta operacja nie konfiguruje certyfikatu ani serwera automatycznie.\n\nWspólny limit zapisów: 60 prób/600 s na użytkownika.\n\nWymagana aktualna sesja core i administrator platformy. Bearer nie zastępuje sesji ani roli.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasDomainV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak wymaganej roli.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Zmiana organizacji, wersji, ponowne request_id z inną treścią lub konflikt stanu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "CSRF własnej sesji jest nieobecny lub nieaktualny.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Limit JSON 1 MiB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Wymagany application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Wyzwanie DNS albo kod partnerski wygasł; nie przyznano dostępu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-required-role": "platform_admin",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator zasobu; sam identyfikator nie nadaje uprawnień."
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Bieżąca organizacja sesji; wymagana także dla czynności administratora. Brak lub zmiana: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaasActivateDomainV10"
              }
            }
          }
        }
      }
    },
    "/api/saas/admin/subscriptions/{id}/suspend": {
      "post": {
        "operationId": "saasSuspendSubscriptionV10",
        "tags": [
          "SaaS — operator"
        ],
        "summary": "Zawieś dostęp organizacji",
        "description": "Parametr id jest UUID organizacji. Wyłącza aktywne uprawnienia SaaS i zmienia rewizje autoryzacji portali; nie usuwa danych core ani nie wykonuje zwrotu pieniędzy.\n\nWspólny limit zapisów: 60 prób/600 s na użytkownika.\n\nWymagana aktualna sesja core i administrator platformy. Bearer nie zastępuje sesji ani roli.",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasSubscriptionV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak wymaganej roli.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Zmiana organizacji, wersji, ponowne request_id z inną treścią lub konflikt stanu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "CSRF własnej sesji jest nieobecny lub nieaktualny.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Limit JSON 1 MiB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Wymagany application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-required-role": "platform_admin",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Identyfikator zasobu; sam identyfikator nie nadaje uprawnień."
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Bieżąca organizacja sesji; wymagana także dla czynności administratora. Brak lub zmiana: 409 context_changed."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaasSuspendV10"
              }
            }
          }
        }
      }
    },
    "/api/saas/admin/queue": {
      "get": {
        "operationId": "saasAdminQueueV10",
        "tags": [
          "SaaS — operator"
        ],
        "summary": "Kolejka weryfikacji SaaS",
        "description": "Do 100 oczekujących zakupów, 100 zweryfikowanych domen i 100 ostatnich subskrypcji. Dane wielu organizacji dostępne wyłącznie administratorowi platformy; brak automatycznego sprawdzenia płatności i TLS.\n\nWymagana aktualna sesja core i administrator platformy. Bearer nie zastępuje sesji ani roli.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SaasAdminQueueV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak wymaganej roli.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-required-role": "platform_admin"
      },
      "head": {
        "operationId": "saasAdminQueueV10Head",
        "tags": [
          "SaaS — operator"
        ],
        "summary": "Kolejka weryfikacji SaaS — HEAD",
        "description": "Do 100 oczekujących zakupów, 100 zweryfikowanych domen i 100 ostatnich subskrypcji. Dane wielu organizacji dostępne wyłącznie administratorowi platformy; brak automatycznego sprawdzenia płatności i TLS.\n\nWymagana aktualna sesja core i administrator platformy. Bearer nie zastępuje sesji ani roli.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Wynik bieżącej operacji.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "Funkcja wyłączona, zasób nieaktywny lub niedostępny w tej organizacji."
          },
          "422": {
            "description": "Niepoprawne parametry, typy lub zakresy."
          },
          "429": {
            "description": "Limit prób; ogranicz częstotliwość."
          },
          "503": {
            "description": "Brak poprawnej konfiguracji operatora lub resolvera; brak automatycznej aktywacji."
          },
          "401": {
            "description": "Brak ważnej sesji lub aktualnego członkostwa."
          },
          "403": {
            "description": "Brak wymaganej roli."
          }
        },
        "x-required-role": "platform_admin"
      }
    },
    "/identity/login": {
      "get": {
        "operationId": "identityLoginFormV10",
        "tags": [
          "Centralne konto"
        ],
        "summary": "Formularz centralny: login",
        "description": "Tylko IDENTITY_PUBLIC_URL. Sesja i CSRF oddzielne od core. Formularz HTML bez JavaScript, hasło nigdy nie trafia do portalu BFF. Dozwolone query wyłącznie theme/font oraz logout=1 przy GET/HEAD.",
        "servers": [
          {
            "url": "{identity_origin}",
            "description": "Dokładny IDENTITY_PUBLIC_URL operatora. Domyślny adres jest przykładem konfiguracji, nie potwierdzeniem wdrożenia. Inny host niż APP_URL; HTTPS w produkcji.",
            "variables": {
              "identity_origin": {
                "default": "https://user.telemonit.pl",
                "description": "Stały origin bez ścieżki, query, fragmentu i danych logowania."
              }
            }
          }
        ],
        "x-host-surface": "identity",
        "security": [],
        "parameters": [
          {
            "name": "theme",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/IdentityAppearanceThemeV10"
            },
            "description": "Natywny wygląd formularza; brak wpływu na zaufanie, role lub przekierowania."
          },
          {
            "name": "font",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/IdentityAppearanceFontV10"
            },
            "description": "normal=A, large=A+. Nieznana wartość, tablica lub duplikat: 400."
          },
          {
            "name": "logout",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "const": "1"
            },
            "description": "Wyświetl informację po zakończeniu sesji aplikacji i przycisk zakończenia sesji centralnej. Sam GET nie wylogowuje."
          }
        ],
        "responses": {
          "200": {
            "description": "Natywny formularz lub jawny stan już zalogowanego konta. Nie wykonuje automatycznego przejścia SSO.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Nieprawidłowa lub powtórzona część protokołu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Bramka wyłączona albo adres spoza właściwego hosta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Metoda niedozwolona.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "421": {
            "description": "Host nie jest stałym core ani identity.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Niepoprawna konfiguracja hostów, klucza lub zaufanego proxy.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "identityLoginFormV10Head",
        "tags": [
          "Centralne konto"
        ],
        "summary": "Formularz centralny: login — HEAD",
        "description": "Tylko IDENTITY_PUBLIC_URL. Sesja i CSRF oddzielne od core. Formularz HTML bez JavaScript, hasło nigdy nie trafia do portalu BFF. Dozwolone query wyłącznie theme/font oraz logout=1 przy GET/HEAD.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.",
        "servers": [
          {
            "url": "{identity_origin}",
            "description": "Dokładny IDENTITY_PUBLIC_URL operatora. Domyślny adres jest przykładem konfiguracji, nie potwierdzeniem wdrożenia. Inny host niż APP_URL; HTTPS w produkcji.",
            "variables": {
              "identity_origin": {
                "default": "https://user.telemonit.pl",
                "description": "Stały origin bez ścieżki, query, fragmentu i danych logowania."
              }
            }
          }
        ],
        "x-host-surface": "identity",
        "security": [],
        "parameters": [
          {
            "name": "theme",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/IdentityAppearanceThemeV10"
            },
            "description": "Natywny wygląd formularza; brak wpływu na zaufanie, role lub przekierowania."
          },
          {
            "name": "font",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/IdentityAppearanceFontV10"
            },
            "description": "normal=A, large=A+. Nieznana wartość, tablica lub duplikat: 400."
          },
          {
            "name": "logout",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "const": "1"
            },
            "description": "Wyświetl informację po zakończeniu sesji aplikacji i przycisk zakończenia sesji centralnej. Sam GET nie wylogowuje."
          }
        ],
        "responses": {
          "200": {
            "description": "Natywny formularz lub jawny stan już zalogowanego konta. Nie wykonuje automatycznego przejścia SSO."
          },
          "400": {
            "description": "Nieprawidłowa lub powtórzona część protokołu."
          },
          "404": {
            "description": "Bramka wyłączona albo adres spoza właściwego hosta."
          },
          "405": {
            "description": "Metoda niedozwolona."
          },
          "421": {
            "description": "Host nie jest stałym core ani identity."
          },
          "503": {
            "description": "Niepoprawna konfiguracja hostów, klucza lub zaufanego proxy."
          }
        }
      },
      "post": {
        "operationId": "identityLoginSubmitV10",
        "tags": [
          "Centralne konto"
        ],
        "summary": "Wyślij centralny formularz: login",
        "description": "Tylko IDENTITY_PUBLIC_URL. Sesja i CSRF oddzielne od core. Formularz HTML bez JavaScript, hasło nigdy nie trafia do portalu BFF. Dozwolone query wyłącznie theme/font oraz logout=1 przy GET/HEAD.\n\nPOST przyjmuje tylko query theme/font. Wymagany własny Origin, sesja i CSRF. Limity sieci/konta/globalne są konfigurowane osobno. Przy sukcesie ID sesji identity jest zmieniane. Pending request pochodzi wyłącznie z sesji; kod 60 s trafia tylko do stałego core/identity/callback. Bez pending następuje przejście na stały core/login.",
        "servers": [
          {
            "url": "{identity_origin}",
            "description": "Dokładny IDENTITY_PUBLIC_URL operatora. Domyślny adres jest przykładem konfiguracji, nie potwierdzeniem wdrożenia. Inny host niż APP_URL; HTTPS w produkcji.",
            "variables": {
              "identity_origin": {
                "default": "https://user.telemonit.pl",
                "description": "Stały origin bez ścieżki, query, fragmentu i danych logowania."
              }
            }
          }
        ],
        "x-host-surface": "identity",
        "security": [
          {
            "IdentitySessionCookie": []
          }
        ],
        "x-csrf": "_csrf form field or X-CSRF-Token header, matching the identity session",
        "parameters": [
          {
            "name": "theme",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/IdentityAppearanceThemeV10"
            },
            "description": "Natywny wygląd formularza; brak wpływu na zaufanie, role lub przekierowania."
          },
          {
            "name": "font",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/IdentityAppearanceFontV10"
            },
            "description": "normal=A, large=A+. Nieznana wartość, tablica lub duplikat: 400."
          },
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            },
            "description": "Dokładnie skonfigurowany IDENTITY_PUBLIC_URL, wymagany także przy formularzu anonimowym. Inny lub brak: 403."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$",
              "description": "Token własnej sesji identity. Wymagany tutaj albo w X-CSRF-Token; nagłówek ma pierwszeństwo."
            },
            "description": "Opcjonalna alternatywa _csrf; CSRF jednej z tych postaci jest obowiązkowy."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/IdentityLoginFormV10"
              }
            }
          }
        },
        "responses": {
          "303": {
            "description": "Własna sesja identity i jednorazowa kontynuacja do stałego core.",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              }
            }
          },
          "400": {
            "description": "Nieprawidłowa lub powtórzona część protokołu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Bramka wyłączona albo adres spoza właściwego hosta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Metoda niedozwolona.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "421": {
            "description": "Host nie jest stałym core ani identity.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Niepoprawna konfiguracja hostów, klucza lub zaufanego proxy.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Nieprawidłowe dane logowania; formularz nie odtwarza hasła.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Zły Origin, wyłączona rejestracja albo brak członkostwa.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt danych konta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczono 16 KiB.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "description": "Wymagany natywny application/x-www-form-urlencoded.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego CSRF.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne lub powtórzone pola formularza albo brak wymaganego jawnego potwierdzenia.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "Osiągnięto limit prób.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string",
                  "description": "Liczba sekund okna limitu."
                }
              }
            }
          }
        }
      }
    },
    "/identity/register": {
      "get": {
        "operationId": "identityRegisterFormV10",
        "tags": [
          "Centralne konto"
        ],
        "summary": "Formularz centralny: register",
        "description": "Tylko IDENTITY_PUBLIC_URL. Sesja i CSRF oddzielne od core. Formularz HTML bez JavaScript, hasło nigdy nie trafia do portalu BFF. Dozwolone query wyłącznie theme/font.",
        "servers": [
          {
            "url": "{identity_origin}",
            "description": "Dokładny IDENTITY_PUBLIC_URL operatora. Domyślny adres jest przykładem konfiguracji, nie potwierdzeniem wdrożenia. Inny host niż APP_URL; HTTPS w produkcji.",
            "variables": {
              "identity_origin": {
                "default": "https://user.telemonit.pl",
                "description": "Stały origin bez ścieżki, query, fragmentu i danych logowania."
              }
            }
          }
        ],
        "x-host-surface": "identity",
        "security": [],
        "parameters": [
          {
            "name": "theme",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/IdentityAppearanceThemeV10"
            },
            "description": "Natywny wygląd formularza; brak wpływu na zaufanie, role lub przekierowania."
          },
          {
            "name": "font",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/IdentityAppearanceFontV10"
            },
            "description": "normal=A, large=A+. Nieznana wartość, tablica lub duplikat: 400."
          }
        ],
        "responses": {
          "200": {
            "description": "Natywny formularz lub jawny stan już zalogowanego konta. Nie wykonuje automatycznego przejścia SSO.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Nieprawidłowa lub powtórzona część protokołu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Bramka wyłączona albo adres spoza właściwego hosta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Metoda niedozwolona.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "421": {
            "description": "Host nie jest stałym core ani identity.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Niepoprawna konfiguracja hostów, klucza lub zaufanego proxy.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "identityRegisterFormV10Head",
        "tags": [
          "Centralne konto"
        ],
        "summary": "Formularz centralny: register — HEAD",
        "description": "Tylko IDENTITY_PUBLIC_URL. Sesja i CSRF oddzielne od core. Formularz HTML bez JavaScript, hasło nigdy nie trafia do portalu BFF. Dozwolone query wyłącznie theme/font.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.",
        "servers": [
          {
            "url": "{identity_origin}",
            "description": "Dokładny IDENTITY_PUBLIC_URL operatora. Domyślny adres jest przykładem konfiguracji, nie potwierdzeniem wdrożenia. Inny host niż APP_URL; HTTPS w produkcji.",
            "variables": {
              "identity_origin": {
                "default": "https://user.telemonit.pl",
                "description": "Stały origin bez ścieżki, query, fragmentu i danych logowania."
              }
            }
          }
        ],
        "x-host-surface": "identity",
        "security": [],
        "parameters": [
          {
            "name": "theme",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/IdentityAppearanceThemeV10"
            },
            "description": "Natywny wygląd formularza; brak wpływu na zaufanie, role lub przekierowania."
          },
          {
            "name": "font",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/IdentityAppearanceFontV10"
            },
            "description": "normal=A, large=A+. Nieznana wartość, tablica lub duplikat: 400."
          }
        ],
        "responses": {
          "200": {
            "description": "Natywny formularz lub jawny stan już zalogowanego konta. Nie wykonuje automatycznego przejścia SSO."
          },
          "400": {
            "description": "Nieprawidłowa lub powtórzona część protokołu."
          },
          "404": {
            "description": "Bramka wyłączona albo adres spoza właściwego hosta."
          },
          "405": {
            "description": "Metoda niedozwolona."
          },
          "421": {
            "description": "Host nie jest stałym core ani identity."
          },
          "503": {
            "description": "Niepoprawna konfiguracja hostów, klucza lub zaufanego proxy."
          }
        }
      },
      "post": {
        "operationId": "identityRegisterSubmitV10",
        "tags": [
          "Centralne konto"
        ],
        "summary": "Wyślij centralny formularz: register",
        "description": "Tylko IDENTITY_PUBLIC_URL. Sesja i CSRF oddzielne od core. Formularz HTML bez JavaScript, hasło nigdy nie trafia do portalu BFF. Dozwolone query wyłącznie theme/font.\n\nPOST przyjmuje tylko query theme/font. Wymagany własny Origin, sesja i CSRF. Limity sieci/konta/globalne są konfigurowane osobno. Przy sukcesie ID sesji identity jest zmieniane. Pending request pochodzi wyłącznie z sesji; kod 60 s trafia tylko do stałego core/identity/callback. Bez pending następuje przejście na stały core/login.",
        "servers": [
          {
            "url": "{identity_origin}",
            "description": "Dokładny IDENTITY_PUBLIC_URL operatora. Domyślny adres jest przykładem konfiguracji, nie potwierdzeniem wdrożenia. Inny host niż APP_URL; HTTPS w produkcji.",
            "variables": {
              "identity_origin": {
                "default": "https://user.telemonit.pl",
                "description": "Stały origin bez ścieżki, query, fragmentu i danych logowania."
              }
            }
          }
        ],
        "x-host-surface": "identity",
        "security": [
          {
            "IdentitySessionCookie": []
          }
        ],
        "x-csrf": "_csrf form field or X-CSRF-Token header, matching the identity session",
        "parameters": [
          {
            "name": "theme",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/IdentityAppearanceThemeV10"
            },
            "description": "Natywny wygląd formularza; brak wpływu na zaufanie, role lub przekierowania."
          },
          {
            "name": "font",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/IdentityAppearanceFontV10"
            },
            "description": "normal=A, large=A+. Nieznana wartość, tablica lub duplikat: 400."
          },
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            },
            "description": "Dokładnie skonfigurowany IDENTITY_PUBLIC_URL, wymagany także przy formularzu anonimowym. Inny lub brak: 403."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$",
              "description": "Token własnej sesji identity. Wymagany tutaj albo w X-CSRF-Token; nagłówek ma pierwszeństwo."
            },
            "description": "Opcjonalna alternatywa _csrf; CSRF jednej z tych postaci jest obowiązkowy."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/IdentityRegisterFormV10"
              }
            }
          }
        },
        "responses": {
          "303": {
            "description": "Własna sesja identity i jednorazowa kontynuacja do stałego core.",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              }
            }
          },
          "400": {
            "description": "Nieprawidłowa lub powtórzona część protokołu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Bramka wyłączona albo adres spoza właściwego hosta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Metoda niedozwolona.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "421": {
            "description": "Host nie jest stałym core ani identity.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Niepoprawna konfiguracja hostów, klucza lub zaufanego proxy.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Nieprawidłowe dane logowania; formularz nie odtwarza hasła.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Zły Origin, wyłączona rejestracja albo brak członkostwa.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt danych konta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczono 16 KiB.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "description": "Wymagany natywny application/x-www-form-urlencoded.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego CSRF.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne lub powtórzone pola formularza albo brak wymaganego jawnego potwierdzenia.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "Osiągnięto limit prób.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string",
                  "description": "Liczba sekund okna limitu."
                }
              }
            }
          }
        }
      }
    },
    "/identity/logout": {
      "post": {
        "operationId": "identityLogoutV10",
        "tags": [
          "Centralne konto"
        ],
        "summary": "Zakończ bieżącą sesję centralną",
        "description": "Tylko POST na identity, własny Origin i CSRF. Query niedozwolone. Nie usuwa sesji core ani innych portali; wylogowanie tych aplikacji jest oddzielne. Brak globalnego revoke wszystkich tokenów.",
        "servers": [
          {
            "url": "{identity_origin}",
            "description": "Dokładny IDENTITY_PUBLIC_URL operatora. Domyślny adres jest przykładem konfiguracji, nie potwierdzeniem wdrożenia. Inny host niż APP_URL; HTTPS w produkcji.",
            "variables": {
              "identity_origin": {
                "default": "https://user.telemonit.pl",
                "description": "Stały origin bez ścieżki, query, fragmentu i danych logowania."
              }
            }
          }
        ],
        "x-host-surface": "identity",
        "security": [
          {
            "IdentitySessionCookie": []
          }
        ],
        "x-csrf": "_csrf form field or X-CSRF-Token header",
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            },
            "description": "Dokładnie skonfigurowany IDENTITY_PUBLIC_URL, wymagany także przy formularzu anonimowym. Inny lub brak: 403."
          },
          {
            "name": "X-CSRF-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$",
              "description": "Token własnej sesji identity. Wymagany tutaj albo w X-CSRF-Token; nagłówek ma pierwszeństwo."
            },
            "description": "Opcjonalna alternatywa _csrf; CSRF jednej z tych postaci jest obowiązkowy."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/IdentityLogoutFormV10"
              }
            }
          }
        },
        "responses": {
          "303": {
            "description": "/identity/login po zakończeniu własnej sesji.",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              }
            }
          },
          "400": {
            "description": "Nieprawidłowa lub powtórzona część protokołu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Bramka wyłączona albo adres spoza właściwego hosta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Metoda niedozwolona.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "421": {
            "description": "Host nie jest stałym core ani identity.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Niepoprawna konfiguracja hostów, klucza lub zaufanego proxy.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Nieprawidłowy Origin.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "Limit 16 KiB.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "description": "Niepoprawny format formularza.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "419": {
            "description": "Niepoprawny CSRF.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/identity/authorize": {
      "get": {
        "operationId": "identityAuthorizeV10",
        "tags": [
          "Centralne konto"
        ],
        "summary": "Obsłuż serwerowe żądanie połączenia konta",
        "description": "Parametry generuje core/login lub core/register. Żądanie przechowuje S256 i stały callback, nigdy browser-provided redirect. Okno żądania 600 s. Centralna sesja zalogowana wydaje atomowo kod 60 s; anonimowa zachowuje żądanie w swojej sesji i przekierowuje do formularza. To własny most first-party, nie ogólny OAuth/OIDC.",
        "servers": [
          {
            "url": "{identity_origin}",
            "description": "Dokładny IDENTITY_PUBLIC_URL operatora. Domyślny adres jest przykładem konfiguracji, nie potwierdzeniem wdrożenia. Inny host niż APP_URL; HTTPS w produkcji.",
            "variables": {
              "identity_origin": {
                "default": "https://user.telemonit.pl",
                "description": "Stały origin bez ścieżki, query, fragmentu i danych logowania."
              }
            }
          }
        ],
        "x-host-surface": "identity",
        "security": [],
        "parameters": [
          {
            "name": "request",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": ""
          },
          {
            "name": "state",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{43}$"
            },
            "description": ""
          },
          {
            "name": "mode",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "login",
                "register"
              ]
            },
            "description": ""
          }
        ],
        "responses": {
          "303": {
            "description": "Stały callback core albo względny formularz identity.",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              }
            }
          },
          "400": {
            "description": "Nieprawidłowa lub powtórzona część protokołu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Bramka wyłączona albo adres spoza właściwego hosta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Metoda niedozwolona.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "421": {
            "description": "Host nie jest stałym core ani identity.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Niepoprawna konfiguracja hostów, klucza lub zaufanego proxy.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "identityAuthorizeHeadV10",
        "tags": [
          "Centralne konto"
        ],
        "summary": "Bezskutkowy HEAD połączenia konta",
        "description": "Nie waliduje ani nie zużywa żądania, nie wydaje kodu i nie loguje użytkownika. Nie używaj HEAD jako potwierdzenia ważności.",
        "servers": [
          {
            "url": "{identity_origin}",
            "description": "Dokładny IDENTITY_PUBLIC_URL operatora. Domyślny adres jest przykładem konfiguracji, nie potwierdzeniem wdrożenia. Inny host niż APP_URL; HTTPS w produkcji.",
            "variables": {
              "identity_origin": {
                "default": "https://user.telemonit.pl",
                "description": "Stały origin bez ścieżki, query, fragmentu i danych logowania."
              }
            }
          }
        ],
        "x-host-surface": "identity",
        "security": [],
        "responses": {
          "200": {
            "description": "Brak treści i skutków autoryzacji."
          },
          "400": {
            "description": "Nieprawidłowa lub powtórzona część protokołu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Bramka wyłączona albo adres spoza właściwego hosta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Metoda niedozwolona.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "421": {
            "description": "Host nie jest stałym core ani identity.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Niepoprawna konfiguracja hostów, klucza lub zaufanego proxy.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/login": {
      "get": {
        "operationId": "coreIdentityLoginV10",
        "tags": [
          "Centralne konto"
        ],
        "summary": "Rozpocznij login w core",
        "description": "Przy niepustym IDENTITY_PUBLIC_URL jedynie przygotowuje serwerowy stan i PKCE, potem 303 do stałej domeny identity. Nie przyjmuje hasła. Dozwolony wyłącznie pojedynczy next; nieznana/niebezpieczna kontynuacja zostaje ograniczona do /app. Przy wyłączonej bramce pozostaje dawny formularz core.",
        "x-host-surface": "core",
        "security": [],
        "parameters": [
          {
            "name": "next",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Dozwolona względna ścieżka, m.in. /app, /saas, /saas-admin, /invite?token=<64hex>, /connect/authorize?...; bez obcego origin."
          }
        ],
        "responses": {
          "200": {
            "description": "Stary formularz wyłącznie gdy bramka jest wyłączona.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "303": {
            "description": "Do skonfigurowanej domeny identity; state/verifier są powiązane z własną sesją core.",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              }
            }
          },
          "429": {
            "description": "Limit rozpoczynania połączeń.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Nieprawidłowa lub powtórzona część protokołu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Bramka wyłączona albo adres spoza właściwego hosta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Metoda niedozwolona.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "421": {
            "description": "Host nie jest stałym core ani identity.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Niepoprawna konfiguracja hostów, klucza lub zaufanego proxy.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "coreIdentityLoginHeadV10",
        "tags": [
          "Centralne konto"
        ],
        "summary": "HEAD strony login",
        "description": "Przy włączonej bramce bez tworzenia sesji połączenia, kodu, przekierowania lub weryfikacji next.",
        "security": [],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Bez treści i skutków połączenia."
          },
          "400": {
            "description": "Nieprawidłowa lub powtórzona część protokołu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Bramka wyłączona albo adres spoza właściwego hosta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Metoda niedozwolona.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "421": {
            "description": "Host nie jest stałym core ani identity.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Niepoprawna konfiguracja hostów, klucza lub zaufanego proxy.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/register": {
      "get": {
        "operationId": "coreIdentityRegisterV10",
        "tags": [
          "Centralne konto"
        ],
        "summary": "Rozpocznij register w core",
        "description": "Przy niepustym IDENTITY_PUBLIC_URL jedynie przygotowuje serwerowy stan i PKCE, potem 303 do stałej domeny identity. Nie przyjmuje hasła. Dozwolony wyłącznie pojedynczy next; nieznana/niebezpieczna kontynuacja zostaje ograniczona do /app. Przy wyłączonej bramce pozostaje dawny formularz core.",
        "x-host-surface": "core",
        "security": [],
        "parameters": [
          {
            "name": "next",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Dozwolona względna ścieżka, m.in. /app, /saas, /saas-admin, /invite?token=<64hex>, /connect/authorize?...; bez obcego origin."
          }
        ],
        "responses": {
          "200": {
            "description": "Stary formularz wyłącznie gdy bramka jest wyłączona.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "303": {
            "description": "Do skonfigurowanej domeny identity; state/verifier są powiązane z własną sesją core.",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              }
            }
          },
          "429": {
            "description": "Limit rozpoczynania połączeń.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Nieprawidłowa lub powtórzona część protokołu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Bramka wyłączona albo adres spoza właściwego hosta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Metoda niedozwolona.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "421": {
            "description": "Host nie jest stałym core ani identity.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Niepoprawna konfiguracja hostów, klucza lub zaufanego proxy.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "coreIdentityRegisterHeadV10",
        "tags": [
          "Centralne konto"
        ],
        "summary": "HEAD strony register",
        "description": "Przy włączonej bramce bez tworzenia sesji połączenia, kodu, przekierowania lub weryfikacji next.",
        "security": [],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Bez treści i skutków połączenia."
          },
          "400": {
            "description": "Nieprawidłowa lub powtórzona część protokołu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Bramka wyłączona albo adres spoza właściwego hosta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Metoda niedozwolona.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "421": {
            "description": "Host nie jest stałym core ani identity.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Niepoprawna konfiguracja hostów, klucza lub zaufanego proxy.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/identity/callback": {
      "get": {
        "operationId": "identityCoreCallbackV10",
        "tags": [
          "Centralne konto"
        ],
        "summary": "Zakończ połączenie konta na stałym hoście core",
        "description": "Wyłącznie APP_URL/identity/callback. Własny state w sesji core, serwerowy verifier S256, skrót kodu, aktualna konfiguracja/członkostwo i atomowe zużycie kodu 60 s. Sukces rotuje sesję core. Query dokładnie code/state bez duplikatów. Prefetch/prerender odrzucane. Przechwycony URL bez własnej oczekującej sesji nie loguje.",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^tmi_[a-f0-9]{64}$"
            },
            "description": ""
          },
          {
            "name": "state",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{43}$"
            },
            "description": ""
          }
        ],
        "responses": {
          "303": {
            "description": "Zatwierdzona względna kontynuacja zapisana przed logowaniem.",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              }
            }
          },
          "400": {
            "description": "Nieprawidłowa lub powtórzona część protokołu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Bramka wyłączona albo adres spoza właściwego hosta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Metoda niedozwolona.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "421": {
            "description": "Host nie jest stałym core ani identity.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Niepoprawna konfiguracja hostów, klucza lub zaufanego proxy.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "identityCoreCallbackHeadV10",
        "tags": [
          "Centralne konto"
        ],
        "summary": "Bezskutkowy HEAD callbacku",
        "description": "Nie zużywa kodu, nie loguje i nie dowodzi ważności parametrów.",
        "security": [],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Brak treści i skutków autoryzacji."
          },
          "400": {
            "description": "Nieprawidłowa lub powtórzona część protokołu.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Bramka wyłączona albo adres spoza właściwego hosta.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "405": {
            "description": "Metoda niedozwolona.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "421": {
            "description": "Host nie jest stałym core ani identity.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Niepoprawna konfiguracja hostów, klucza lub zaufanego proxy.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/auth/logout": {
      "post": {
        "operationId": "coreLogoutV10",
        "tags": [
          "Centralne konto"
        ],
        "summary": "Wyloguj sesję core i pokaż zakończenie konta centralnego",
        "description": "Wymaga własnej sesji/CSRF, także gdy jest już anonimowa; nie wymaga X-Telemonit-Workspace. Zwrócony central_logout_url jest wyłącznie stałym adresem identity/login?logout=1 albo null przy wyłączonej bramce. Frontend powinien na niego przejść, aby użytkownik mógł jawnie zakończyć centralne konto na wspólnym urządzeniu. Nie cofa tokenów BFF.",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "responses": {
          "200": {
            "description": "Sesja core zakończona.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CoreLogoutResultV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego CSRF.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/identity-security": {
      "get": {
        "operationId": "identitySecuritySummaryV10",
        "tags": [
          "Centralne konto"
        ],
        "summary": "Zagregowane próby logowania",
        "description": "Wyłącznie administrator platformy na core, nie właściciel organizacji. Działa również przy wyłączonej bramce, jeżeli migracja jest dostępna. Tylko hours jako ciąg cyfr; wynik ograniczony do 1–720 godzin. Brak surowych identyfikatorów. Nie jest usługą geolokalizacji ani pełnym WAF.",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "x-host-surface": "core",
        "x-required-role": "platform_admin",
        "parameters": [
          {
            "name": "hours",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "default": "24"
            },
            "description": "Pełne godziny; 0 normalizowane do 1, duże wartości do 720."
          }
        ],
        "responses": {
          "200": {
            "description": "Bieżące agregaty.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/IdentitySecuritySummaryV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Brak sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak praw administratora.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Niedostępne na identity host.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Dozwolony tylko GET; HEAD nie jest obsługiwany.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Niepoprawne hours lub nieznany parametr.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/telemonit.json": {
      "get": {
        "operationId": "serviceDiscoveryV10",
        "tags": [
          "Odkrywanie usług"
        ],
        "summary": "Publiczny manifest Telemonit",
        "description": "JSON w zwykłej kopercie data. Wyłącznie opis usług i publicznych kontraktów. Nie jest dokumentem .well-known/openid-configuration.",
        "security": [],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Manifest usług operatora.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ServiceDiscoveryV10"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "serviceDiscoveryV10Head",
        "tags": [
          "Odkrywanie usług"
        ],
        "summary": "Publiczny manifest Telemonit — HEAD",
        "description": "JSON w zwykłej kopercie data. Wyłącznie opis usług i publicznych kontraktów. Nie jest dokumentem .well-known/openid-configuration.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.",
        "security": [],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Manifest usług operatora.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "llmsGuidanceV10",
        "tags": [
          "Odkrywanie usług"
        ],
        "summary": "Publiczne wskazówki dla integracji AI",
        "description": "Zwykły tekst z linkami do konfiguracji operatora. Nie jest bramą autoryzacji, zgodą na prywatne dane ani gwarancją indeksacji przez wyszukiwarki lub asystentów.",
        "security": [],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Opisowe wskazówki; respektuj publikację i zakres konkretnego portalu.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "llmsGuidanceV10Head",
        "tags": [
          "Odkrywanie usług"
        ],
        "summary": "Publiczne wskazówki dla integracji AI — HEAD",
        "description": "Zwykły tekst z linkami do konfiguracji operatora. Nie jest bramą autoryzacji, zgodą na prywatne dane ani gwarancją indeksacji przez wyszukiwarki lub asystentów.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.",
        "security": [],
        "x-host-surface": "core",
        "responses": {
          "200": {
            "description": "Opisowe wskazówki; respektuj publikację i zakres konkretnego portalu."
          }
        }
      }
    },
    "/api/map-sources": {
      "get": {
        "operationId": "get_api_map_sources_V11",
        "tags": [
          "Źródła mapy"
        ],
        "summary": "Propozycje źródeł, kanały i stan analizy",
        "description": "Prywatne propozycje własnej organizacji. limit=50, offset<=10000; brak publikacji i automatycznego wywołania AI.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.\n\nWyłącznie aktualny właściciel własnej organizacji, bez /api/v1 i bez administracyjnego scope Bearer.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "staged",
                "imported",
                "rejected",
                "all"
              ],
              "default": "staged"
            },
            "description": ""
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000,
              "default": 0
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapSourceDashboardV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/map-sources.php"
        ],
        "x-required-role": "workspace_owner"
      }
    },
    "/api/map-sources/import": {
      "post": {
        "operationId": "post_api_map_sources_import_V11",
        "tags": [
          "Źródła mapy"
        ],
        "summary": "Zaimportuj dostarczoną treść RSS/Atom/JSON/ICS",
        "description": "Parser ogranicza bajty i liczbę elementów. Zapisywana proweniencja: URL, data publikacji, data pobrania, hash i podstawa użycia. Żadne URL obrazów nie są pobierane.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.\n\nWyłącznie aktualny właściciel własnej organizacji, bez /api/v1 i bez administracyjnego scope Bearer.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapSourceImportResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/map-sources.php"
        ],
        "x-required-role": "workspace_owner",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MapSourceImportInputV11"
              }
            }
          }
        }
      }
    },
    "/api/map-sources/feeds": {
      "post": {
        "operationId": "post_api_map_sources_feeds_V11",
        "tags": [
          "Źródła mapy"
        ],
        "summary": "Zarejestruj kanał z listy operatora",
        "description": "Najwyżej 20 kanałów; request_id chroni ponowienie. Sam zapis nie uruchamia sieci; globalny MAP_SOURCE_FETCH_ENABLED musi być włączony dla pobrania.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.\n\nWyłącznie aktualny właściciel własnej organizacji, bez /api/v1 i bez administracyjnego scope Bearer.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapSourceFeedV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/map-sources.php"
        ],
        "x-required-role": "workspace_owner",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MapSourceFeedCreateV11"
              }
            }
          }
        }
      }
    },
    "/api/map-sources/feeds/{feed_id}": {
      "patch": {
        "operationId": "patch_api_map_sources_feeds_feed_id_V11",
        "tags": [
          "Źródła mapy"
        ],
        "summary": "Zmień kompletną konfigurację kanału",
        "description": "Jawna wersja i wszystkie wymagane ustawienia; interwał 15–10080 min. Przy zmianie nie ma resetowania historycznej proweniencji.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.\n\nWyłącznie aktualny właściciel własnej organizacji, bez /api/v1 i bez administracyjnego scope Bearer.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "feed_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapSourceFeedV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/map-sources.php"
        ],
        "x-required-role": "workspace_owner",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MapSourceFeedUpdateV11"
              }
            }
          }
        }
      }
    },
    "/api/map-sources/feeds/{feed_id}/fetch": {
      "post": {
        "operationId": "post_api_map_sources_feeds_feed_id_fetch_V11",
        "tags": [
          "Źródła mapy"
        ],
        "summary": "Pobierz jeden zatwierdzony kanał",
        "description": "Puste JSON {}. Wymaga globalnego fetch, włączonego kanału, publicznego DNS i hosta z dokładnej allowlist. Pinning IP/TLS, bez proxy środowiska i przekierowań. Limit 256 KiB/15 s; 10 prób/h. Tworzy wyłącznie propozycje, bez AI.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.\n\nWyłącznie aktualny właściciel własnej organizacji, bez /api/v1 i bez administracyjnego scope Bearer.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "feed_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapSourceImportResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/map-sources.php"
        ],
        "x-required-role": "workspace_owner",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [],
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/map-sources/items/{item_id}": {
      "get": {
        "operationId": "get_api_map_sources_items_item_id_V11",
        "tags": [
          "Źródła mapy"
        ],
        "summary": "Odczytaj źródło i stan sugestii",
        "description": "Odczyt nie pobiera kanału ani nie odpytuje dostawcy AI. Wygaśnięcie natychmiast redaguje treść niezależnie od cleanup.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.\n\nWyłącznie aktualny właściciel własnej organizacji, bez /api/v1 i bez administracyjnego scope Bearer.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapSourceItemV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/map-sources.php"
        ],
        "x-required-role": "workspace_owner"
      }
    },
    "/api/map-sources/items/{item_id}/analysis": {
      "post": {
        "operationId": "post_api_map_sources_items_item_id_analysis_V11",
        "tags": [
          "Źródła mapy"
        ],
        "summary": "Zleć jawnie analizę źródła",
        "description": "Asynchroniczna kolejka CLI map-sources:analyze. Wymaga zgody na AI; <=1 dostępne zdjęcie przetwarzane lokalnie przed przekazaniem. Brak konfiguracji daje awaiting_configuration, nie fikcyjny wynik. <=3 zlecenia/element, limity dobowe/miesięczne, 20 żądań/h. Niepewna odpowiedź dostawcy wymaga ręcznej decyzji o ponowieniu.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.\n\nWyłącznie aktualny właściciel własnej organizacji, bez /api/v1 i bez administracyjnego scope Bearer.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "202": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapSourceAnalysisV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/map-sources.php"
        ],
        "x-required-role": "workspace_owner",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MapSourceAnalysisInputV11"
              }
            }
          }
        }
      }
    },
    "/api/map-sources/items/{item_id}/review": {
      "post": {
        "operationId": "post_api_map_sources_items_item_id_review_V11",
        "tags": [
          "Źródła mapy"
        ],
        "summary": "Sprawdź źródło i utwórz prywatny rekord",
        "description": "Wymagane jawne miejsce, czas, treść, potwierdzenia faktów i praw. Powstaje prywatny incydent new/severity1 albo wydarzenie proposed. Publikacja jest odrębną akcją modułu docelowego; system niczego nie zgłasza służbom.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.\n\nWyłącznie aktualny właściciel własnej organizacji, bez /api/v1 i bez administracyjnego scope Bearer.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapSourceReviewResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/map-sources.php"
        ],
        "x-required-role": "workspace_owner",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MapSourceReviewInputV11"
              }
            }
          }
        }
      }
    },
    "/api/map-sources/items/{item_id}/reject": {
      "post": {
        "operationId": "post_api_map_sources_items_item_id_reject_V11",
        "tags": [
          "Źródła mapy"
        ],
        "summary": "Odrzuć propozycję i zatrzymaj oczekującą analizę",
        "description": "Wyłącznie staged z aktualną wersją; odrzucona treść pozostaje prywatna do retencji.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.\n\nWyłącznie aktualny właściciel własnej organizacji, bez /api/v1 i bez administracyjnego scope Bearer.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapSourceItemV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/map-sources.php"
        ],
        "x-required-role": "workspace_owner",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "version"
                ],
                "properties": {
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647,
                    "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/partner-content/public/{portal_id}": {
      "get": {
        "operationId": "get_api_partner_content_public_portal_id_V11",
        "tags": [
          "Strony partnera"
        ],
        "summary": "Odczytaj zatwierdzone strony aktywnego portalu",
        "description": "Anonimowy odczyt zatwierdzonego snapshotu; żadnych parametrów query. Aktualna aktywność portalu i subskrypcji sprawdzana na każde GET/HEAD. 300 żądań/min.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [],
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PartnerPublicPagesV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/partner-content.php"
        ]
      },
      "head": {
        "operationId": "get_api_partner_content_public_portal_id_V11Head",
        "tags": [
          "Strony partnera"
        ],
        "summary": "Odczytaj zatwierdzone strony aktywnego portalu — HEAD",
        "description": "Anonimowy odczyt zatwierdzonego snapshotu; żadnych parametrów query. Aktualna aktywność portalu i subskrypcji sprawdzana na każde GET/HEAD. 300 żądań/min.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [],
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL."
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia."
          },
          "429": {
            "description": "Przekroczono limit żądań."
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska."
          }
        },
        "x-source-files": [
          "app/routes/partner-content.php"
        ]
      }
    },
    "/api/partner-content/public/{portal_id}/{slug}": {
      "get": {
        "operationId": "get_api_partner_content_public_portal_id_slug_V11",
        "tags": [
          "Strony partnera"
        ],
        "summary": "Odczytaj zatwierdzone strony aktywnego portalu",
        "description": "Anonimowy odczyt zatwierdzonego snapshotu; żadnych parametrów query. Aktualna aktywność portalu i subskrypcji sprawdzana na każde GET/HEAD. 300 żądań/min.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [],
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "about",
                "contact",
                "privacy",
                "terms",
                "accessibility"
              ]
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PartnerPublicPageV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/partner-content.php"
        ]
      },
      "head": {
        "operationId": "get_api_partner_content_public_portal_id_slug_V11Head",
        "tags": [
          "Strony partnera"
        ],
        "summary": "Odczytaj zatwierdzone strony aktywnego portalu — HEAD",
        "description": "Anonimowy odczyt zatwierdzonego snapshotu; żadnych parametrów query. Aktualna aktywność portalu i subskrypcji sprawdzana na każde GET/HEAD. 300 żądań/min.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [],
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "about",
                "contact",
                "privacy",
                "terms",
                "accessibility"
              ]
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL."
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia."
          },
          "429": {
            "description": "Przekroczono limit żądań."
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska."
          }
        },
        "x-source-files": [
          "app/routes/partner-content.php"
        ]
      }
    },
    "/api/partner-content": {
      "get": {
        "operationId": "get_api_partner_content_V11",
        "tags": [
          "Strony partnera"
        ],
        "summary": "Panel treści własnych portali",
        "description": "Funkcja SaaS musi być włączona. Plain text z bezpiecznym renderowaniem; brak HTML/JS i dowolnych slug. Publikacja jest oddzielna od edycji szkicu. 60 zmian/10 min.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.\n\nWyłącznie aktualny właściciel własnej organizacji, bez /api/v1 i bez administracyjnego scope Bearer.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "portal_id",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Własny portal; domyślnie pierwszy własny portal."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PartnerDashboardV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/partner-content.php"
        ],
        "x-required-role": "workspace_owner"
      }
    },
    "/api/partner-content/portals/{portal_id}/policy": {
      "put": {
        "operationId": "put_api_partner_content_portals_portal_id_policy_V11",
        "tags": [
          "Strony partnera"
        ],
        "summary": "Zapisz deklarację i checklistę operatora portalu",
        "description": "Funkcja SaaS musi być włączona. Plain text z bezpiecznym renderowaniem; brak HTML/JS i dowolnych slug. Publikacja jest oddzielna od edycji szkicu. 60 zmian/10 min.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.\n\nWyłącznie aktualny właściciel własnej organizacji, bez /api/v1 i bez administracyjnego scope Bearer.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PartnerPolicyV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/partner-content.php"
        ],
        "x-required-role": "workspace_owner",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerPolicyInputV11"
              }
            }
          }
        }
      }
    },
    "/api/partner-content/portals/{portal_id}/pages/{slug}": {
      "put": {
        "operationId": "put_api_partner_content_portals_portal_id_pages_slug_V11",
        "tags": [
          "Strony partnera"
        ],
        "summary": "Zapisz prywatny szkic strony",
        "description": "Funkcja SaaS musi być włączona. Plain text z bezpiecznym renderowaniem; brak HTML/JS i dowolnych slug. Publikacja jest oddzielna od edycji szkicu. 60 zmian/10 min.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.\n\nWyłącznie aktualny właściciel własnej organizacji, bez /api/v1 i bez administracyjnego scope Bearer.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "about",
                "contact",
                "privacy",
                "terms",
                "accessibility"
              ]
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PartnerPageV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/partner-content.php"
        ],
        "x-required-role": "workspace_owner",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerPageInputV11"
              }
            }
          }
        }
      }
    },
    "/api/partner-content/portals/{portal_id}/pages/{slug}/publication": {
      "post": {
        "operationId": "post_api_partner_content_portals_portal_id_pages_slug_publication_V11",
        "tags": [
          "Strony partnera"
        ],
        "summary": "Opublikuj osobny snapshot lub cofnij publikację",
        "description": "Funkcja SaaS musi być włączona. Plain text z bezpiecznym renderowaniem; brak HTML/JS i dowolnych slug. Publikacja jest oddzielna od edycji szkicu. 60 zmian/10 min.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.\n\nWyłącznie aktualny właściciel własnej organizacji, bez /api/v1 i bez administracyjnego scope Bearer.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "about",
                "contact",
                "privacy",
                "terms",
                "accessibility"
              ]
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PartnerPageV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/partner-content.php"
        ],
        "x-required-role": "workspace_owner",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartnerPublicationInputV11"
              }
            }
          }
        }
      }
    },
    "/api/partner-content/portals/{portal_id}/pages/{slug}/history": {
      "get": {
        "operationId": "get_api_partner_content_portals_portal_id_pages_slug_history_V11",
        "tags": [
          "Strony partnera"
        ],
        "summary": "Odczytaj 30 ostatnich poprzednich wersji",
        "description": "Funkcja SaaS musi być włączona. Plain text z bezpiecznym renderowaniem; brak HTML/JS i dowolnych slug. Publikacja jest oddzielna od edycji szkicu. 60 zmian/10 min.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.\n\nWyłącznie aktualny właściciel własnej organizacji, bez /api/v1 i bez administracyjnego scope Bearer.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "portal_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "about",
                "contact",
                "privacy",
                "terms",
                "accessibility"
              ]
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PartnerPageHistoryV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/partner-content.php"
        ],
        "x-required-role": "workspace_owner"
      }
    },
    "/p/{slug}": {
      "get": {
        "operationId": "get_p_slug_V11",
        "tags": [
          "Strony partnera"
        ],
        "summary": "Publiczna strona partnera na jego domenie",
        "description": "Trasa serwera BFF cienkiego klienta, nie hosta core. portal_id bierze wyłącznie z konfiguracji aktywnej domeny; query nie pozwala wskazać innego portalu. BFF sprawdza schema/portal/slug/bounds, escapuje plain text i używa własnego canonical origin. Wygasły portal lub cofnięta publikacja nie korzystają ze starej kopii.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "tenant-bff",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "about",
                "contact",
                "privacy",
                "terms",
                "accessibility"
              ]
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Bezpiecznie renderowany HTML z zatwierdzonego snapshotu; Cache-Control: no-store.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "421": {
            "description": "Nieaktywny, obcy lub nierozpoznany host portalu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Core zwrócił niedostępną lub nieprawidłową projekcję.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "clients/app/Application.php"
        ],
        "servers": [
          {
            "url": "{portal_origin}",
            "description": "Zatwierdzony origin aktywnego klienta SaaS/BFF. Domyślny adres jest przykładem, nie deklaracją wdrożenia.",
            "variables": {
              "portal_origin": {
                "default": "https://portal.example.org",
                "description": "Dokładny origin własnego portalu z DNS/TLS; bez ścieżki i query."
              }
            }
          }
        ]
      },
      "head": {
        "operationId": "get_p_slug_V11Head",
        "tags": [
          "Strony partnera"
        ],
        "summary": "Publiczna strona partnera na jego domenie — HEAD",
        "description": "Trasa serwera BFF cienkiego klienta, nie hosta core. portal_id bierze wyłącznie z konfiguracji aktywnej domeny; query nie pozwala wskazać innego portalu. BFF sprawdza schema/portal/slug/bounds, escapuje plain text i używa własnego canonical origin. Wygasły portal lub cofnięta publikacja nie korzystają ze starej kopii.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "tenant-bff",
        "security": [],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "about",
                "contact",
                "privacy",
                "terms",
                "accessibility"
              ]
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Bezpiecznie renderowany HTML z zatwierdzonego snapshotu; Cache-Control: no-store."
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL."
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia."
          },
          "429": {
            "description": "Przekroczono limit żądań."
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska."
          },
          "421": {
            "description": "Nieaktywny, obcy lub nierozpoznany host portalu."
          },
          "502": {
            "description": "Core zwrócił niedostępną lub nieprawidłową projekcję."
          }
        },
        "x-source-files": [
          "clients/app/Application.php"
        ],
        "servers": [
          {
            "url": "{portal_origin}",
            "description": "Zatwierdzony origin aktywnego klienta SaaS/BFF. Domyślny adres jest przykładem, nie deklaracją wdrożenia.",
            "variables": {
              "portal_origin": {
                "default": "https://portal.example.org",
                "description": "Dokładny origin własnego portalu z DNS/TLS; bez ścieżki i query."
              }
            }
          }
        ]
      }
    },
    "/api/incidents/{incident_id}/replay": {
      "get": {
        "operationId": "get_api_incidents_incident_id_replay_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Odczytaj opracowanie i możliwości lokalnego renderera",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.\n\nAlternatywnie Authorization: Bearer wymaga incidents:read. Jawny nagłówek Authorization nigdy nie przechodzi awaryjnie na cookie; Bearer nie wymaga CSRF ani nagłówka organizacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ReplayCurrentV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only"
      },
      "put": {
        "operationId": "put_api_incidents_incident_id_replay_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Zapisz wersję opracowania",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.\n\nAlternatywnie Authorization: Bearer wymaga incidents:write. Jawny nagłówek Authorization nigdy nie przechodzi awaryjnie na cookie; Bearer nie wymaga CSRF ani nagłówka organizacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ReplaySaveResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:write"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-session-required-headers": [
          "X-CSRF-Token",
          "X-Telemonit-Workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaySaveInputV11"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete_api_incidents_incident_id_replay_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Usuń lokalne opracowanie, źródła i eksporty",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.\n\nAlternatywnie Authorization: Bearer wymaga incidents:write. Jawny nagłówek Authorization nigdy nie przechodzi awaryjnie na cookie; Bearer nie wymaga CSRF ani nagłówka organizacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "incident_id",
                        "deleted",
                        "local_files_removed",
                        "notice"
                      ],
                      "properties": {
                        "incident_id": {
                          "$ref": "#/components/schemas/Id"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "local_files_removed": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "notice": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:write"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-session-required-headers": [
          "X-CSRF-Token",
          "X-Telemonit-Workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "version",
                  "confirmed"
                ],
                "properties": {
                  "version": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "confirmed": {
                    "type": "boolean",
                    "const": true
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/v1/incidents/{incident_id}/replay": {
      "get": {
        "operationId": "get_api_v1_incidents_incident_id_replay_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Odczytaj opracowanie i możliwości lokalnego renderera",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer incidents:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ReplayCurrentV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-alias-of": "/api/incidents/{incident_id}/replay"
      },
      "put": {
        "operationId": "put_api_v1_incidents_incident_id_replay_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Zapisz wersję opracowania",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer incidents:write; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ReplaySaveResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:write"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaySaveInputV11"
              }
            }
          }
        },
        "x-alias-of": "/api/incidents/{incident_id}/replay"
      },
      "delete": {
        "operationId": "delete_api_v1_incidents_incident_id_replay_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Usuń lokalne opracowanie, źródła i eksporty",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer incidents:write; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "incident_id",
                        "deleted",
                        "local_files_removed",
                        "notice"
                      ],
                      "properties": {
                        "incident_id": {
                          "$ref": "#/components/schemas/Id"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "local_files_removed": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "notice": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:write"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "version",
                  "confirmed"
                ],
                "properties": {
                  "version": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "confirmed": {
                    "type": "boolean",
                    "const": true
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "x-alias-of": "/api/incidents/{incident_id}/replay"
      }
    },
    "/api/incidents/{incident_id}/replay/import": {
      "post": {
        "operationId": "post_api_incidents_incident_id_replay_import_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Zaimportuj ślad JSON/GeoJSON/GPX",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.\n\nAlternatywnie Authorization: Bearer wymaga incidents:write. Jawny nagłówek Authorization nigdy nie przechodzi awaryjnie na cookie; Bearer nie wymaga CSRF ani nagłówka organizacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ReplayImportResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:write"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-session-required-headers": [
          "X-CSRF-Token",
          "X-Telemonit-Workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplayImportInputV11"
              }
            }
          }
        }
      }
    },
    "/api/v1/incidents/{incident_id}/replay/import": {
      "post": {
        "operationId": "post_api_v1_incidents_incident_id_replay_import_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Zaimportuj ślad JSON/GeoJSON/GPX",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer incidents:write; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ReplayImportResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:write"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplayImportInputV11"
              }
            }
          }
        },
        "x-alias-of": "/api/incidents/{incident_id}/replay/import"
      }
    },
    "/api/incidents/{incident_id}/replay/evidence": {
      "post": {
        "operationId": "post_api_incidents_incident_id_replay_evidence_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Dołącz lokalny plik źródłowy",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.\n\nAlternatywnie Authorization: Bearer wymaga incidents:write. Jawny nagłówek Authorization nigdy nie przechodzi awaryjnie na cookie; Bearer nie wymaga CSRF ani nagłówka organizacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ReplayEvidenceResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:write"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-session-required-headers": [
          "X-CSRF-Token",
          "X-Telemonit-Workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ReplayUploadInputV11"
              }
            }
          }
        }
      }
    },
    "/api/v1/incidents/{incident_id}/replay/evidence": {
      "post": {
        "operationId": "post_api_v1_incidents_incident_id_replay_evidence_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Dołącz lokalny plik źródłowy",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer incidents:write; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ReplayEvidenceResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:write"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ReplayUploadInputV11"
              }
            }
          }
        },
        "x-alias-of": "/api/incidents/{incident_id}/replay/evidence"
      }
    },
    "/api/incidents/{incident_id}/replay/snapshots": {
      "post": {
        "operationId": "post_api_incidents_incident_id_replay_snapshots_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Utwórz zatwierdzoną niezmienną migawkę",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.\n\nAlternatywnie Authorization: Bearer wymaga incidents:write. Jawny nagłówek Authorization nigdy nie przechodzi awaryjnie na cookie; Bearer nie wymaga CSRF ani nagłówka organizacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ReplaySnapshotResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:write"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-session-required-headers": [
          "X-CSRF-Token",
          "X-Telemonit-Workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaySnapshotInputV11"
              }
            }
          }
        }
      }
    },
    "/api/v1/incidents/{incident_id}/replay/snapshots": {
      "post": {
        "operationId": "post_api_v1_incidents_incident_id_replay_snapshots_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Utwórz zatwierdzoną niezmienną migawkę",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer incidents:write; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ReplaySnapshotResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:write"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaySnapshotInputV11"
              }
            }
          }
        },
        "x-alias-of": "/api/incidents/{incident_id}/replay/snapshots"
      }
    },
    "/api/incident-replays/{snapshot_id}": {
      "get": {
        "operationId": "get_api_incident_replays_snapshot_id_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Odczytaj migawkę i potwierdzenia kont",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.\n\nAlternatywnie Authorization: Bearer wymaga incidents:read. Jawny nagłówek Authorization nigdy nie przechodzi awaryjnie na cookie; Bearer nie wymaga CSRF ani nagłówka organizacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "snapshot",
                        "attestations"
                      ],
                      "properties": {
                        "snapshot": {
                          "$ref": "#/components/schemas/ReplaySnapshotV11"
                        },
                        "attestations": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ReplayAttestationV11"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only"
      }
    },
    "/api/v1/incident-replays/{snapshot_id}": {
      "get": {
        "operationId": "get_api_v1_incident_replays_snapshot_id_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Odczytaj migawkę i potwierdzenia kont",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer incidents:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "snapshot",
                        "attestations"
                      ],
                      "properties": {
                        "snapshot": {
                          "$ref": "#/components/schemas/ReplaySnapshotV11"
                        },
                        "attestations": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ReplayAttestationV11"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-alias-of": "/api/incident-replays/{snapshot_id}"
      }
    },
    "/api/incident-replays/{snapshot_id}/attestations": {
      "get": {
        "operationId": "get_api_incident_replays_snapshot_id_attestations_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Odczytaj potwierdzenia przypisane do hasha migawki",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.\n\nAlternatywnie Authorization: Bearer wymaga incidents:read. Jawny nagłówek Authorization nigdy nie przechodzi awaryjnie na cookie; Bearer nie wymaga CSRF ani nagłówka organizacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ReplayAttestationV11"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only"
      },
      "post": {
        "operationId": "post_api_incident_replays_snapshot_id_attestations_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Osobiście potwierdź przegląd migawki",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika. Wyłącznie interaktywna sesja. Każdy Bearer i /api/v1 POST są odrzucane 403; nie istnieje alias do podpisywania przez token. To oświadczenie konta, nie kwalifikowany podpis.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ReplayAttestationResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplayAttestationInputV11"
              }
            }
          }
        }
      }
    },
    "/api/v1/incident-replays/{snapshot_id}/attestations": {
      "get": {
        "operationId": "get_api_v1_incident_replays_snapshot_id_attestations_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Odczytaj potwierdzenia przypisane do hasha migawki",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer incidents:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ReplayAttestationV11"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-alias-of": "/api/incident-replays/{snapshot_id}/attestations"
      }
    },
    "/api/incident-replays/{snapshot_id}/exports": {
      "post": {
        "operationId": "post_api_incident_replays_snapshot_id_exports_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Stara operacja eksportu — wymagany plan POA",
        "description": "Ta zachowana trasa po weryfikacji uwierzytelnienia i ACL zwraca 409 poa_plan_required. Nie renderuje i nie ma odpowiedzi 201. Użyj POST /api/poa/replay-export/inputs, następnie /requests i /processes/{process_id}/authorize. Szczegóły błędu zawierają input_url i request_url. Sesja nadal wymaga CSRF i nagłówka organizacji; Bearer incidents:read.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Bezpośredni eksport zastąpiony przygotowaniem i zatwierdzeniem procesu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "poa_plan_required",
              "context_changed"
            ]
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-session-required-headers": [
          "X-CSRF-Token",
          "X-Telemonit-Workspace"
        ],
        "deprecated": true,
        "x-modified-version": "0.12.0"
      }
    },
    "/api/v1/incident-replays/{snapshot_id}/exports": {
      "post": {
        "operationId": "post_api_v1_incident_replays_snapshot_id_exports_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Stara operacja eksportu — wymagany plan POA",
        "description": "Ta zachowana trasa po weryfikacji uwierzytelnienia i ACL zwraca 409 poa_plan_required. Nie renderuje i nie ma odpowiedzi 201. Użyj POST /api/poa/replay-export/inputs, następnie /requests i /processes/{process_id}/authorize. Szczegóły błędu zawierają input_url i request_url. Sesja nadal wymaga CSRF i nagłówka organizacji; Bearer incidents:read.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Bezpośredni eksport zastąpiony przygotowaniem i zatwierdzeniem procesu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "poa_plan_required",
              "context_changed"
            ]
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-alias-of": "/api/incident-replays/{snapshot_id}/exports",
        "deprecated": true,
        "x-modified-version": "0.12.0"
      }
    },
    "/api/incident-replays/exports/{export_id}": {
      "get": {
        "operationId": "get_api_incident_replays_exports_export_id_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Sprawdź metadane i integralność eksportu",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.\n\nAlternatywnie Authorization: Bearer wymaga incidents:read. Jawny nagłówek Authorization nigdy nie przechodzi awaryjnie na cookie; Bearer nie wymaga CSRF ani nagłówka organizacji.\n\n0.12: Eksport powiązany z POA przechodzi dodatkowo kontrolę succeeded receipt i ponowny readback. Historyczny eksport bez procesu zachowuje dotychczasowe ACL, retencję i kontrolę SHA256.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "export_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Metadane; dla eksportu POA także process_id po sprawdzeniu receipt i readbacku.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ReplayExportInfoV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-modified-version": "0.12.0"
      }
    },
    "/api/v1/incident-replays/exports/{export_id}": {
      "get": {
        "operationId": "get_api_v1_incident_replays_exports_export_id_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Sprawdź metadane i integralność eksportu",
        "description": "Aktualny ACL incydentu oraz historyczny zakres zapisany przy źródle/migawce muszą jednocześnie pozwalać na odczyt. Wygaśnięcie/cofnięcie uprawnień działa także dla gotowych plików. Bez publicznej projekcji replay. 120 odczytów/min, 30 zapisów/min na użytkownika.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer incidents:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.\n\n0.12: Eksport powiązany z POA przechodzi dodatkowo kontrolę succeeded receipt i ponowny readback. Historyczny eksport bez procesu zachowuje dotychczasowe ACL, retencję i kontrolę SHA256.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "export_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Metadane; dla eksportu POA także process_id po sprawdzeniu receipt i readbacku.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ReplayExportInfoV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-alias-of": "/api/incident-replays/exports/{export_id}",
        "x-modified-version": "0.12.0"
      }
    },
    "/api/incidents/{incident_id}/replay/evidence/{evidence_id}/file": {
      "get": {
        "operationId": "get_api_incidents_incident_id_replay_evidence_evidence_id_file_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Pobierz uprawniony oryginał źródła",
        "description": "Jedyne endpointy replay obsługujące HEAD. Brak treści odpowiedzi HEAD nie jest brakiem kontroli uprawnień. Brak publicznego URL i brak obsługi pobierania dowolnego adresu z Internetu.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.\n\nAlternatywnie Authorization: Bearer wymaga incidents:read. Jawny nagłówek Authorization nigdy nie przechodzi awaryjnie na cookie; Bearer nie wymaga CSRF ani nagłówka organizacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "evidence_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Surowy plik attachment; bez koperty data. GET/HEAD sprawdzają aktualny i historyczny ACL, retencję, obecność i SHA256 pliku.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "X-Content-SHA256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "description": "Hash SHA256 pobieranego pliku. Serwer nie deklaruje ETag, Range ani 304."
              }
            },
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "video/mp4": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "video/webm": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "video/ogg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/mp4": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/webm": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/mpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/wav": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/ogg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/gpx+xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only"
      },
      "head": {
        "operationId": "get_api_incidents_incident_id_replay_evidence_evidence_id_file_V11Head",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Pobierz uprawniony oryginał źródła — HEAD",
        "description": "Jedyne endpointy replay obsługujące HEAD. Brak treści odpowiedzi HEAD nie jest brakiem kontroli uprawnień. Brak publicznego URL i brak obsługi pobierania dowolnego adresu z Internetu.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.\n\nAlternatywnie Authorization: Bearer wymaga incidents:read. Jawny nagłówek Authorization nigdy nie przechodzi awaryjnie na cookie; Bearer nie wymaga CSRF ani nagłówka organizacji.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "evidence_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Surowy plik attachment; bez koperty data. GET/HEAD sprawdzają aktualny i historyczny ACL, retencję, obecność i SHA256 pliku.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "X-Content-SHA256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "description": "Hash SHA256 pobieranego pliku. Serwer nie deklaruje ETag, Range ani 304."
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem."
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji."
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL."
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów."
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł."
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia."
          },
          "429": {
            "description": "Przekroczono limit żądań."
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only"
      }
    },
    "/api/v1/incidents/{incident_id}/replay/evidence/{evidence_id}/file": {
      "get": {
        "operationId": "get_api_v1_incidents_incident_id_replay_evidence_evidence_id_file_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Pobierz uprawniony oryginał źródła",
        "description": "Jedyne endpointy replay obsługujące HEAD. Brak treści odpowiedzi HEAD nie jest brakiem kontroli uprawnień. Brak publicznego URL i brak obsługi pobierania dowolnego adresu z Internetu.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer incidents:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "evidence_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Surowy plik attachment; bez koperty data. GET/HEAD sprawdzają aktualny i historyczny ACL, retencję, obecność i SHA256 pliku.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "X-Content-SHA256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "description": "Hash SHA256 pobieranego pliku. Serwer nie deklaruje ETag, Range ani 304."
              }
            },
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "video/mp4": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "video/webm": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "video/ogg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/mp4": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/webm": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/mpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/wav": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/ogg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/gpx+xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-alias-of": "/api/incidents/{incident_id}/replay/evidence/{evidence_id}/file"
      },
      "head": {
        "operationId": "get_api_v1_incidents_incident_id_replay_evidence_evidence_id_file_V11Head",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Pobierz uprawniony oryginał źródła — HEAD",
        "description": "Jedyne endpointy replay obsługujące HEAD. Brak treści odpowiedzi HEAD nie jest brakiem kontroli uprawnień. Brak publicznego URL i brak obsługi pobierania dowolnego adresu z Internetu.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer incidents:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "evidence_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Surowy plik attachment; bez koperty data. GET/HEAD sprawdzają aktualny i historyczny ACL, retencję, obecność i SHA256 pliku.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "X-Content-SHA256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "description": "Hash SHA256 pobieranego pliku. Serwer nie deklaruje ETag, Range ani 304."
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem."
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji."
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL."
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów."
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł."
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia."
          },
          "429": {
            "description": "Przekroczono limit żądań."
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-alias-of": "/api/incidents/{incident_id}/replay/evidence/{evidence_id}/file"
      }
    },
    "/api/incident-replays/exports/{export_id}/file": {
      "get": {
        "operationId": "get_api_incident_replays_exports_export_id_file_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Pobierz gotowy plik opracowania",
        "description": "Jedyne endpointy replay obsługujące HEAD. Brak treści odpowiedzi HEAD nie jest brakiem kontroli uprawnień. Brak publicznego URL i brak obsługi pobierania dowolnego adresu z Internetu.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.\n\nAlternatywnie Authorization: Bearer wymaga incidents:read. Jawny nagłówek Authorization nigdy nie przechodzi awaryjnie na cookie; Bearer nie wymaga CSRF ani nagłówka organizacji.\n\n0.12: Eksport powiązany z POA przechodzi dodatkowo kontrolę succeeded receipt i ponowny readback. Historyczny eksport bez procesu zachowuje dotychczasowe ACL, retencję i kontrolę SHA256.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "export_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Surowy plik attachment; bez koperty data. GET/HEAD sprawdzają aktualny i historyczny ACL, retencję, obecność i SHA256 pliku.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "X-Content-SHA256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "description": "Hash SHA256 pobieranego pliku. Serwer nie deklaruje ETag, Range ani 304."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReplayExportDocumentV11"
                }
              },
              "application/geo+json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/gif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "video/mp4": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/vtt": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/x-subrip": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-modified-version": "0.12.0"
      },
      "head": {
        "operationId": "get_api_incident_replays_exports_export_id_file_V11Head",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Pobierz gotowy plik opracowania — HEAD",
        "description": "Jedyne endpointy replay obsługujące HEAD. Brak treści odpowiedzi HEAD nie jest brakiem kontroli uprawnień. Brak publicznego URL i brak obsługi pobierania dowolnego adresu z Internetu.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.\n\nAlternatywnie Authorization: Bearer wymaga incidents:read. Jawny nagłówek Authorization nigdy nie przechodzi awaryjnie na cookie; Bearer nie wymaga CSRF ani nagłówka organizacji.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.\n\n0.12: Eksport powiązany z POA przechodzi dodatkowo kontrolę succeeded receipt i ponowny readback. Historyczny eksport bez procesu zachowuje dotychczasowe ACL, retencję i kontrolę SHA256.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "export_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Surowy plik attachment; bez koperty data. GET/HEAD sprawdzają aktualny i historyczny ACL, retencję, obecność i SHA256 pliku.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "X-Content-SHA256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "description": "Hash SHA256 pobieranego pliku. Serwer nie deklaruje ETag, Range ani 304."
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem."
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji."
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL."
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów."
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł."
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia."
          },
          "429": {
            "description": "Przekroczono limit żądań."
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-modified-version": "0.12.0"
      }
    },
    "/api/v1/incident-replays/exports/{export_id}/file": {
      "get": {
        "operationId": "get_api_v1_incident_replays_exports_export_id_file_V11",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Pobierz gotowy plik opracowania",
        "description": "Jedyne endpointy replay obsługujące HEAD. Brak treści odpowiedzi HEAD nie jest brakiem kontroli uprawnień. Brak publicznego URL i brak obsługi pobierania dowolnego adresu z Internetu.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer incidents:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.\n\n0.12: Eksport powiązany z POA przechodzi dodatkowo kontrolę succeeded receipt i ponowny readback. Historyczny eksport bez procesu zachowuje dotychczasowe ACL, retencję i kontrolę SHA256.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "export_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Surowy plik attachment; bez koperty data. GET/HEAD sprawdzają aktualny i historyczny ACL, retencję, obecność i SHA256 pliku.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "X-Content-SHA256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "description": "Hash SHA256 pobieranego pliku. Serwer nie deklaruje ETag, Range ani 304."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReplayExportDocumentV11"
                }
              },
              "application/geo+json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/gif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "video/mp4": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/vtt": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/x-subrip": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-alias-of": "/api/incident-replays/exports/{export_id}/file",
        "x-modified-version": "0.12.0"
      },
      "head": {
        "operationId": "get_api_v1_incident_replays_exports_export_id_file_V11Head",
        "tags": [
          "Opracowanie incydentu"
        ],
        "summary": "Pobierz gotowy plik opracowania — HEAD",
        "description": "Jedyne endpointy replay obsługujące HEAD. Brak treści odpowiedzi HEAD nie jest brakiem kontroli uprawnień. Brak publicznego URL i brak obsługi pobierania dowolnego adresu z Internetu.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer incidents:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.\n\n0.12: Eksport powiązany z POA przechodzi dodatkowo kontrolę succeeded receipt i ponowny readback. Historyczny eksport bez procesu zachowuje dotychczasowe ACL, retencję i kontrolę SHA256.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "export_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Surowy plik attachment; bez koperty data. GET/HEAD sprawdzają aktualny i historyczny ACL, retencję, obecność i SHA256 pliku.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "X-Content-SHA256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "description": "Hash SHA256 pobieranego pliku. Serwer nie deklaruje ETag, Range ani 304."
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem."
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji."
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL."
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów."
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł."
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia."
          },
          "429": {
            "description": "Przekroczono limit żądań."
          }
        },
        "x-source-files": [
          "app/routes/incident-replay.php"
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-alias-of": "/api/incident-replays/exports/{export_id}/file",
        "x-modified-version": "0.12.0"
      }
    },
    "/api/community/state": {
      "get": {
        "operationId": "get_api_community_state_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Stan prywatnych rozmów, spotkań i dobrowolnej lokalizacji",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku). Operacja tylko sesyjna; celowo brak aliasu /api/v1.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CommunityStateV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php"
        ]
      }
    },
    "/api/community/threads": {
      "get": {
        "operationId": "get_api_community_threads_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Lista dostępnych rozmów",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CommunityThreadV11"
                          },
                          "maxItems": 1000
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php"
        ]
      },
      "post": {
        "operationId": "post_api_community_threads_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Utwórz prywatną rozmowę przy miejscu",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CommunityThreadDetailV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityThreadInputV11"
              }
            }
          }
        }
      }
    },
    "/api/v1/community/threads": {
      "get": {
        "operationId": "get_api_v1_community_threads_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Lista dostępnych rozmów",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer community:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CommunityThreadV11"
                          },
                          "maxItems": 1000
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php",
          "app/routes/field-context-api.php"
        ],
        "x-required-scopes": [
          "community:read"
        ],
        "x-alias-of": "/api/community/threads"
      },
      "post": {
        "operationId": "post_api_v1_community_threads_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Utwórz prywatną rozmowę przy miejscu",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer community:write; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CommunityThreadDetailV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php",
          "app/routes/field-context-api.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityThreadInputV11"
              }
            }
          }
        },
        "x-required-scopes": [
          "community:write"
        ],
        "x-alias-of": "/api/community/threads"
      }
    },
    "/api/community/threads/{thread_id}": {
      "get": {
        "operationId": "get_api_community_threads_thread_id_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Rozmowa z ostatnimi wiadomościami",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "thread_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CommunityThreadDetailV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php"
        ]
      },
      "delete": {
        "operationId": "delete_api_community_threads_thread_id_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Zamknij rozmowę i cofnij jej publikację",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "thread_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "closed"
                      ],
                      "properties": {
                        "id": {
                          "$ref": "#/components/schemas/Id"
                        },
                        "closed": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "version"
                ],
                "properties": {
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647,
                    "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/v1/community/threads/{thread_id}": {
      "get": {
        "operationId": "get_api_v1_community_threads_thread_id_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Rozmowa z ostatnimi wiadomościami",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer community:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "thread_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CommunityThreadDetailV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php",
          "app/routes/field-context-api.php"
        ],
        "x-required-scopes": [
          "community:read"
        ],
        "x-alias-of": "/api/community/threads/{thread_id}"
      },
      "delete": {
        "operationId": "delete_api_v1_community_threads_thread_id_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Zamknij rozmowę i cofnij jej publikację",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer community:write; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "thread_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "closed"
                      ],
                      "properties": {
                        "id": {
                          "$ref": "#/components/schemas/Id"
                        },
                        "closed": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php",
          "app/routes/field-context-api.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "version"
                ],
                "properties": {
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647,
                    "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "x-required-scopes": [
          "community:write"
        ],
        "x-alias-of": "/api/community/threads/{thread_id}"
      }
    },
    "/api/community/threads/{thread_id}/messages": {
      "get": {
        "operationId": "get_api_community_threads_thread_id_messages_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Ostatnie 100 wiadomości rozmowy",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "thread_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CommunityMessageV11"
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php"
        ]
      },
      "post": {
        "operationId": "post_api_community_threads_thread_id_messages_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Dodaj wiadomość do rozmowy",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "thread_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CommunityMessageResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "request_id",
                  "body"
                ],
                "properties": {
                  "request_id": {
                    "$ref": "#/components/schemas/RequestId"
                  },
                  "body": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4000
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/v1/community/threads/{thread_id}/messages": {
      "get": {
        "operationId": "get_api_v1_community_threads_thread_id_messages_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Ostatnie 100 wiadomości rozmowy",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer community:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "thread_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CommunityMessageV11"
                          },
                          "maxItems": 100
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php",
          "app/routes/field-context-api.php"
        ],
        "x-required-scopes": [
          "community:read"
        ],
        "x-alias-of": "/api/community/threads/{thread_id}/messages"
      },
      "post": {
        "operationId": "post_api_v1_community_threads_thread_id_messages_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Dodaj wiadomość do rozmowy",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer community:write; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "thread_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CommunityMessageResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php",
          "app/routes/field-context-api.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "request_id",
                  "body"
                ],
                "properties": {
                  "request_id": {
                    "$ref": "#/components/schemas/RequestId"
                  },
                  "body": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4000
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "x-required-scopes": [
          "community:write"
        ],
        "x-alias-of": "/api/community/threads/{thread_id}/messages"
      }
    },
    "/api/community/threads/{thread_id}/publication": {
      "post": {
        "operationId": "post_api_community_threads_thread_id_publication_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Opublikuj odrębny komunikat o miejscu",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku). Operacja tylko sesyjna; celowo brak aliasu /api/v1. Tylko owner; osobny zatwierdzony tekst i miejsce, bez rozmowy i GPS osób.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "thread_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CommunityThreadDetailV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityPublicationInputV11"
              }
            }
          }
        },
        "x-required-role": "workspace_owner"
      }
    },
    "/api/community/meetings": {
      "get": {
        "operationId": "get_api_community_meetings_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Własne zaproszenia i potwierdzenia spotkań",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CommunityMeetingV11"
                          },
                          "maxItems": 200
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php"
        ]
      },
      "post": {
        "operationId": "post_api_community_meetings_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Zaproś jedną uprawnioną osobę",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CommunityMeetingV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityMeetingInputV11"
              }
            }
          }
        }
      }
    },
    "/api/v1/community/meetings": {
      "get": {
        "operationId": "get_api_v1_community_meetings_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Własne zaproszenia i potwierdzenia spotkań",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer community:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CommunityMeetingV11"
                          },
                          "maxItems": 200
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php",
          "app/routes/field-context-api.php"
        ],
        "x-required-scopes": [
          "community:read"
        ],
        "x-alias-of": "/api/community/meetings"
      },
      "post": {
        "operationId": "post_api_v1_community_meetings_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Zaproś jedną uprawnioną osobę",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku).\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer community:write; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CommunityMeetingV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php",
          "app/routes/field-context-api.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityMeetingInputV11"
              }
            }
          }
        },
        "x-required-scopes": [
          "community:write"
        ],
        "x-alias-of": "/api/community/meetings"
      }
    },
    "/api/community/meetings/{meeting_id}/decision": {
      "post": {
        "operationId": "post_api_community_meetings_meeting_id_decision_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Przyjmij, odrzuć lub anuluj spotkanie",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku). Operacja tylko sesyjna; celowo brak aliasu /api/v1.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "meeting_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CommunityMeetingV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "version",
                  "decision"
                ],
                "properties": {
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647,
                    "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
                  },
                  "decision": {
                    "type": "string",
                    "enum": [
                      "accept",
                      "decline",
                      "cancel"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/community/meetings/{meeting_id}/confirmation": {
      "post": {
        "operationId": "post_api_community_meetings_meeting_id_confirmation_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Potwierdź własną obecność na spotkaniu",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku). Operacja tylko sesyjna; celowo brak aliasu /api/v1.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "meeting_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CommunityMeetingV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityConfirmationInputV11"
              }
            }
          }
        }
      }
    },
    "/api/community/presence/start": {
      "post": {
        "operationId": "post_api_community_presence_start_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Włącz własną pozycję dla wskazanych odbiorców",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku). Operacja tylko sesyjna; celowo brak aliasu /api/v1.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CommunityPresenceStartedV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityPresenceStartV11"
              }
            }
          }
        }
      }
    },
    "/api/community/presence/update": {
      "post": {
        "operationId": "post_api_community_presence_update_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Przekaż świeży odczyt własnego GPS",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku). Operacja tylko sesyjna; celowo brak aliasu /api/v1.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CommunityPresenceUpdatedV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityPresenceUpdateV11"
              }
            }
          }
        }
      }
    },
    "/api/community/presence/stop": {
      "post": {
        "operationId": "post_api_community_presence_stop_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Zakończ własne udostępnianie pozycji",
        "description": "Bieżący zakres organizacji/zespołu/odbiorców i punktu; wygaśnięte/zamknięte rozmowy są niedostępne. Brak publicznego śledzenia osób i automatycznego wykrywania ludzi po Bluetooth. Listy nie mają paginacji: <=1000 aktywnych rozmów (powyżej 422), 200 spotkań, 100 ostatnich wiadomości (limit 1000 zapisanych w wątku). Operacja tylko sesyjna; celowo brak aliasu /api/v1.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "active"
                      ],
                      "properties": {
                        "id": {
                          "$ref": "#/components/schemas/Id"
                        },
                        "active": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "share_id"
                ],
                "properties": {
                  "share_id": {
                    "$ref": "#/components/schemas/Id"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/community/public/{public_id}": {
      "get": {
        "operationId": "get_api_community_public_public_id_V11",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Publiczny zatwierdzony komunikat o miejscu",
        "description": "Wyłącznie osobna projekcja; bez uczestników, prywatnych wiadomości i pozycji osób. Właściciel publikujący, ważność i ACL punktu są ponownie sprawdzane. 120 żądań/min.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [],
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/CommunityPublicNoticeV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/community-public.php"
        ]
      },
      "head": {
        "operationId": "get_api_community_public_public_id_V11Head",
        "tags": [
          "Rozmowy i spotkania"
        ],
        "summary": "Publiczny zatwierdzony komunikat o miejscu — HEAD",
        "description": "Wyłącznie osobna projekcja; bez uczestników, prywatnych wiadomości i pozycji osób. Właściciel publikujący, ważność i ACL punktu są ponownie sprawdzane. 120 żądań/min.\n\nHEAD stosuje te same bramy odczytu, ale nie zwraca treści.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [],
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL."
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia."
          },
          "429": {
            "description": "Przekroczono limit żądań."
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska."
          }
        },
        "x-source-files": [
          "app/routes/community-public.php"
        ]
      }
    },
    "/api/journeys/state": {
      "get": {
        "operationId": "get_api_journeys_state_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Stan planów, kalendarza i własnego przebiegu",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów. Tylko sesja; brak /api/v1. Trasa do punktu wymaga jawnej zgody, konfiguracji dostawcy i osobnego limitu 10/min.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "description": "Poprawna data kalendarzowa 1970–2199."
            },
            "description": ""
          },
          {
            "name": "timezone",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Identyfikator IANA; domyślnie Europe/Warsaw, nie sam offset."
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/JourneyStateV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php"
        ]
      }
    },
    "/api/journeys": {
      "get": {
        "operationId": "get_api_journeys_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Dostępne plany przejazdów",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/JourneyV11"
                          },
                          "maxItems": 1000
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php"
        ]
      },
      "post": {
        "operationId": "post_api_journeys_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Zaplanuj przejazd między punktami lub terminami",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/JourneyV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JourneyInputV11"
              }
            }
          }
        }
      }
    },
    "/api/v1/journeys": {
      "get": {
        "operationId": "get_api_v1_journeys_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Dostępne plany przejazdów",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer journeys:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/JourneyV11"
                          },
                          "maxItems": 1000
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php",
          "app/routes/field-context-api.php"
        ],
        "x-required-scopes": [
          "journeys:read"
        ],
        "x-alias-of": "/api/journeys"
      },
      "post": {
        "operationId": "post_api_v1_journeys_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Zaplanuj przejazd między punktami lub terminami",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer journeys:write; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/JourneyV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php",
          "app/routes/field-context-api.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JourneyInputV11"
              }
            }
          }
        },
        "x-required-scopes": [
          "journeys:write"
        ],
        "x-alias-of": "/api/journeys"
      }
    },
    "/api/journeys/{journey_id}": {
      "get": {
        "operationId": "get_api_journeys_journey_id_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Plan i aktualnie dostępne przystanki",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "journey_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/JourneyV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php"
        ]
      },
      "delete": {
        "operationId": "delete_api_journeys_journey_id_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Usuń własny plan z zachowaniem przebiegu",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "journey_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "deleted",
                        "mileage_records_retained"
                      ],
                      "properties": {
                        "id": {
                          "$ref": "#/components/schemas/Id"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "mileage_records_retained": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "version"
                ],
                "properties": {
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647,
                    "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/v1/journeys/{journey_id}": {
      "get": {
        "operationId": "get_api_v1_journeys_journey_id_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Plan i aktualnie dostępne przystanki",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer journeys:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "journey_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/JourneyV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php",
          "app/routes/field-context-api.php"
        ],
        "x-required-scopes": [
          "journeys:read"
        ],
        "x-alias-of": "/api/journeys/{journey_id}"
      },
      "delete": {
        "operationId": "delete_api_v1_journeys_journey_id_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Usuń własny plan z zachowaniem przebiegu",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer journeys:write; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "journey_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "deleted",
                        "mileage_records_retained"
                      ],
                      "properties": {
                        "id": {
                          "$ref": "#/components/schemas/Id"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "mileage_records_retained": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php",
          "app/routes/field-context-api.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "version"
                ],
                "properties": {
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647,
                    "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "x-required-scopes": [
          "journeys:write"
        ],
        "x-alias-of": "/api/journeys/{journey_id}"
      }
    },
    "/api/journeys/{journey_id}/route": {
      "post": {
        "operationId": "post_api_journeys_journey_id_route_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Sprawdź opcjonalnie drogowy odcinek do punktu",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów. Tylko sesja; brak /api/v1. Trasa do punktu wymaga jawnej zgody, konfiguracji dostawcy i osobnego limitu 10/min.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "journey_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/JourneyRouteResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "version",
                  "consent"
                ],
                "properties": {
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647,
                    "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
                  },
                  "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 30
                  },
                  "consent": {
                    "type": "boolean",
                    "const": true
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/journeys/mileage": {
      "get": {
        "operationId": "get_api_journeys_mileage_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Własne rzeczywiste wpisy przebiegu",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "description": "Poprawna data kalendarzowa 1970–2199."
            },
            "description": ""
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "description": "Poprawna data kalendarzowa 1970–2199."
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/JourneyMileageV11"
                          },
                          "maxItems": 1000
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php"
        ]
      },
      "post": {
        "operationId": "post_api_journeys_mileage_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Zapisz własne wskazania licznika",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/JourneyMileageResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JourneyMileageInputV11"
              }
            }
          }
        }
      }
    },
    "/api/v1/journeys/mileage": {
      "get": {
        "operationId": "get_api_v1_journeys_mileage_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Własne rzeczywiste wpisy przebiegu",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer journeys:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "description": "Poprawna data kalendarzowa 1970–2199."
            },
            "description": ""
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "description": "Poprawna data kalendarzowa 1970–2199."
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "items"
                      ],
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/JourneyMileageV11"
                          },
                          "maxItems": 1000
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php",
          "app/routes/field-context-api.php"
        ],
        "x-required-scopes": [
          "journeys:read"
        ],
        "x-alias-of": "/api/journeys/mileage"
      },
      "post": {
        "operationId": "post_api_v1_journeys_mileage_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Zapisz własne wskazania licznika",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer journeys:write; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/JourneyMileageResultV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php",
          "app/routes/field-context-api.php"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JourneyMileageInputV11"
              }
            }
          }
        },
        "x-required-scopes": [
          "journeys:write"
        ],
        "x-alias-of": "/api/journeys/mileage"
      }
    },
    "/api/journeys/mileage/{mileage_id}": {
      "delete": {
        "operationId": "delete_api_journeys_mileage_mileage_id_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Usuń własny wpis przebiegu",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów.\n\nSesja: X-CSRF-Token i X-Telemonit-Workspace obowiązkowe. Używaj wyłącznie pól opisanych w kontrakcie operacji.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "parameters": [
          {
            "name": "mileage_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "deleted"
                      ],
                      "properties": {
                        "id": {
                          "$ref": "#/components/schemas/Id"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php"
        ]
      }
    },
    "/api/v1/journeys/mileage/{mileage_id}": {
      "delete": {
        "operationId": "delete_api_v1_journeys_mileage_mileage_id_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Usuń własny wpis przebiegu",
        "description": "Wyłącznie nieskopowana do pojedynczych punktów sesja organizacji / klucz z takim aktualnym członkostwem. Plan ma 1–30 przystanków, odcinki w linii prostej i brak ETA/korków. Przystanki odczytywane z bieżącego ACL; ich utrata blokuje plan, także eksport. Przebieg pochodzi z własnego licznika i nie jest certyfikatem podatkowym. Listy <=1000, powyżej 422; state ma pierwsze 100 terminów z has_more i 500 punktów.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer journeys:write; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "mileage_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "deleted"
                      ],
                      "properties": {
                        "id": {
                          "$ref": "#/components/schemas/Id"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php",
          "app/routes/field-context-api.php"
        ],
        "x-required-scopes": [
          "journeys:write"
        ],
        "x-alias-of": "/api/journeys/mileage/{mileage_id}"
      }
    },
    "/api/journeys/{journey_id}/calendar.ics": {
      "get": {
        "operationId": "get_api_journeys_journey_id_calendar_ics_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Eksport planu do kalendarza",
        "description": "Sesja musi jawnie przesłać X-Telemonit-Workspace również dla tego GET, aby eksport nie zmienił organizacji po przełączeniu w innej karcie. Token v1 ma organizację z klucza. HEAD nieobsługiwany. ICS ma zadeklarowane terminy, bez zgadywania ETA; GeoJSON to linie proste; CSV ma BOM i ochronę komórek przed formułami.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "journey_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Surowy plik UTF-8 attachment, bez koperty data; Cache-Control: no-store.",
            "headers": {
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "text/calendar": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php"
        ]
      }
    },
    "/api/v1/journeys/{journey_id}/calendar.ics": {
      "get": {
        "operationId": "get_api_v1_journeys_journey_id_calendar_ics_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Eksport planu do kalendarza",
        "description": "Sesja musi jawnie przesłać X-Telemonit-Workspace również dla tego GET, aby eksport nie zmienił organizacji po przełączeniu w innej karcie. Token v1 ma organizację z klucza. HEAD nieobsługiwany. ICS ma zadeklarowane terminy, bez zgadywania ETA; GeoJSON to linie proste; CSV ma BOM i ochronę komórek przed formułami.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer journeys:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "journey_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Surowy plik UTF-8 attachment, bez koperty data; Cache-Control: no-store.",
            "headers": {
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "text/calendar": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php",
          "app/routes/field-context-api.php"
        ],
        "x-required-scopes": [
          "journeys:read"
        ],
        "x-alias-of": "/api/journeys/{journey_id}/calendar.ics"
      }
    },
    "/api/journeys/{journey_id}/map.geojson": {
      "get": {
        "operationId": "get_api_journeys_journey_id_map_geojson_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Eksport autoryzowanej geometrii planu",
        "description": "Sesja musi jawnie przesłać X-Telemonit-Workspace również dla tego GET, aby eksport nie zmienił organizacji po przełączeniu w innej karcie. Token v1 ma organizację z klucza. HEAD nieobsługiwany. ICS ma zadeklarowane terminy, bez zgadywania ETA; GeoJSON to linie proste; CSV ma BOM i ochronę komórek przed formułami.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "journey_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Surowy plik UTF-8 attachment, bez koperty data; Cache-Control: no-store.",
            "headers": {
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/geo+json": {
                "schema": {
                  "$ref": "#/components/schemas/JourneyGeoJsonV11"
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php"
        ]
      }
    },
    "/api/v1/journeys/{journey_id}/map.geojson": {
      "get": {
        "operationId": "get_api_v1_journeys_journey_id_map_geojson_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Eksport autoryzowanej geometrii planu",
        "description": "Sesja musi jawnie przesłać X-Telemonit-Workspace również dla tego GET, aby eksport nie zmienił organizacji po przełączeniu w innej karcie. Token v1 ma organizację z klucza. HEAD nieobsługiwany. ICS ma zadeklarowane terminy, bez zgadywania ETA; GeoJSON to linie proste; CSV ma BOM i ochronę komórek przed formułami.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer journeys:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "journey_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Surowy plik UTF-8 attachment, bez koperty data; Cache-Control: no-store.",
            "headers": {
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/geo+json": {
                "schema": {
                  "$ref": "#/components/schemas/JourneyGeoJsonV11"
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php",
          "app/routes/field-context-api.php"
        ],
        "x-required-scopes": [
          "journeys:read"
        ],
        "x-alias-of": "/api/journeys/{journey_id}/map.geojson"
      }
    },
    "/api/journeys/mileage.csv": {
      "get": {
        "operationId": "get_api_journeys_mileage_csv_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Eksport własnego przebiegu do CSV",
        "description": "Sesja musi jawnie przesłać X-Telemonit-Workspace również dla tego GET, aby eksport nie zmienił organizacji po przełączeniu w innej karcie. Token v1 ma organizację z klucza. HEAD nieobsługiwany. ICS ma zadeklarowane terminy, bez zgadywania ETA; GeoJSON to linie proste; CSV ma BOM i ochronę komórek przed formułami.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "description": "Poprawna data kalendarzowa 1970–2199."
            },
            "description": ""
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "description": "Poprawna data kalendarzowa 1970–2199."
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Surowy plik UTF-8 attachment, bez koperty data; Cache-Control: no-store.",
            "headers": {
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php"
        ]
      }
    },
    "/api/v1/journeys/mileage.csv": {
      "get": {
        "operationId": "get_api_v1_journeys_mileage_csv_V11",
        "tags": [
          "Przejazdy i przebieg"
        ],
        "summary": "Eksport własnego przebiegu do CSV",
        "description": "Sesja musi jawnie przesłać X-Telemonit-Workspace również dla tego GET, aby eksport nie zmienił organizacji po przełączeniu w innej karcie. Token v1 ma organizację z klucza. HEAD nieobsługiwany. ICS ma zadeklarowane terminy, bez zgadywania ETA; GeoJSON to linie proste; CSV ma BOM i ochronę komórek przed formułami.\n\nWersjonowany alias faktycznie obsługiwany przez dispatcher. Tylko Bearer journeys:read; organizacja z klucza, bez cookie, CSRF i X-Telemonit-Workspace. Aktualne członkostwo, ACL i ewentualna delegacja sprawdzane oddzielnie.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "parameters": [
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "description": "Poprawna data kalendarzowa 1970–2199."
            },
            "description": ""
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "description": "Poprawna data kalendarzowa 1970–2199."
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Surowy plik UTF-8 attachment, bez koperty data; Cache-Control: no-store.",
            "headers": {
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/journeys.php",
          "app/routes/field-context-api.php"
        ],
        "x-required-scopes": [
          "journeys:read"
        ],
        "x-alias-of": "/api/journeys/mileage.csv"
      }
    },
    "/api/integration-catalog": {
      "get": {
        "operationId": "get_api_integration_catalog_V11",
        "tags": [
          "Odkrywanie usług"
        ],
        "summary": "Publiczny katalog integracji i granic adapterów",
        "description": "Publiczny GET bez logowania; ten endpoint nie obsługuje HEAD i nie nawiązuje połączeń z dostawcami.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Wynik operacji; bieżący ACL i ważność zostały sprawdzone.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/IntegrationCatalogV11"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Brak konfiguracji lub wymaganej funkcji lokalnego środowiska.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "public/index.php"
        ]
      }
    },
    "/api/export/full": {
      "get": {
        "operationId": "get_api_export_full_V11",
        "tags": [
          "Eksport"
        ],
        "summary": "Eksport własnych danych w sesji",
        "description": "Bieżąca organizacja z sesji, bez dodatkowego wymaganego nagłówka organizacji. 12 eksportów/h. Brak HEAD i brak publicznego URL.\n\nV0.11: community_thread/message/meeting wymaga dodatkowo community:read dla tokenu; journey/mileage wymaga journeys:read; incident_replay_document/source/snapshot i rekordy incydentów/historii/widoków wymagają incidents:read; calendar_event/event_history/event_interests wymagają events:read; tracking wymaga tracking:read. Scope export:read sam nie wystarcza. Nowe moduły ponownie sprawdzają ACL, bieżący scope, cofnięcie klucza/delegacji i retencję w trakcie strumienia. map_source_* i partner_page/policy/revisions są dostępne tylko w eksporcie sesji aktualnego właściciela, pomijane dla każdego klucza API. Rozmowy nie eksportują GPS osób. Replay ma najwyżej 5000 incydentów na partię z jawnym rekordem incident_replay_export_limit; pozostałe można pobrać indywidualnie. Zapis end.complete=true potwierdza koniec strumienia, a nie znosi takiego jawnego limitu. Specyficzne pliki źródeł/eksportów replay można pobierać z Bearer incidents:read; inne /api/media nadal mają własne wymagania sesji.\n\nSesja i bieżące członkostwo/ACL; scope tokenu nie jest zamiennikiem roli ani dostępu do rekordu.",
        "x-telemonit-version": "0.11.0",
        "x-host-surface": "core",
        "security": [
          {
            "SessionCookie": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "NDJSON telemonit.export/v6; jeden rekord na linię, z końcowym end.complete=true.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/x-ndjson": {
                "schema": {
                  "type": "string"
                },
                "x-ndjson-item-schema": {
                  "$ref": "#/components/schemas/ExportRecord"
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-source-files": [
          "app/routes/portal.php"
        ]
      }
    },
    "/api/poa/replay-export/capabilities": {
      "get": {
        "operationId": "get_api_poa_replay_export_capabilities_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Sprawdź profil i konfigurację kanału wykonania",
        "description": "Zwraca zarejestrowany proces oraz stan konfiguracji; worker_liveness=not_observed jest jawnym brakiem pomiaru żywotności.\n\nOdczyt 120/min na konto. Wymagane własne konto, organizacja oraz aktualny i historyczny ACL źródeł. Bez publicznego odczytu i bez skutków ubocznych.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayCapabilitiesV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/poa/replay-export/capabilities": {
      "get": {
        "operationId": "get_api_v1_poa_replay_export_capabilities_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Sprawdź profil i konfigurację kanału wykonania",
        "description": "Zwraca zarejestrowany proces oraz stan konfiguracji; worker_liveness=not_observed jest jawnym brakiem pomiaru żywotności.\n\nOdczyt 120/min na konto. Wymagane własne konto, organizacja oraz aktualny i historyczny ACL źródeł. Bez publicznego odczytu i bez skutków ubocznych.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.\n\nAlias /api/v1 obsługiwany przez dispatcher; wyłącznie Bearer incidents:read. Kontekst organizacji pochodzi z klucza. Brak uwierzytelniania cookie i brak fallbacku.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayCapabilitiesV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-alias-of": "/api/poa/replay-export/capabilities"
      }
    },
    "/api/poa/replay-export/inputs": {
      "post": {
        "operationId": "post_api_poa_replay_export_inputs_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Przygotuj niezmienne wejście eksportu",
        "description": "Powiąż migawkę i opcje z własnym kontem. Żaden plik eksportu jeszcze nie powstaje. Zachowaj otrzymane author_request do następnego kroku.\n\nSesja wymaga X-CSRF-Token i X-Telemonit-Workspace. Body to application/json, maksymalnie 64 KiB, zamknięte obiekty i odrzucanie powtórzonych kluczy. POST requests/replan dodatkowo 12/min; pozostałe zapisy 30/min na konto.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "201": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayInputResultV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-session-required-headers": [
          "X-CSRF-Token",
          "X-Telemonit-Workspace"
        ],
        "x-max-request-bytes": 65536,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PoaReplayInputV12"
              }
            }
          }
        }
      }
    },
    "/api/v1/poa/replay-export/inputs": {
      "post": {
        "operationId": "post_api_v1_poa_replay_export_inputs_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Przygotuj niezmienne wejście eksportu",
        "description": "Powiąż migawkę i opcje z własnym kontem. Żaden plik eksportu jeszcze nie powstaje. Zachowaj otrzymane author_request do następnego kroku.\n\nAlias /api/v1 obsługiwany przez dispatcher; wyłącznie Bearer incidents:read. Kontekst organizacji pochodzi z klucza. Brak uwierzytelniania cookie i brak fallbacku.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayInputResultV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 65536,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PoaReplayInputV12"
              }
            }
          }
        },
        "x-alias-of": "/api/poa/replay-export/inputs"
      }
    },
    "/api/poa/replay-export/requests": {
      "post": {
        "operationId": "post_api_poa_replay_export_requests_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Odczytaj definicję albo przygotuj plan dry-run",
        "description": "inspect zwraca definicję (200); plan zwraca istniejący lub nowy proces (201). Sam plan nie wydaje grantu, nie dopuszcza kolejki i nie renderuje pliku.\n\nSesja wymaga X-CSRF-Token i X-Telemonit-Workspace. Body to application/json, maksymalnie 64 KiB, zamknięte obiekty i odrzucanie powtórzonych kluczy. POST requests/replan dodatkowo 12/min; pozostałe zapisy 30/min na konto.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "201": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayRunV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Wynik operation=inspect; bez utworzenia procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayInspectV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-session-required-headers": [
          "X-CSRF-Token",
          "X-Telemonit-Workspace"
        ],
        "x-max-request-bytes": 65536,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PoaRequestV12"
              }
            }
          }
        }
      }
    },
    "/api/v1/poa/replay-export/requests": {
      "post": {
        "operationId": "post_api_v1_poa_replay_export_requests_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Odczytaj definicję albo przygotuj plan dry-run",
        "description": "inspect zwraca definicję (200); plan zwraca istniejący lub nowy proces (201). Sam plan nie wydaje grantu, nie dopuszcza kolejki i nie renderuje pliku.\n\nAlias /api/v1 obsługiwany przez dispatcher; wyłącznie Bearer incidents:read. Kontekst organizacji pochodzi z klucza. Brak uwierzytelniania cookie i brak fallbacku.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayRunV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Wynik operation=inspect; bez utworzenia procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayInspectV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-max-request-bytes": 65536,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PoaRequestV12"
              }
            }
          }
        },
        "x-alias-of": "/api/poa/replay-export/requests"
      }
    },
    "/api/poa/replay-export/processes": {
      "get": {
        "operationId": "get_api_poa_replay_export_processes_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Odczytaj własną historię procesów migawki",
        "description": "Najwyżej 20 własnych procesów, sortowanie created_at malejąco, potem queue_revision malejąco. Jeden wymagany parametr snapshot_id; dodatkowe query są odrzucane.\n\nOdczyt 120/min na konto. Wymagane własne konto, organizacja oraz aktualny i historyczny ACL źródeł. Bez publicznego odczytu i bez skutków ubocznych.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayRunListV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/poa/replay-export/processes": {
      "get": {
        "operationId": "get_api_v1_poa_replay_export_processes_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Odczytaj własną historię procesów migawki",
        "description": "Najwyżej 20 własnych procesów, sortowanie created_at malejąco, potem queue_revision malejąco. Jeden wymagany parametr snapshot_id; dodatkowe query są odrzucane.\n\nOdczyt 120/min na konto. Wymagane własne konto, organizacja oraz aktualny i historyczny ACL źródeł. Bez publicznego odczytu i bez skutków ubocznych.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.\n\nAlias /api/v1 obsługiwany przez dispatcher; wyłącznie Bearer incidents:read. Kontekst organizacji pochodzi z klucza. Brak uwierzytelniania cookie i brak fallbacku.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "parameters": [
          {
            "name": "snapshot_id",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayRunListV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-alias-of": "/api/poa/replay-export/processes"
      }
    },
    "/api/poa/replay-export/processes/{process_id}": {
      "get": {
        "operationId": "get_api_poa_replay_export_processes_process_id_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Odczytaj bieżący stan i plan procesu",
        "description": "Pobierz aktualny plan_hash i queue_revision przed świadomym authorize/cancel. W API odczytu nie są ujawniane credentials grantu ani dowolne transporty.\n\nOdczyt 120/min na konto. Wymagane własne konto, organizacja oraz aktualny i historyczny ACL źródeł. Bez publicznego odczytu i bez skutków ubocznych.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayRunV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/poa/replay-export/processes/{process_id}": {
      "get": {
        "operationId": "get_api_v1_poa_replay_export_processes_process_id_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Odczytaj bieżący stan i plan procesu",
        "description": "Pobierz aktualny plan_hash i queue_revision przed świadomym authorize/cancel. W API odczytu nie są ujawniane credentials grantu ani dowolne transporty.\n\nOdczyt 120/min na konto. Wymagane własne konto, organizacja oraz aktualny i historyczny ACL źródeł. Bez publicznego odczytu i bez skutków ubocznych.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.\n\nAlias /api/v1 obsługiwany przez dispatcher; wyłącznie Bearer incidents:read. Kontekst organizacji pochodzi z klucza. Brak uwierzytelniania cookie i brak fallbacku.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayRunV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-alias-of": "/api/poa/replay-export/processes/{process_id}"
      }
    },
    "/api/poa/replay-export/processes/{process_id}/authorize": {
      "post": {
        "operationId": "post_api_poa_replay_export_processes_process_id_authorize_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Zatwierdź dokładny plan do kolejki",
        "description": "Zgoda jest związana z konkretnym planem, rewizją, kontem, organizacją i zasobem. 202 oznacza przyjęcie do dalszego procesu; oddzielny admission, a potem executor działają przez uwierzytelnione usługi CLI. Stan końcowy zabroniony zwraca standardowy Error 409; bez pozornego 202.\n\nSesja wymaga X-CSRF-Token i X-Telemonit-Workspace. Body to application/json, maksymalnie 64 KiB, zamknięte obiekty i odrzucanie powtórzonych kluczy. POST requests/replan dodatkowo 12/min; pozostałe zapisy 30/min na konto.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "202": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayRunV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Plan zabroniony, wygasły lub wymagający uzgodnienia; standardowa koperta Error zawiera odnośnik do receipt, jeśli został zapisany.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "poa_authorization_denied"
            ]
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Powtórzone zatwierdzenie zakończonego succeeded; brak kolejnego wykonania.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayRunV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-session-required-headers": [
          "X-CSRF-Token",
          "X-Telemonit-Workspace"
        ],
        "x-max-request-bytes": 65536,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PoaReplayActionV12"
              }
            }
          }
        }
      }
    },
    "/api/v1/poa/replay-export/processes/{process_id}/authorize": {
      "post": {
        "operationId": "post_api_v1_poa_replay_export_processes_process_id_authorize_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Zatwierdź dokładny plan do kolejki",
        "description": "Zgoda jest związana z konkretnym planem, rewizją, kontem, organizacją i zasobem. 202 oznacza przyjęcie do dalszego procesu; oddzielny admission, a potem executor działają przez uwierzytelnione usługi CLI. Stan końcowy zabroniony zwraca standardowy Error 409; bez pozornego 202.\n\nAlias /api/v1 obsługiwany przez dispatcher; wyłącznie Bearer incidents:read. Kontekst organizacji pochodzi z klucza. Brak uwierzytelniania cookie i brak fallbacku.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          }
        ],
        "responses": {
          "202": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayRunV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Plan zabroniony, wygasły lub wymagający uzgodnienia; standardowa koperta Error zawiera odnośnik do receipt, jeśli został zapisany.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-error-codes": [
              "poa_authorization_denied"
            ]
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "200": {
            "description": "Powtórzone zatwierdzenie zakończonego succeeded; brak kolejnego wykonania.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayRunV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-max-request-bytes": 65536,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PoaReplayActionV12"
              }
            }
          }
        },
        "x-alias-of": "/api/poa/replay-export/processes/{process_id}/authorize"
      }
    },
    "/api/poa/replay-export/processes/{process_id}/cancel": {
      "post": {
        "operationId": "post_api_poa_replay_export_processes_process_id_cancel_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Jawnie anuluj dokładny plan",
        "description": "Przed dispatch kończy proces jako cancelled. Po rozpoczęciu efektu unieważnia lease i przechodzi do needs_reconciliation, bez deklaracji cofnięcia wykonanego efektu. Rozłączenie przeglądarki samo nie anuluje zadania.\n\nSesja wymaga X-CSRF-Token i X-Telemonit-Workspace. Body to application/json, maksymalnie 64 KiB, zamknięte obiekty i odrzucanie powtórzonych kluczy. POST requests/replan dodatkowo 12/min; pozostałe zapisy 30/min na konto.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "200": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayRunV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-session-required-headers": [
          "X-CSRF-Token",
          "X-Telemonit-Workspace"
        ],
        "x-max-request-bytes": 65536,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PoaReplayActionV12"
              }
            }
          }
        }
      }
    },
    "/api/v1/poa/replay-export/processes/{process_id}/cancel": {
      "post": {
        "operationId": "post_api_v1_poa_replay_export_processes_process_id_cancel_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Jawnie anuluj dokładny plan",
        "description": "Przed dispatch kończy proces jako cancelled. Po rozpoczęciu efektu unieważnia lease i przechodzi do needs_reconciliation, bez deklaracji cofnięcia wykonanego efektu. Rozłączenie przeglądarki samo nie anuluje zadania.\n\nAlias /api/v1 obsługiwany przez dispatcher; wyłącznie Bearer incidents:read. Kontekst organizacji pochodzi z klucza. Brak uwierzytelniania cookie i brak fallbacku.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayRunV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 65536,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PoaReplayActionV12"
              }
            }
          }
        },
        "x-alias-of": "/api/poa/replay-export/processes/{process_id}/cancel"
      }
    },
    "/api/poa/replay-export/processes/{process_id}/replan": {
      "post": {
        "operationId": "post_api_poa_replay_export_processes_process_id_replan_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Utwórz nową rewizję tego samego zgłoszenia",
        "description": "Wyłącznie zamknięty plan-request tej samej migawki. Stary proces musi być denied/expired/cancelled/failed i bez rozpoczętego efektu. ticket_id pozostaje, queue_revision rośnie; nowy plan wymaga nowego zatwierdzenia.\n\nSesja wymaga X-CSRF-Token i X-Telemonit-Workspace. Body to application/json, maksymalnie 64 KiB, zamknięte obiekty i odrzucanie powtórzonych kluczy. POST requests/replan dodatkowo 12/min; pozostałe zapisy 30/min na konto.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Organizacja oczekiwana przez interaktywną sesję; nie zmienia organizacji klucza Bearer."
          }
        ],
        "responses": {
          "201": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayRunV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Brak aktualnego tokenu CSRF sesji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-session-required-headers": [
          "X-CSRF-Token",
          "X-Telemonit-Workspace"
        ],
        "x-max-request-bytes": 65536,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PoaRequestPlanV12"
              }
            }
          }
        }
      }
    },
    "/api/v1/poa/replay-export/processes/{process_id}/replan": {
      "post": {
        "operationId": "post_api_v1_poa_replay_export_processes_process_id_replan_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Utwórz nową rewizję tego samego zgłoszenia",
        "description": "Wyłącznie zamknięty plan-request tej samej migawki. Stary proces musi być denied/expired/cancelled/failed i bez rozpoczętego efektu. ticket_id pozostaje, queue_revision rośnie; nowy plan wymaga nowego zatwierdzenia.\n\nAlias /api/v1 obsługiwany przez dispatcher; wyłącznie Bearer incidents:read. Kontekst organizacji pochodzi z klucza. Brak uwierzytelniania cookie i brak fallbacku.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          }
        ],
        "responses": {
          "201": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayRunV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Przekroczony limit danych.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Nieobsługiwany typ zawartości.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 65536,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PoaRequestPlanV12"
              }
            }
          }
        },
        "x-alias-of": "/api/poa/replay-export/processes/{process_id}/replan"
      }
    },
    "/api/poa/replay-export/processes/{process_id}/events": {
      "get": {
        "operationId": "get_api_poa_replay_export_processes_process_id_events_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Odczytaj sprawdzony łańcuch zdarzeń",
        "description": "Rosnące sequence oraz integralność łańcucha są sprawdzane przy odczycie. Zdarzenia zawierają referencje artefaktów, bez ich surowej zawartości i sekretów.\n\nOdczyt 120/min na konto. Wymagane własne konto, organizacja oraz aktualny i historyczny ACL źródeł. Bez publicznego odczytu i bez skutków ubocznych.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayEventListV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/poa/replay-export/processes/{process_id}/events": {
      "get": {
        "operationId": "get_api_v1_poa_replay_export_processes_process_id_events_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Odczytaj sprawdzony łańcuch zdarzeń",
        "description": "Rosnące sequence oraz integralność łańcucha są sprawdzane przy odczycie. Zdarzenia zawierają referencje artefaktów, bez ich surowej zawartości i sekretów.\n\nOdczyt 120/min na konto. Wymagane własne konto, organizacja oraz aktualny i historyczny ACL źródeł. Bez publicznego odczytu i bez skutków ubocznych.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.\n\nAlias /api/v1 obsługiwany przez dispatcher; wyłącznie Bearer incidents:read. Kontekst organizacji pochodzi z klucza. Brak uwierzytelniania cookie i brak fallbacku.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReplayEventListV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-alias-of": "/api/poa/replay-export/processes/{process_id}/events"
      }
    },
    "/api/poa/replay-export/processes/{process_id}/receipt": {
      "get": {
        "operationId": "get_api_poa_replay_export_processes_process_id_receipt_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Pobierz końcowy receipt procesu",
        "description": "Wynik dostępny po zakończeniu; wcześniej 409 poa_receipt_pending. succeeded oznacza osobny readback potwierdzający plik. Receipt odmowy/wygaśnięcia jest równie obowiązkowym wynikiem.\n\nOdczyt 120/min na konto. Wymagane własne konto, organizacja oraz aktualny i historyczny ACL źródeł. Bez publicznego odczytu i bez skutków ubocznych.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReceiptV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/poa/replay-export/processes/{process_id}/receipt": {
      "get": {
        "operationId": "get_api_v1_poa_replay_export_processes_process_id_receipt_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Pobierz końcowy receipt procesu",
        "description": "Wynik dostępny po zakończeniu; wcześniej 409 poa_receipt_pending. succeeded oznacza osobny readback potwierdzający plik. Receipt odmowy/wygaśnięcia jest równie obowiązkowym wynikiem.\n\nOdczyt 120/min na konto. Wymagane własne konto, organizacja oraz aktualny i historyczny ACL źródeł. Bez publicznego odczytu i bez skutków ubocznych.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.\n\nAlias /api/v1 obsługiwany przez dispatcher; wyłącznie Bearer incidents:read. Kontekst organizacji pochodzi z klucza. Brak uwierzytelniania cookie i brak fallbacku.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Bieżący wynik prywatnego procesu.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PoaReceiptV12"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-alias-of": "/api/poa/replay-export/processes/{process_id}/receipt"
      }
    },
    "/api/poa/replay-export/processes/{process_id}/file": {
      "get": {
        "operationId": "get_api_poa_replay_export_processes_process_id_file_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Pobierz plik po weryfikacji receipt i readbacku",
        "description": "Nie wymaga nadal ważnego grantu wykonania, ale wymaga aktualnego prawa do źródeł i ważnego, niezmienionego wyniku. Range, 304 i publiczny link nie są obsługiwane.\n\nOdczyt 120/min na konto. Wymagane własne konto, organizacja oraz aktualny i historyczny ACL źródeł. Bez publicznego odczytu i bez skutków ubocznych.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Zweryfikowany plik attachment, bez koperty data. Wymagany succeeded receipt, aktualne ACL, retencja i ponowny readback SHA256/bajtów/MIME.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "X-Content-SHA256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "description": "Hash SHA256 pobieranego pliku. Serwer nie deklaruje ETag, Range ani 304."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReplayExportDocumentV11"
                }
              },
              "application/geo+json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/gif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "video/mp4": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/vtt": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/x-subrip": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "get_api_poa_replay_export_processes_process_id_file_V12Head",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Pobierz plik po weryfikacji receipt i readbacku — HEAD",
        "description": "Nie wymaga nadal ważnego grantu wykonania, ale wymaga aktualnego prawa do źródeł i ważnego, niezmienionego wyniku. Range, 304 i publiczny link nie są obsługiwane.\n\nOdczyt 120/min na konto. Wymagane własne konto, organizacja oraz aktualny i historyczny ACL źródeł. Bez publicznego odczytu i bez skutków ubocznych.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "x-scopes-apply-to": "ApiKeyBearer only",
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Zweryfikowany plik attachment, bez koperty data. Wymagany succeeded receipt, aktualne ACL, retencja i ponowny readback SHA256/bajtów/MIME.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "X-Content-SHA256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "description": "Hash SHA256 pobieranego pliku. Serwer nie deklaruje ETag, Range ani 304."
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem."
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji."
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL."
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów."
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł."
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia."
          },
          "429": {
            "description": "Przekroczono limit żądań."
          }
        }
      }
    },
    "/api/v1/poa/replay-export/processes/{process_id}/file": {
      "get": {
        "operationId": "get_api_v1_poa_replay_export_processes_process_id_file_V12",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Pobierz plik po weryfikacji receipt i readbacku",
        "description": "Nie wymaga nadal ważnego grantu wykonania, ale wymaga aktualnego prawa do źródeł i ważnego, niezmienionego wyniku. Range, 304 i publiczny link nie są obsługiwane.\n\nOdczyt 120/min na konto. Wymagane własne konto, organizacja oraz aktualny i historyczny ACL źródeł. Bez publicznego odczytu i bez skutków ubocznych.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.\n\nAlias /api/v1 obsługiwany przez dispatcher; wyłącznie Bearer incidents:read. Kontekst organizacji pochodzi z klucza. Brak uwierzytelniania cookie i brak fallbacku.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Zweryfikowany plik attachment, bez koperty data. Wymagany succeeded receipt, aktualne ACL, retencja i ponowny readback SHA256/bajtów/MIME.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "X-Content-SHA256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "description": "Hash SHA256 pobieranego pliku. Serwer nie deklaruje ETag, Range ani 304."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReplayExportDocumentV11"
                }
              },
              "application/geo+json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/gif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "video/mp4": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/vtt": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/x-subrip": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Przekroczono limit żądań.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-alias-of": "/api/poa/replay-export/processes/{process_id}/file"
      },
      "head": {
        "operationId": "get_api_v1_poa_replay_export_processes_process_id_file_V12Head",
        "tags": [
          "Procesy POA"
        ],
        "summary": "Pobierz plik po weryfikacji receipt i readbacku — HEAD",
        "description": "Nie wymaga nadal ważnego grantu wykonania, ale wymaga aktualnego prawa do źródeł i ważnego, niezmienionego wyniku. Range, 304 i publiczny link nie są obsługiwane.\n\nOdczyt 120/min na konto. Wymagane własne konto, organizacja oraz aktualny i historyczny ACL źródeł. Bez publicznego odczytu i bez skutków ubocznych.\n\nAuthorization: Bearer wymaga incidents:read, również dla przygotowania i zatwierdzenia eksportu. Bearer nie używa CSRF i nie przechodzi awaryjnie na sesję. Zakres nie zastępuje własności procesu ani ACL migawki.\n\nAlias /api/v1 obsługiwany przez dispatcher; wyłącznie Bearer incidents:read. Kontekst organizacji pochodzi z klucza. Brak uwierzytelniania cookie i brak fallbacku.",
        "x-telemonit-version": "0.12.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/poa-replay.php",
          "app/Poa/ReplayProcessService.php",
          "app/Poa/Contracts.php",
          "app/Poa/Registry.php"
        ],
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-required-scopes": [
          "incidents:read"
        ],
        "parameters": [
          {
            "name": "process_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/PoaRunIdV12"
            },
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Zweryfikowany plik attachment, bez koperty data. Wymagany succeeded receipt, aktualne ACL, retencja i ponowny readback SHA256/bajtów/MIME.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Length": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "X-Content-SHA256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "description": "Hash SHA256 pobieranego pliku. Serwer nie deklaruje ETag, Range ani 304."
              }
            }
          },
          "401": {
            "description": "Wymagane uwierzytelnienie odpowiednim mechanizmem."
          },
          "403": {
            "description": "Brak aktualnego zakresu, roli lub prawa do operacji."
          },
          "404": {
            "description": "Zasób nie istnieje albo jest niedostępny w bieżącym ACL."
          },
          "409": {
            "description": "Konflikt wersji, organizacji, idempotencji, integralności lub limitu zasobów."
          },
          "410": {
            "description": "Zasób lub zapis idempotencji wygasł."
          },
          "422": {
            "description": "Nieprawidłowe dane, nieznane pola albo niespełnione potwierdzenia."
          },
          "429": {
            "description": "Przekroczono limit żądań."
          }
        },
        "x-alias-of": "/api/poa/replay-export/processes/{process_id}/file"
      }
    },
    "/api/map-history/catalog": {
      "get": {
        "operationId": "get_api_map_history_catalog_V13",
        "tags": [
          "Historia mapy"
        ],
        "summary": "Dostępne źródła prywatnej historii",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.13.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/map-history.php",
          "app/MapTimelineService.php",
          "app/PositionHistoryService.php",
          "app/MapHistoryExport.php"
        ],
        "parameters": [],
        "description": "Odczyt wymaga aktualnego członkostwa, dostępu do każdego źródła i jego historii. Samo udostępnienie bieżącej pozycji nie przyznaje dostępu do archiwum. Limit 120 zapytań/min na konto. Każdy jawny Authorization wymaga poprawnego tokenu, również obok cookie; brak awaryjnego przejścia na sesję. API: punkty wymagają points:read, czujniki infrastructure:read, pozycje tracking:read. Katalog filtruje rodzaje według zakresów klucza; zapytanie odrzuca całe żądanie, jeśli brakuje zakresu do dowolnego wybranego źródła.",
        "x-source-scopes": {
          "point": "points:read",
          "sensor": "infrastructure:read",
          "person": "tracking:read",
          "asset": "tracking:read"
        },
        "responses": {
          "200": {
            "description": "Aktualny uprawniony wynik, bez zapisu odpowiedzi na serwerze.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapHistoryCatalogV13"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/map-history/query": {
      "post": {
        "operationId": "post_api_map_history_query_V13",
        "tags": [
          "Historia mapy"
        ],
        "summary": "Wspólna oś czasu mapy",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.13.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/map-history.php",
          "app/MapTimelineService.php",
          "app/PositionHistoryService.php",
          "app/MapHistoryExport.php"
        ],
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Wymagany dla sesji, razem z X-CSRF-Token."
          }
        ],
        "description": "Odczyt wymaga aktualnego członkostwa, dostępu do każdego źródła i jego historii. Samo udostępnienie bieżącej pozycji nie przyznaje dostępu do archiwum. Limit 120 zapytań/min na konto. Każdy jawny Authorization wymaga poprawnego tokenu, również obok cookie; brak awaryjnego przejścia na sesję. API: punkty wymagają points:read, czujniki infrastructure:read, pozycje tracking:read. Katalog filtruje rodzaje według zakresów klucza; zapytanie odrzuca całe żądanie, jeśli brakuje zakresu do dowolnego wybranego źródła. POST w sesji wymaga CSRF i X-Telemonit-Workspace; body JSON, limit 1 MiB.",
        "x-source-scopes": {
          "point": "points:read",
          "sensor": "infrastructure:read",
          "person": "tracking:read",
          "asset": "tracking:read"
        },
        "responses": {
          "200": {
            "description": "Aktualny uprawniony wynik, bez zapisu odpowiedzi na serwerze.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapHistoryResultV13"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MapHistoryQueryV13"
              }
            }
          }
        }
      }
    },
    "/api/map-history/export": {
      "post": {
        "operationId": "post_api_map_history_export_V13",
        "tags": [
          "Historia mapy"
        ],
        "summary": "Pobierz ograniczony zakres historii",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.13.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/map-history.php",
          "app/MapTimelineService.php",
          "app/PositionHistoryService.php",
          "app/MapHistoryExport.php"
        ],
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Wymagany dla sesji, razem z X-CSRF-Token."
          }
        ],
        "description": "Odczyt wymaga aktualnego członkostwa, dostępu do każdego źródła i jego historii. Samo udostępnienie bieżącej pozycji nie przyznaje dostępu do archiwum. Limit 120 zapytań/min na konto. Każdy jawny Authorization wymaga poprawnego tokenu, również obok cookie; brak awaryjnego przejścia na sesję. API: punkty wymagają points:read, czujniki infrastructure:read, pozycje tracking:read. Katalog filtruje rodzaje według zakresów klucza; zapytanie odrzuca całe żądanie, jeśli brakuje zakresu do dowolnego wybranego źródła. POST w sesji wymaga CSRF i X-Telemonit-Workspace; body JSON, limit 1 MiB. Bearer wymaga dodatkowo export:read. To bezpośrednie pobranie ograniczonego wyniku odczytu; nie uruchamia renderera, procesu POA ani zewnętrznego API.",
        "x-source-scopes": {
          "point": "points:read",
          "sensor": "infrastructure:read",
          "person": "tracking:read",
          "asset": "tracking:read"
        },
        "responses": {
          "200": {
            "description": "Aktualny uprawniony wynik, bez zapisu odpowiedzi na serwerze.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string",
                  "pattern": "^attachment;"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MapHistoryResultV13"
                }
              },
              "application/geo+json": {
                "schema": {
                  "$ref": "#/components/schemas/MapHistoryGeoJsonV13"
                }
              }
            }
          },
          "401": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "x-additional-required-scopes": [
          "export:read"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MapHistoryExportQueryV13"
              }
            }
          }
        }
      }
    },
    "/api/tracking/history/{kind}/{id}/policy": {
      "get": {
        "operationId": "get_api_tracking_history_kind_id_policy_V13",
        "tags": [
          "Historia mapy"
        ],
        "summary": "Ustawienia archiwizacji pozycji",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.13.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/map-history.php",
          "app/MapTimelineService.php",
          "app/PositionHistoryService.php",
          "app/MapHistoryExport.php"
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "person",
                "asset"
              ]
            },
            "description": ""
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Odczyt wymaga aktualnego członkostwa, dostępu do każdego źródła i jego historii. Samo udostępnienie bieżącej pozycji nie przyznaje dostępu do archiwum. Limit 120 zapytań/min na konto. Każdy jawny Authorization wymaga poprawnego tokenu, również obok cookie; brak awaryjnego przejścia na sesję. API: punkty wymagają points:read, czujniki infrastructure:read, pozycje tracking:read. Katalog filtruje rodzaje według zakresów klucza; zapytanie odrzuca całe żądanie, jeśli brakuje zakresu do dowolnego wybranego źródła.",
        "x-source-scopes": {
          "point": "points:read",
          "sensor": "infrastructure:read",
          "person": "tracking:read",
          "asset": "tracking:read"
        },
        "responses": {
          "200": {
            "description": "Aktualny uprawniony wynik, bez zapisu odpowiedzi na serwerze.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PositionHistoryPolicyV13"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post_api_tracking_history_kind_id_policy_V13",
        "tags": [
          "Historia mapy"
        ],
        "summary": "Świadome włączenie, zmiana lub wyłączenie archiwum",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "x-telemonit-version": "0.13.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/map-history.php",
          "app/MapTimelineService.php",
          "app/PositionHistoryService.php",
          "app/MapHistoryExport.php"
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "person",
                "asset"
              ]
            },
            "description": ""
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Wymagany dla sesji, razem z X-CSRF-Token."
          }
        ],
        "description": "Odczyt wymaga aktualnego członkostwa, dostępu do każdego źródła i jego historii. Samo udostępnienie bieżącej pozycji nie przyznaje dostępu do archiwum. Limit 120 zapytań/min na konto. Każdy jawny Authorization wymaga poprawnego tokenu, również obok cookie; brak awaryjnego przejścia na sesję. API: punkty wymagają points:read, czujniki infrastructure:read, pozycje tracking:read. Katalog filtruje rodzaje według zakresów klucza; zapytanie odrzuca całe żądanie, jeśli brakuje zakresu do dowolnego wybranego źródła. POST w sesji wymaga CSRF i X-Telemonit-Workspace; body JSON, limit 1 MiB. Zmiana polityki jest wyłącznie interaktywna; Bearer otrzyma 403 history_session_required.",
        "x-source-scopes": {
          "point": "points:read",
          "sensor": "infrastructure:read",
          "person": "tracking:read",
          "asset": "tracking:read"
        },
        "responses": {
          "200": {
            "description": "Aktualny uprawniony wynik, bez zapisu odpowiedzi na serwerze.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PositionHistoryPolicyV13"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PositionHistoryPolicyChangeV13"
              }
            }
          }
        }
      }
    },
    "/api/tracking/history/{kind}/{id}/series": {
      "get": {
        "operationId": "get_api_tracking_history_kind_id_series_V13",
        "tags": [
          "Historia mapy"
        ],
        "summary": "Odczytaj serię pomiarów położenia",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.13.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/map-history.php",
          "app/MapTimelineService.php",
          "app/PositionHistoryService.php",
          "app/MapHistoryExport.php"
        ],
        "parameters": [
          {
            "name": "date_from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
            },
            "description": ""
          },
          {
            "name": "date_to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
            },
            "description": ""
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2000,
              "default": 2000
            },
            "description": ""
          },
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "person",
                "asset"
              ]
            },
            "description": ""
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Odczyt wymaga aktualnego członkostwa, dostępu do każdego źródła i jego historii. Samo udostępnienie bieżącej pozycji nie przyznaje dostępu do archiwum. Limit 120 zapytań/min na konto. Każdy jawny Authorization wymaga poprawnego tokenu, również obok cookie; brak awaryjnego przejścia na sesję. API: punkty wymagają points:read, czujniki infrastructure:read, pozycje tracking:read. Katalog filtruje rodzaje według zakresów klucza; zapytanie odrzuca całe żądanie, jeśli brakuje zakresu do dowolnego wybranego źródła.",
        "x-source-scopes": {
          "point": "points:read",
          "sensor": "infrastructure:read",
          "person": "tracking:read",
          "asset": "tracking:read"
        },
        "responses": {
          "200": {
            "description": "Aktualny uprawniony wynik, bez zapisu odpowiedzi na serwerze.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapHistorySeriesV13"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/map-history/catalog": {
      "get": {
        "operationId": "get_api_v1_map_history_catalog_V13",
        "tags": [
          "Historia mapy"
        ],
        "summary": "Dostępne źródła prywatnej historii",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.13.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/map-history.php",
          "app/MapTimelineService.php",
          "app/PositionHistoryService.php",
          "app/MapHistoryExport.php"
        ],
        "parameters": [],
        "description": "Odczyt wymaga aktualnego członkostwa, dostępu do każdego źródła i jego historii. Samo udostępnienie bieżącej pozycji nie przyznaje dostępu do archiwum. Limit 120 zapytań/min na konto. Każdy jawny Authorization wymaga poprawnego tokenu, również obok cookie; brak awaryjnego przejścia na sesję. API: punkty wymagają points:read, czujniki infrastructure:read, pozycje tracking:read. Katalog filtruje rodzaje według zakresów klucza; zapytanie odrzuca całe żądanie, jeśli brakuje zakresu do dowolnego wybranego źródła.",
        "x-source-scopes": {
          "point": "points:read",
          "sensor": "infrastructure:read",
          "person": "tracking:read",
          "asset": "tracking:read"
        },
        "responses": {
          "200": {
            "description": "Aktualny uprawniony wynik, bez zapisu odpowiedzi na serwerze.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapHistoryCatalogV13"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/map-history/query": {
      "post": {
        "operationId": "post_api_v1_map_history_query_V13",
        "tags": [
          "Historia mapy"
        ],
        "summary": "Wspólna oś czasu mapy",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.13.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/map-history.php",
          "app/MapTimelineService.php",
          "app/PositionHistoryService.php",
          "app/MapHistoryExport.php"
        ],
        "parameters": [],
        "description": "Odczyt wymaga aktualnego członkostwa, dostępu do każdego źródła i jego historii. Samo udostępnienie bieżącej pozycji nie przyznaje dostępu do archiwum. Limit 120 zapytań/min na konto. Każdy jawny Authorization wymaga poprawnego tokenu, również obok cookie; brak awaryjnego przejścia na sesję. API: punkty wymagają points:read, czujniki infrastructure:read, pozycje tracking:read. Katalog filtruje rodzaje według zakresów klucza; zapytanie odrzuca całe żądanie, jeśli brakuje zakresu do dowolnego wybranego źródła. POST w sesji wymaga CSRF i X-Telemonit-Workspace; body JSON, limit 1 MiB.",
        "x-source-scopes": {
          "point": "points:read",
          "sensor": "infrastructure:read",
          "person": "tracking:read",
          "asset": "tracking:read"
        },
        "responses": {
          "200": {
            "description": "Aktualny uprawniony wynik, bez zapisu odpowiedzi na serwerze.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapHistoryResultV13"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MapHistoryQueryV13"
              }
            }
          }
        }
      }
    },
    "/api/v1/map-history/export": {
      "post": {
        "operationId": "post_api_v1_map_history_export_V13",
        "tags": [
          "Historia mapy"
        ],
        "summary": "Pobierz ograniczony zakres historii",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.13.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/map-history.php",
          "app/MapTimelineService.php",
          "app/PositionHistoryService.php",
          "app/MapHistoryExport.php"
        ],
        "parameters": [],
        "description": "Odczyt wymaga aktualnego członkostwa, dostępu do każdego źródła i jego historii. Samo udostępnienie bieżącej pozycji nie przyznaje dostępu do archiwum. Limit 120 zapytań/min na konto. Każdy jawny Authorization wymaga poprawnego tokenu, również obok cookie; brak awaryjnego przejścia na sesję. API: punkty wymagają points:read, czujniki infrastructure:read, pozycje tracking:read. Katalog filtruje rodzaje według zakresów klucza; zapytanie odrzuca całe żądanie, jeśli brakuje zakresu do dowolnego wybranego źródła. POST w sesji wymaga CSRF i X-Telemonit-Workspace; body JSON, limit 1 MiB. Bearer wymaga dodatkowo export:read. To bezpośrednie pobranie ograniczonego wyniku odczytu; nie uruchamia renderera, procesu POA ani zewnętrznego API.",
        "x-source-scopes": {
          "point": "points:read",
          "sensor": "infrastructure:read",
          "person": "tracking:read",
          "asset": "tracking:read"
        },
        "responses": {
          "200": {
            "description": "Aktualny uprawniony wynik, bez zapisu odpowiedzi na serwerze.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string",
                  "pattern": "^attachment;"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MapHistoryResultV13"
                }
              },
              "application/geo+json": {
                "schema": {
                  "$ref": "#/components/schemas/MapHistoryGeoJsonV13"
                }
              }
            }
          },
          "401": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "x-additional-required-scopes": [
          "export:read"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MapHistoryExportQueryV13"
              }
            }
          }
        }
      }
    },
    "/api/v1/tracking/history/{kind}/{id}/policy": {
      "get": {
        "operationId": "get_api_v1_tracking_history_kind_id_policy_V13",
        "tags": [
          "Historia mapy"
        ],
        "summary": "Ustawienia archiwizacji pozycji",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.13.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/map-history.php",
          "app/MapTimelineService.php",
          "app/PositionHistoryService.php",
          "app/MapHistoryExport.php"
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "person",
                "asset"
              ]
            },
            "description": ""
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Odczyt wymaga aktualnego członkostwa, dostępu do każdego źródła i jego historii. Samo udostępnienie bieżącej pozycji nie przyznaje dostępu do archiwum. Limit 120 zapytań/min na konto. Każdy jawny Authorization wymaga poprawnego tokenu, również obok cookie; brak awaryjnego przejścia na sesję. API: punkty wymagają points:read, czujniki infrastructure:read, pozycje tracking:read. Katalog filtruje rodzaje według zakresów klucza; zapytanie odrzuca całe żądanie, jeśli brakuje zakresu do dowolnego wybranego źródła.",
        "x-source-scopes": {
          "point": "points:read",
          "sensor": "infrastructure:read",
          "person": "tracking:read",
          "asset": "tracking:read"
        },
        "responses": {
          "200": {
            "description": "Aktualny uprawniony wynik, bez zapisu odpowiedzi na serwerze.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PositionHistoryPolicyV13"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post_api_v1_tracking_history_kind_id_policy_V13",
        "tags": [
          "Historia mapy"
        ],
        "summary": "Świadome włączenie, zmiana lub wyłączenie archiwum",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.13.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/map-history.php",
          "app/MapTimelineService.php",
          "app/PositionHistoryService.php",
          "app/MapHistoryExport.php"
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "person",
                "asset"
              ]
            },
            "description": ""
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Odczyt wymaga aktualnego członkostwa, dostępu do każdego źródła i jego historii. Samo udostępnienie bieżącej pozycji nie przyznaje dostępu do archiwum. Limit 120 zapytań/min na konto. Każdy jawny Authorization wymaga poprawnego tokenu, również obok cookie; brak awaryjnego przejścia na sesję. API: punkty wymagają points:read, czujniki infrastructure:read, pozycje tracking:read. Katalog filtruje rodzaje według zakresów klucza; zapytanie odrzuca całe żądanie, jeśli brakuje zakresu do dowolnego wybranego źródła. POST w sesji wymaga CSRF i X-Telemonit-Workspace; body JSON, limit 1 MiB. Zmiana polityki jest wyłącznie interaktywna; Bearer otrzyma 403 history_session_required. Ten alias dokumentuje wyłącznie odmowę tokenowej zmiany polityki.",
        "x-source-scopes": {
          "point": "points:read",
          "sensor": "infrastructure:read",
          "person": "tracking:read",
          "asset": "tracking:read"
        },
        "responses": {
          "401": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PositionHistoryPolicyChangeV13"
              }
            }
          }
        }
      }
    },
    "/api/v1/tracking/history/{kind}/{id}/series": {
      "get": {
        "operationId": "get_api_v1_tracking_history_kind_id_series_V13",
        "tags": [
          "Historia mapy"
        ],
        "summary": "Odczytaj serię pomiarów położenia",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.13.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/map-history.php",
          "app/MapTimelineService.php",
          "app/PositionHistoryService.php",
          "app/MapHistoryExport.php"
        ],
        "parameters": [
          {
            "name": "date_from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
            },
            "description": ""
          },
          {
            "name": "date_to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
            },
            "description": ""
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2000,
              "default": 2000
            },
            "description": ""
          },
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "person",
                "asset"
              ]
            },
            "description": ""
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Odczyt wymaga aktualnego członkostwa, dostępu do każdego źródła i jego historii. Samo udostępnienie bieżącej pozycji nie przyznaje dostępu do archiwum. Limit 120 zapytań/min na konto. Każdy jawny Authorization wymaga poprawnego tokenu, również obok cookie; brak awaryjnego przejścia na sesję. API: punkty wymagają points:read, czujniki infrastructure:read, pozycje tracking:read. Katalog filtruje rodzaje według zakresów klucza; zapytanie odrzuca całe żądanie, jeśli brakuje zakresu do dowolnego wybranego źródła.",
        "x-source-scopes": {
          "point": "points:read",
          "sensor": "infrastructure:read",
          "person": "tracking:read",
          "asset": "tracking:read"
        },
        "responses": {
          "200": {
            "description": "Aktualny uprawniony wynik, bez zapisu odpowiedzi na serwerze.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MapHistorySeriesV13"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Żądanie odrzucone: uwierzytelnienie, uprawnienia, metoda, granice lub konflikt kontekstu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/work-plans": {
      "get": {
        "operationId": "get_api_work_plans_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Lista dostępnych planów prac",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:read"
        ],
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanListV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only"
      },
      "post": {
        "operationId": "post_api_work_plans_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Utwórz prywatny plan prac",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "201": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkPlanCreateV14"
              }
            }
          }
        }
      }
    },
    "/api/work-plans/state": {
      "get": {
        "operationId": "get_api_work_plans_state_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Kontekst planowania i dostępne zasoby",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:read"
        ],
        "parameters": [
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkStateV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only"
      }
    },
    "/api/work-plans/{id}": {
      "get": {
        "operationId": "get_api_work_plans_id_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Aktualny plan wraz z weryfikacją",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:read"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only"
      },
      "patch": {
        "operationId": "patch_api_work_plans_id_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Zmień propozycję i unieważnij aktualne uzgodnienia",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkPlanPatchV14"
              }
            }
          }
        }
      }
    },
    "/api/work-plans/{id}/visits": {
      "post": {
        "operationId": "post_api_work_plans_id_visits_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Dodaj lub popraw definicję wizyty",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkVisitSaveV14"
              }
            }
          }
        }
      }
    },
    "/api/work-plans/{id}/geometry": {
      "post": {
        "operationId": "post_api_work_plans_id_geometry_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Dodaj lub popraw ręczną figurę planu",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkGeometrySaveV14"
              }
            }
          }
        }
      }
    },
    "/api/work-plans/{id}/acknowledgements": {
      "post": {
        "operationId": "post_api_work_plans_id_acknowledgements_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Osobiście potwierdź bieżącą propozycję",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Potwierdzenie jest wyłącznie osobistą decyzją w sesji. Bearer, także z zakresem zapisu, otrzyma 403 work_plan_ack_session. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkPlanAckInputV14"
              }
            }
          }
        },
        "x-session-only": true
      }
    },
    "/api/work-plans/{id}/grants": {
      "post": {
        "operationId": "post_api_work_plans_id_grants_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Ustal uprawnienia planu jako właściciel organizacji",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkPlanGrantsInputV14"
              }
            }
          }
        }
      }
    },
    "/api/work-plans/{id}/status": {
      "post": {
        "operationId": "post_api_work_plans_id_status_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Zmień etap wykonania planu",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkPlanStatusInputV14"
              }
            }
          }
        }
      }
    },
    "/api/work-plans/{id}/verify": {
      "get": {
        "operationId": "get_api_work_plans_id_verify_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Sprawdź aktualne konflikty i źródła planu",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:read"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkVerificationV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only"
      }
    },
    "/api/work-plans/{id}/visits/{visitId}/status": {
      "post": {
        "operationId": "post_api_work_plans_id_visits_visitId_status_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Zapisz postęp przypisanej wizyty",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "visitId",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkVisitStatusInputV14"
              }
            }
          }
        }
      }
    },
    "/api/work-plans/{id}/visits/{visitId}/conditions": {
      "get": {
        "operationId": "get_api_work_plans_id_visits_visitId_conditions_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Odczytaj podsumowania warunków aktualnej wizyty",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:read"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "visitId",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkConditionsListV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only"
      },
      "post": {
        "operationId": "post_api_work_plans_id_visits_visitId_conditions_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Świadomie odśwież pogodę i dojazd",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "visitId",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit odświeżeń: 10/min; dostawca jest skonfigurowany przez operatora, nie przez dowolny URL żądania.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkConditionsV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkConditionsInputV14"
              }
            }
          }
        }
      }
    },
    "/api/work-plans/{id}/hazards": {
      "get": {
        "operationId": "get_api_work_plans_id_hazards_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Alerty i powiązania kamer dostępne w planie",
        "security": [
          {
            "SessionCookie": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:read"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkHazardListV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only"
      },
      "post": {
        "operationId": "post_api_work_plans_id_hazards_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Zaproponuj alert dla wskazanego obszaru",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit operacji alertów: 30/min.",
        "responses": {
          "201": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkHazardV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkHazardCreateV14"
              }
            }
          }
        }
      }
    },
    "/api/work-plans/{id}/hazard-bindings": {
      "post": {
        "operationId": "post_api_work_plans_id_hazard_bindings_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Ustaw połączenie kamery z obszarem",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit operacji alertów: 30/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkHazardBindingV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkHazardBindingInputV14"
              }
            }
          }
        }
      }
    },
    "/api/work-plans/{id}/hazards/{hazardId}/review": {
      "post": {
        "operationId": "post_api_work_plans_id_hazards_hazardId_review_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Potwierdź, odrzuć lub zakończ alert",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "hazardId",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit operacji alertów: 30/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkHazardV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkHazardReviewInputV14"
              }
            }
          }
        }
      }
    },
    "/api/work-plans/{id}/hazards/{hazardId}/dispatch": {
      "post": {
        "operationId": "post_api_work_plans_id_hazards_hazardId_dispatch_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Zatwierdź kolejkę SMS do wybranych uczestników",
        "security": [
          {
            "SessionCookie": [],
            "CsrfToken": []
          },
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "hazardId",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "X-Telemonit-Workspace",
            "in": "header",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": "Obowiązkowy przy zapisie w sesji. Przy odczycie opcjonalny, ale podany musi odpowiadać bieżącej organizacji."
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit operacji alertów: 30/min.",
        "responses": {
          "202": {
            "description": "Bieżący uprawniony wynik; 202 oznacza kolejkę bez potwierdzenia doręczenia.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkHazardDispatchV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-scopes-apply-to": "ApiKeyBearer only",
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkHazardDispatchInputV14"
              }
            }
          }
        }
      }
    },
    "/api/v1/work-plans": {
      "get": {
        "operationId": "get_api_v1_work_plans_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Lista dostępnych planów prac",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:read"
        ],
        "parameters": [],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanListV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post_api_v1_work_plans_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Utwórz prywatny plan prac",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "201": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkPlanCreateV14"
              }
            }
          }
        }
      }
    },
    "/api/v1/work-plans/state": {
      "get": {
        "operationId": "get_api_v1_work_plans_state_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Kontekst planowania i dostępne zasoby",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:read"
        ],
        "parameters": [],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkStateV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/work-plans/{id}": {
      "get": {
        "operationId": "get_api_v1_work_plans_id_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Aktualny plan wraz z weryfikacją",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:read"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "patch_api_v1_work_plans_id_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Zmień propozycję i unieważnij aktualne uzgodnienia",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkPlanPatchV14"
              }
            }
          }
        }
      }
    },
    "/api/v1/work-plans/{id}/visits": {
      "post": {
        "operationId": "post_api_v1_work_plans_id_visits_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Dodaj lub popraw definicję wizyty",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkVisitSaveV14"
              }
            }
          }
        }
      }
    },
    "/api/v1/work-plans/{id}/geometry": {
      "post": {
        "operationId": "post_api_v1_work_plans_id_geometry_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Dodaj lub popraw ręczną figurę planu",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkGeometrySaveV14"
              }
            }
          }
        }
      }
    },
    "/api/v1/work-plans/{id}/acknowledgements": {
      "post": {
        "operationId": "post_api_v1_work_plans_id_acknowledgements_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Osobiście potwierdź bieżącą propozycję",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Potwierdzenie jest wyłącznie osobistą decyzją w sesji. Bearer, także z zakresem zapisu, otrzyma 403 work_plan_ack_session. Alias /v1 dokumentuje odmowę; nie oferuje udanego potwierdzenia. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkPlanAckInputV14"
              }
            }
          }
        },
        "x-session-only": true
      }
    },
    "/api/v1/work-plans/{id}/grants": {
      "post": {
        "operationId": "post_api_v1_work_plans_id_grants_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Ustal uprawnienia planu jako właściciel organizacji",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkPlanGrantsInputV14"
              }
            }
          }
        }
      }
    },
    "/api/v1/work-plans/{id}/status": {
      "post": {
        "operationId": "post_api_v1_work_plans_id_status_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Zmień etap wykonania planu",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkPlanStatusInputV14"
              }
            }
          }
        }
      }
    },
    "/api/v1/work-plans/{id}/verify": {
      "get": {
        "operationId": "get_api_v1_work_plans_id_verify_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Sprawdź aktualne konflikty i źródła planu",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:read"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkVerificationV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/work-plans/{id}/visits/{visitId}/status": {
      "post": {
        "operationId": "post_api_v1_work_plans_id_visits_visitId_status_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Zapisz postęp przypisanej wizyty",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "visitId",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit zapisów planu: 60/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkPlanV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkVisitStatusInputV14"
              }
            }
          }
        }
      }
    },
    "/api/v1/work-plans/{id}/visits/{visitId}/conditions": {
      "get": {
        "operationId": "get_api_v1_work_plans_id_visits_visitId_conditions_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Odczytaj podsumowania warunków aktualnej wizyty",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:read"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "visitId",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkConditionsListV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post_api_v1_work_plans_id_visits_visitId_conditions_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Świadomie odśwież pogodę i dojazd",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "visitId",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit odświeżeń: 10/min; dostawca jest skonfigurowany przez operatora, nie przez dowolny URL żądania.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkConditionsV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkConditionsInputV14"
              }
            }
          }
        }
      }
    },
    "/api/v1/work-plans/{id}/hazards": {
      "get": {
        "operationId": "get_api_v1_work_plans_id_hazards_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Alerty i powiązania kamer dostępne w planie",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:read"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkHazardListV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "post_api_v1_work_plans_id_hazards_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Zaproponuj alert dla wskazanego obszaru",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit operacji alertów: 30/min.",
        "responses": {
          "201": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkHazardV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkHazardCreateV14"
              }
            }
          }
        }
      }
    },
    "/api/v1/work-plans/{id}/hazard-bindings": {
      "post": {
        "operationId": "post_api_v1_work_plans_id_hazard_bindings_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Ustaw połączenie kamery z obszarem",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit operacji alertów: 30/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkHazardBindingV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkHazardBindingInputV14"
              }
            }
          }
        }
      }
    },
    "/api/v1/work-plans/{id}/hazards/{hazardId}/review": {
      "post": {
        "operationId": "post_api_v1_work_plans_id_hazards_hazardId_review_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Potwierdź, odrzuć lub zakończ alert",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "hazardId",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit operacji alertów: 30/min.",
        "responses": {
          "200": {
            "description": "Bieżący uprawniony wynik.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkHazardV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkHazardReviewInputV14"
              }
            }
          }
        }
      }
    },
    "/api/v1/work-plans/{id}/hazards/{hazardId}/dispatch": {
      "post": {
        "operationId": "post_api_v1_work_plans_id_hazards_hazardId_dispatch_V14",
        "tags": [
          "Planowanie prac"
        ],
        "summary": "Zatwierdź kolejkę SMS do wybranych uczestników",
        "security": [
          {
            "ApiKeyBearer": []
          }
        ],
        "x-telemonit-version": "0.14.0",
        "x-host-surface": "core",
        "x-source-files": [
          "app/routes/work-planning-api.php",
          "app/routes/work-plans.php",
          "app/routes/work-context.php",
          "app/WorkPlanService.php",
          "app/WorkPlanAccess.php",
          "app/WorkPlanSchedule.php",
          "app/WorkConditionsService.php",
          "app/FieldWeatherProvider.php",
          "app/WorkHazardService.php"
        ],
        "x-required-scopes": [
          "work-plans:write"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          },
          {
            "name": "hazardId",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Id"
            },
            "description": ""
          }
        ],
        "description": "Aktualne członkostwo i granty planu nie zastępują uprawnień do punktów ani powiązanych zleceń. Brak publikacji publicznej. Każdy jawny Authorization wymaga poprawnego Bearer; nie ma przejścia na cookie po błędzie tokenu. Limit podstawowy 120 żądań/min na użytkownika. Sesja wymaga X-CSRF-Token i X-Telemonit-Workspace; token /v1 nie używa CSRF. JSON do 1 MiB; propozycja po normalizacji do 256 KiB. Dodatkowy limit operacji alertów: 30/min.",
        "responses": {
          "202": {
            "description": "Bieżący uprawniony wynik; 202 oznacza kolejkę bez potwierdzenia doręczenia.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              },
              "Referrer-Policy": {
                "schema": {
                  "type": "string",
                  "const": "no-referrer"
                }
              },
              "X-Robots-Tag": {
                "schema": {
                  "type": "string",
                  "const": "noindex, nofollow"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WorkHazardDispatchV14"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "419": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Odmowa: uwierzytelnienie, zakres, aktualny ACL, wersja, zgoda, format lub limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-max-request-bytes": 1048576,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkHazardDispatchInputV14"
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "tm_ followed by 64 lowercase hexadecimal characters",
        "description": "Nieprzezroczysty klucz użytkownika i organizacji tm_<64hex>, nie JWT. Zwykły klucz tworzony w panelu ma 1–365 dni ważności; klucz delegowany przez własny grant klienta v0.9 ma 300–28800 sekund według rejestru i dodatkowe powiązanie z klientem/konfiguracją. Najwyżej 10 aktywnych kluczy na użytkownika. Wymagany dokładny prefiks Bearer. Bieżące członkostwo, scope, role i prawa do punktu są sprawdzane przy każdym żądaniu. Cofnięcie, wygaśnięcie lub zmiana rejestru delegowanego klienta blokuje kolejne żądania. Nie używaj sekretu w query string, HTML ani publicznym frontendzie. Nie jest to deklaracja pełnej implementacji OAuth/OIDC; połączenie klienta ma osobne jawnie opisane trasy.",
        "x-available-scopes": {
          "points:read": "Odczyt punktów widocznych w przestrzeni klucza.",
          "points:write": "Tworzenie punktów, dodatkowo wymaga edit_objects.",
          "issues:write": "Zgłoszenia usterek przy dostępnych punktach, dodatkowo can_report.",
          "jobs:read": "Odczyt zleceń, w których użytkownik uczestniczy, w organizacji przypisanej do klucza.",
          "jobs:write": "Tworzenie szkicu zlecenia; brak operacji aukcji i płatności.",
          "export:read": "Eksport danych widocznych użytkownikowi w organizacji klucza według bieżącego ACL.",
          "infrastructure:read": "Katalog dostępnych urządzeń i prywatna historia odczytów po ACL.",
          "infrastructure:write": "Rejestracja/ustawienia urządzenia (manage_orders) i odczyty (can_observe).",
          "operations:read": "Dashboard, kalendarz i dane własnych/przydzielonych zadań; bez sekretów QR.",
          "operations:write": "Meldunek QR, tworzenie terminów przez owner, przekazanie własnego zadania i zapis czasu; bez akceptacji kontraktu i płatności.",
          "integrations:read": "Prywatne obserwacje kamer i modele GLB, po ACL, zatwierdzeniu, terminie i limicie odtworzeń.",
          "incidents:read": "Lista, szczegół i regionalna historia incydentów po aktualnym ACL.",
          "incidents:write": "Tworzenie prywatnego incydentu po uprawnieniach; brak publikacji przez ten endpoint.",
          "tracking:read": "Lokalizatory rzeczy udostępnione użytkownikowi; bez sekretów i bez katalogu cudzych pozycji.",
          "parking:read": "Własne rachunki i zgody; operator widzi tylko swoje uprawnione parkingi.",
          "events:read": "Odczyt wydarzeń po aktualnych prawach właściciela klucza.",
          "events:write": "Tworzenie, edycja i usunięcie dostępnych wydarzeń. Nie przyznaje prawa publikacji przez Bearer API.",
          "community:read": "Odczyt community; bieżący ACL, bez publikacji, GPS osób i decyzji interaktywnych.",
          "community:write": "Ograniczone operacje zapisu community; bieżący ACL, bez publikacji, GPS osób i decyzji interaktywnych.",
          "journeys:read": "Odczyt journeys; bieżący ACL, bez publikacji, GPS osób i decyzji interaktywnych.",
          "journeys:write": "Ograniczone operacje zapisu journeys; bieżący ACL, bez publikacji, GPS osób i decyzji interaktywnych.",
          "work-plans:read": "Odczyt prywatnych planów, weryfikacji, warunków i alertów według aktualnych uprawnień.",
          "work-plans:write": "Dozwolone zapisy planów, wizyt, figur, warunków i alertów; bez osobistego uzgodnienia stron."
        }
      },
      "SessionCookie": {
        "type": "apiKey",
        "in": "cookie",
        "name": "telemonit_session",
        "description": "Sesja HttpOnly/SameSite=Lax. Zwykłe trasy wymagają zalogowanego użytkownika; open share może używać sesji anonimowej. Sama sesja nie nadaje praw do cudzej organizacji. V0.10: cookie jest host-only; osobny host centralnego konta używa telemonit_identity_session. Brak Domain=.telemonit.pl."
      },
      "CsrfToken": {
        "type": "apiKey",
        "in": "header",
        "name": "X-CSRF-Token",
        "description": "Token tej samej sesji, dostępny w HTML aplikacji lub GET /api/session po zalogowaniu. Przy publicznym udostępnieniu pobierz shell /udostepnienie. Nie zastępuje uprawnień."
      },
      "SensorBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "tm_sensor_<64 lowercase hex>",
        "description": "Wyłącznie zapis telemetryczny jednego asset_id. Token 1–90 dni, skrót w bazie. Wystawca musi nadal mieć prawo zarządzania urządzeniem; cofnięcie działa przy kolejnym żądaniu."
      },
      "KioskBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "64 lowercase hex",
        "description": "Oddzielny klucz checkpoint:challenge, 1–30 dni, związany z jednym checkpointem i aktualnym wystawcą owner. Umożliwia wyświetlanie zmiennego QR, nie meldunek ani dostęp do danych punktu."
      },
      "EdgeSignature": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Telemonit-Signature",
        "description": "Mały hex HMAC-SHA256(secret, timestamp + LF + nonce + LF + dokładne bajty JSON). Nagłówki Timestamp i Nonce obowiązkowe; okno czasu ±60 s, nonce jednorazowy dla connector_id. Nie poprzedzaj podpisu sha256=."
      },
      "CivicSignature": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Telemonit-Signature",
        "description": "sha256=<hex HMAC-SHA256(secret, timestamp + \".\" + dokładne bajty JSON)>. X-Telemonit-Timestamp w sekundach, okno ±300 s. To inny kontrakt podpisu niż edge."
      },
      "StripeSignature": {
        "type": "apiKey",
        "in": "header",
        "name": "Stripe-Signature",
        "description": "Oryginalny podpis Stripe webhook; weryfikacja HMAC/timestamp nad niezmienionym raw body i ponowne sprawdzenie obiektu u operatora. Nie jest kluczem API użytkownika."
      },
      "TrackingBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "tm_track_<64 lowercase hex>",
        "description": "Wąski token tracking:position:write dla jednego asset_id, z terminem i ponownym sprawdzeniem wystawcy. Nie przyznaje dostępu do pozycji osób."
      },
      "ParkingBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "tm_park_<64 lowercase hex>",
        "description": "Jedna brama jednego parkingu, wyłącznie obserwacja wjazdu/wyjazdu. Rotacja unieważnia poprzedni klucz. Nie jest mandatem płatniczym."
      },
      "IdentitySessionCookie": {
        "type": "apiKey",
        "in": "cookie",
        "name": "telemonit_identity_session",
        "description": "Wyłącznie host IDENTITY_PUBLIC_URL. Host-only, HttpOnly, SameSite=Lax, Secure w produkcji. Odrębna przestrzeń sesji od telemonit_session; formularz posiada sesję także przed zalogowaniem. Nie kopiuj tego cookie do core ani portali."
      }
    },
    "schemas": {
      "Id": {
        "type": "string",
        "description": "Identyfikator UUID nadany przez serwer.",
        "format": "uuid"
      },
      "NullableId": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "Timestamp": {
        "type": "string",
        "description": "Czas UTC w formacie ISO 8601.",
        "format": "date-time"
      },
      "NullableTimestamp": {
        "type": [
          "string",
          "null"
        ],
        "format": "date-time"
      },
      "RequestId": {
        "type": "string",
        "description": "Identyfikator nadawany przez klienta. Ponów tę samą operację z tym samym identyfikatorem i treścią. UUID jest zalecany, ale nie jest wymagany.",
        "minLength": 8,
        "maxLength": 80,
        "pattern": "^[a-zA-Z0-9_-]{8,80}$",
        "examples": [
          "d8fd5a25-0fb4-4d33-aeb4-0d334e1272a1"
        ]
      },
      "Latitude": {
        "type": "number",
        "minimum": -90,
        "maximum": 90
      },
      "Longitude": {
        "type": "number",
        "minimum": -180,
        "maximum": 180
      },
      "ApproxLatitude": {
        "type": [
          "number",
          "null"
        ],
        "minimum": -90,
        "maximum": 90,
        "description": "Współrzędna zaokrąglona do 2 miejsc; null bez osobnej zgody na publiczną lokalizację. Nie jest anonimowością gwarantowaną ani dokładnym GPS."
      },
      "ApproxLongitude": {
        "type": [
          "number",
          "null"
        ],
        "minimum": -180,
        "maximum": 180,
        "description": "Współrzędna zaokrąglona do 2 miejsc; null bez osobnej zgody na publiczną lokalizację."
      },
      "Category": {
        "type": "string",
        "description": "Kategoria marketplace. Typ punktu mapowego jest osobnym polem tekstowym.",
        "enum": [
          "electrical",
          "plumbing",
          "cctv",
          "network",
          "general",
          "cleaning",
          "other"
        ],
        "x-enum-labels": {
          "electrical": "Elektryka",
          "plumbing": "Hydraulika",
          "cctv": "Kamery i alarmy",
          "network": "Sieci i internet",
          "general": "Drobne naprawy",
          "cleaning": "Sprzątanie",
          "other": "Inne"
        }
      },
      "Currency": {
        "type": "string",
        "description": "Waluta marketplace; kwoty amount_minor są w groszach.",
        "enum": [
          "PLN"
        ]
      },
      "Selection": {
        "type": "string",
        "description": "Kryterium wyboru po końcu aukcji. Remisy rozstrzyga czas oferty, a następnie jej identyfikator.",
        "enum": [
          "lowest_price",
          "nearest"
        ],
        "default": "lowest_price"
      },
      "PointIcon": {
        "type": "string",
        "enum": [
          "pin",
          "camera",
          "gate",
          "light",
          "pump",
          "cabinet",
          "sensor",
          "other"
        ],
        "default": "pin"
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Kod maszynowy błędu; korzystaj z niego zamiast parsowania komunikatu."
              },
              "message": {
                "type": "string",
                "description": "Komunikat dla użytkownika, zwykle po polsku."
              },
              "details": {
                "type": [
                  "object",
                  "array"
                ],
                "description": "Dodatkowe dane błędu; najczęściej pusta tablica [].",
                "additionalProperties": true
              }
            },
            "required": [
              "code",
              "message",
              "details"
            ]
          }
        },
        "required": [
          "error"
        ]
      },
      "PointParametersInput": {
        "oneOf": [
          {
            "type": "object",
            "maxProperties": 25,
            "propertyNames": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            },
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            }
          },
          {
            "type": "string",
            "description": "Alternatywnie tekst JSON reprezentujący taki sam obiekt."
          },
          {
            "type": "array",
            "maxItems": 0,
            "description": "Akceptowana dla zgodności pusta tablica; zalecany jest obiekt {}."
          }
        ],
        "description": "Maksymalnie 25 płaskich pól. Wartości po konwersji i przycięciu mają do 500 znaków. Serwer zapisuje je jako tekst: true → tak, false → nie, null → pusty tekst. Zagnieżdżone obiekty i tablice są odrzucane."
      },
      "PointParameters": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 500
            }
          }
        ],
        "description": "Zwykle obiekt wartości tekstowych. Nazwy parametrów będące kolejnymi indeksami liczbowymi mogą być serializowane jako tablica przez PHP."
      },
      "PointCreate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "number": {
            "type": "string",
            "description": "Unikalny w przestrzeni, także wśród zarchiwizowanych punktów. Bez pola serwer tworzy numer TM-XXXXXXXX.",
            "minLength": 1,
            "maxLength": 80
          },
          "type": {
            "type": "string",
            "description": "Własna etykieta typu; nie jest ograniczona do kategorii marketplace.",
            "minLength": 1,
            "maxLength": 60,
            "default": "other"
          },
          "icon": {
            "$ref": "#/components/schemas/PointIcon"
          },
          "description": {
            "type": "string",
            "maxLength": 4000,
            "default": ""
          },
          "parameters": {
            "$ref": "#/components/schemas/PointParametersInput"
          }
        },
        "required": [
          "name",
          "lat",
          "lng"
        ],
        "description": "Utworzenie punktu w przestrzeni przypisanej do klucza. Pola tekstowe są przycinane. Nie jest to operacja idempotentna; request_id i nagłówek Idempotency-Key nie są obsługiwane dla punktów."
      },
      "Point": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "number": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "icon": {
            "$ref": "#/components/schemas/PointIcon"
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "description": {
            "type": "string"
          },
          "parameters": {
            "$ref": "#/components/schemas/PointParameters"
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "archived_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "open_issues": {
            "type": "integer",
            "description": "Liczba usterek o statusie innym niż resolved; obecna przy GET listy, nie jest zwracana przy POST.",
            "minimum": 0
          }
        },
        "required": [
          "id",
          "workspace_id",
          "number",
          "name",
          "type",
          "icon",
          "lat",
          "lng",
          "description",
          "parameters",
          "version",
          "archived_at",
          "created_at",
          "updated_at"
        ]
      },
      "IssueCreate": {
        "type": "object",
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "description": {
            "type": "string",
            "description": "Opcjonalny opis; samo zgłoszenie wystarcza.",
            "maxLength": 4000,
            "default": ""
          }
        },
        "required": [
          "request_id"
        ]
      },
      "Issue": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "object_id": {
            "$ref": "#/components/schemas/Id"
          },
          "author_id": {
            "$ref": "#/components/schemas/Id"
          },
          "description": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "new",
              "in_progress",
              "resolved"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "id",
          "workspace_id",
          "object_id",
          "author_id",
          "description",
          "status",
          "version",
          "request_id",
          "created_at",
          "updated_at"
        ],
        "description": "Nowe zgłoszenie ma status new. Idempotentne ponowienie może zwrócić istniejące zgłoszenie z jego bieżącym statusem; zewnętrzne API nie udostępnia zmiany statusu."
      },
      "JobCreate": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "description": "Opis 5–600 znaków przed normalizacją odstępów. Widoczny uczestnikom zlecenia; nie jest automatycznie kopiowany do publikacji publicznej.",
            "minLength": 5,
            "maxLength": 600
          },
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "category": {
            "$ref": "#/components/schemas/Category",
            "default": "other"
          },
          "selection": {
            "$ref": "#/components/schemas/Selection"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency",
            "default": "PLN"
          },
          "point_id": {
            "$ref": "#/components/schemas/NullableId",
            "description": "Opcjonalne powiązanie z aktywnym prywatnym punktem. Wymaga manage_orders przy tym punkcie (obecnie właściciel przestrzeni). Nie udostępnia punktu wykonawcy."
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude",
            "description": "Wymagane bez point_id; z point_id domyślnie pobierane z punktu."
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude",
            "description": "Wymagane bez point_id; z point_id domyślnie pobierane z punktu."
          },
          "published": {
            "type": "boolean",
            "description": "Zgoda na publikację ogłoszenia po uruchomieniu aukcji. Sam szkic nie pojawia się w publicznym katalogu.",
            "default": false
          },
          "public_location": {
            "type": "boolean",
            "description": "Osobna zgoda na publikację przybliżonej lokalizacji, zaokrąglonej do 2 miejsc.",
            "default": false
          },
          "public_summary": {
            "type": "string",
            "description": "Osobny opis publiczny, bez prywatnego adresu, telefonu ani innych danych przeznaczonych wyłącznie dla wykonawcy. Wymagane minimum 5 znaków, gdy published=true.",
            "maxLength": 600,
            "default": ""
          },
          "estimated_minutes": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EstimatedMinutes"
              },
              {
                "type": "string",
                "pattern": "^\\s*$",
                "description": "Pusty tekst jest normalizowany do null."
              }
            ],
            "default": null,
            "description": "Opcjonalnie 1–1440 całych minut lub null; pominięcie/pusta wartość oznacza brak oszacowania. W JSON wysyłaj liczbę całkowitą albo null. Przy published=true szacunek jest także częścią publicznego DTO."
          }
        },
        "required": [
          "description",
          "request_id"
        ],
        "description": "Tworzy wyłącznie szkic draft. Aukcja, oferty, płatność, odbiór i transfer nie są operacjami /api/v1. Prowizja jest kopiowana z ustawień serwera w momencie pierwszego utworzenia szkicu.",
        "anyOf": [
          {
            "required": [
              "lat",
              "lng"
            ]
          },
          {
            "required": [
              "point_id"
            ],
            "properties": {
              "point_id": {
                "$ref": "#/components/schemas/Id"
              }
            }
          }
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "published": {
                  "const": true
                }
              },
              "required": [
                "published"
              ]
            },
            "then": {
              "required": [
                "public_summary"
              ],
              "properties": {
                "public_summary": {
                  "minLength": 5
                }
              }
            }
          }
        ]
      },
      "JobStatus": {
        "type": "string",
        "enum": [
          "draft",
          "auction",
          "no_bids",
          "awaiting_payment",
          "funded",
          "in_progress",
          "submitted",
          "accepted",
          "release_pending",
          "released",
          "manual_review"
        ]
      },
      "JobReview": {
        "type": "object",
        "properties": {
          "rating": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5
          },
          "comment": {
            "type": "string"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "rating",
          "comment",
          "created_at"
        ]
      },
      "Job": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "description": {
            "type": "string"
          },
          "public_summary": {
            "type": "string"
          },
          "category": {
            "$ref": "#/components/schemas/Category"
          },
          "selection": {
            "$ref": "#/components/schemas/Selection"
          },
          "status": {
            "$ref": "#/components/schemas/JobStatus"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "auction_started_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "auction_ends_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "published": {
            "type": "boolean"
          },
          "public_location": {
            "type": "boolean"
          },
          "funded_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "started_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "submitted_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "accepted_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "released_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "fee_bps": {
            "type": "integer",
            "description": "Niezmienna stawka dla tego zlecenia: 1000 oznacza 10%. Może być inna niż aktualna stawka w konfiguracji.",
            "minimum": 0,
            "maximum": 5000
          },
          "amount_minor": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "description": "Cena w groszach. Null przed wyborem oferty lub dla użytkownika innego niż zamawiający i zwycięzca."
          },
          "fee_minor": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "description": "Prowizja w groszach: floor(amount_minor × fee_bps / 10000). Null przed wyborem oferty lub bez dostępu finansowego."
          },
          "provider_amount_minor": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "description": "Kwota wykonawcy po odjęciu prowizji, w groszach. To nie jest deklaracja kwoty netto VAT."
          },
          "buyer_user_id": {
            "$ref": "#/components/schemas/NullableId"
          },
          "winner_user_id": {
            "$ref": "#/components/schemas/NullableId"
          },
          "approx_lat": {
            "$ref": "#/components/schemas/ApproxLatitude"
          },
          "approx_lng": {
            "$ref": "#/components/schemas/ApproxLongitude"
          },
          "payment_status": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "pending",
              "creating",
              "ready",
              "funded",
              "failed",
              "needs_reconciliation",
              "manual_review",
              null
            ],
            "description": "Odczyt stanu istniejącego rozliczenia; null dla pozostałych oferentów. Sam odczyt nie inicjuje płatności."
          },
          "release_status": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "none",
              "pending",
              "processing",
              "released",
              "needs_reconciliation",
              "manual_review",
              null
            ],
            "description": "released oznacza transfer do konta operatora płatności wykonawcy, nie potwierdzenie przelewu na rachunek bankowy."
          },
          "review": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JobReview"
              },
              {
                "type": "null"
              }
            ]
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude",
            "description": "Dokładna lokalizacja tylko dla zamawiającego i wybranego wykonawcy; dla innych pole jest pomijane."
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude",
            "description": "Dokładna lokalizacja tylko dla zamawiającego i wybranego wykonawcy."
          },
          "point_id": {
            "$ref": "#/components/schemas/NullableId",
            "description": "Tylko zamawiający; brak powiązania oznacza null."
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id",
            "description": "Tylko zamawiający. Zlecenia marketplace mają udział użytkownika niezależny od jego aktywnej przestrzeni."
          },
          "estimated_minutes": {
            "$ref": "#/components/schemas/EstimatedMinutes"
          }
        },
        "required": [
          "id",
          "description",
          "public_summary",
          "category",
          "selection",
          "status",
          "currency",
          "auction_started_at",
          "auction_ends_at",
          "created_at",
          "updated_at",
          "published",
          "public_location",
          "funded_at",
          "started_at",
          "submitted_at",
          "accepted_at",
          "released_at",
          "version",
          "fee_bps",
          "amount_minor",
          "fee_minor",
          "provider_amount_minor",
          "buyer_user_id",
          "winner_user_id",
          "approx_lat",
          "approx_lng",
          "payment_status",
          "release_status",
          "review",
          "estimated_minutes"
        ],
        "description": "Zlecenie z projekcją zależną od użytkownika. Dla oferenta, który nie wygrał, kwoty i identyfikatory stron są null, a dokładne współrzędne, point_id i workspace_id są pomijane. Prywatny punkt nigdy nie jest udostępniany przez ten DTO."
      },
      "Bid": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "job_id": {
            "$ref": "#/components/schemas/Id"
          },
          "provider_user_id": {
            "$ref": "#/components/schemas/Id"
          },
          "display_name": {
            "type": "string"
          },
          "amount_minor": {
            "type": "integer",
            "description": "Cena oferty w groszach.",
            "minimum": 200,
            "maximum": 99999999
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "distance_km": {
            "type": "integer",
            "description": "Zaokrąglona odległość w linii prostej; nie jest czasem ani długością trasy.",
            "minimum": 0
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "id",
          "job_id",
          "provider_user_id",
          "display_name",
          "amount_minor",
          "currency",
          "distance_km",
          "created_at"
        ]
      },
      "JobActions": {
        "type": "object",
        "properties": {
          "start_auction": {
            "type": "boolean"
          },
          "bid": {
            "type": "boolean"
          },
          "close_auction": {
            "type": "boolean"
          },
          "checkout": {
            "type": "boolean"
          },
          "start_work": {
            "type": "boolean"
          },
          "submit_work": {
            "type": "boolean"
          },
          "accept_work": {
            "type": "boolean"
          },
          "release": {
            "type": "boolean"
          },
          "review": {
            "type": "boolean"
          },
          "dispute": {
            "type": "boolean"
          },
          "view_private": {
            "type": "boolean"
          }
        },
        "required": [
          "start_auction",
          "bid",
          "close_auction",
          "checkout",
          "start_work",
          "submit_work",
          "accept_work",
          "release",
          "review",
          "dispute",
          "view_private"
        ],
        "description": "Wskazówki dla aplikacji webowej zalogowanego użytkownika. Flagi nie nadają zakresów klucza i nie oznaczają, że dana operacja jest dostępna w /api/v1. Flaga checkout nie zastępuje globalnego payments_enabled."
      },
      "JobDetail": {
        "type": "object",
        "properties": {
          "job": {
            "$ref": "#/components/schemas/Job"
          },
          "bids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Bid"
            }
          },
          "my_bid": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Bid"
              },
              {
                "type": "null"
              }
            ]
          },
          "actions": {
            "$ref": "#/components/schemas/JobActions"
          },
          "server_now": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "job",
          "bids",
          "my_bid",
          "actions",
          "server_now"
        ],
        "description": "Odpowiedź na utworzenie szkicu lub idempotentne ponowienie. Pierwszy zapis zwraca draft i puste bids; ponowienie zwraca bieżący stan tego samego zlecenia."
      },
      "PublicConfig": {
        "type": "object",
        "properties": {
          "brand": {
            "type": "string"
          },
          "tagline": {
            "type": "string"
          },
          "support_email": {
            "type": "string",
            "description": "Może być pusty, gdy administrator jeszcze nie skonfigurował kontaktu."
          },
          "producer_name": {
            "type": "string"
          },
          "producer_url": {
            "type": "string",
            "format": "uri"
          },
          "primary_color": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$"
          },
          "locale": {
            "type": "string",
            "enum": [
              "pl-PL"
            ]
          },
          "auction_seconds": {
            "type": "integer",
            "description": "Aktualne ustawienie dla nowych aukcji; domyślnie 60.",
            "minimum": 30,
            "maximum": 300
          },
          "default_radius_km": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "url": {
            "type": "string",
            "description": "Skonfigurowany kanoniczny adres portalu.",
            "format": "uri"
          },
          "fee_bps": {
            "type": "integer",
            "description": "Aktualna prowizja dla nowych zleceń; istniejące mają własny snapshot.",
            "minimum": 0,
            "maximum": 5000
          },
          "legal_ready": {
            "type": "boolean",
            "description": "Stan konfiguracji wymaganej do włączenia płatności. Nie stanowi zapewnienia prawnego."
          },
          "payments_enabled": {
            "type": "boolean",
            "description": "Czy instalacja dopuszcza nowe płatności marketplace. Nie oznacza istnienia płatniczego REST /api/v1."
          },
          "traffic_enabled": {
            "type": "boolean",
            "description": "Czy skonfigurowano dostawcę prognoz trasy i ruchu."
          }
        },
        "required": [
          "brand",
          "tagline",
          "support_email",
          "producer_name",
          "producer_url",
          "primary_color",
          "locale",
          "auction_seconds",
          "default_radius_km",
          "url",
          "fee_bps",
          "legal_ready",
          "payments_enabled",
          "traffic_enabled"
        ]
      },
      "PublicProvider": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "user_id": {
            "$ref": "#/components/schemas/Id"
          },
          "display_name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Category"
            },
            "minItems": 1,
            "maxItems": 7,
            "uniqueItems": true
          },
          "radius_km": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "published": {
            "const": true
          },
          "public_location": {
            "type": "boolean"
          },
          "available_until": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "available": {
            "type": "boolean",
            "description": "Stan TTL oceniony przez serwer. Profil może wygasnąć między wyborem kandydatów a serializacją; nie traktuj wyniku jako rezerwacji wykonawcy."
          },
          "approx_lat": {
            "$ref": "#/components/schemas/ApproxLatitude"
          },
          "approx_lng": {
            "$ref": "#/components/schemas/ApproxLongitude"
          },
          "distance_km": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "description": "Zaokrąglona odległość w linii prostej do przybliżonej lokalizacji. Null bez origin lub zgody na lokalizację. Brak ETA."
          },
          "rating": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 1,
            "maximum": 5
          },
          "review_count": {
            "type": "integer",
            "minimum": 0
          },
          "price_from_minor": {
            "type": "null",
            "description": "Nie ma publicznego cennika wykonawcy; rzeczywista cena jest podawana w ofercie."
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "id",
          "user_id",
          "display_name",
          "description",
          "categories",
          "radius_km",
          "published",
          "public_location",
          "available_until",
          "available",
          "approx_lat",
          "approx_lng",
          "distance_km",
          "rating",
          "review_count",
          "price_from_minor",
          "url"
        ],
        "description": "Wyłącznie jawnie opublikowany profil z niewygasłą deklaracją dostępności. Nigdy nie zawiera dokładnego GPS, adresu e-mail ani identyfikatora konta płatniczego."
      },
      "PublicJob": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "description": {
            "type": "string",
            "description": "Alias osobnego public_summary, nigdy prywatnego opisu zlecenia."
          },
          "public_summary": {
            "type": "string"
          },
          "category": {
            "$ref": "#/components/schemas/Category"
          },
          "selection": {
            "$ref": "#/components/schemas/Selection"
          },
          "status": {
            "const": "auction"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "auction_ends_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "approx_lat": {
            "$ref": "#/components/schemas/ApproxLatitude"
          },
          "approx_lng": {
            "$ref": "#/components/schemas/ApproxLongitude"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "estimated_minutes": {
            "$ref": "#/components/schemas/EstimatedMinutes"
          }
        },
        "required": [
          "id",
          "description",
          "public_summary",
          "category",
          "selection",
          "status",
          "currency",
          "auction_ends_at",
          "approx_lat",
          "approx_lng",
          "url",
          "estimated_minutes"
        ],
        "description": "Jawnie opublikowana, jeszcze trwająca aukcja z osobnym opisem publicznym. Brak dokładnych współrzędnych, identyfikatorów stron, ofert, kwot, wiadomości i danych prywatnego punktu."
      },
      "PublicPoint": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "approximate_location": {
            "type": "string",
            "description": "Celowo opublikowany opis okolicy, do 200 znaków. To tekst, nie współrzędne.",
            "maxLength": 200
          }
        },
        "required": [
          "id",
          "title",
          "summary",
          "city",
          "approximate_location"
        ],
        "description": "Osobna projekcja publikacji aktywnego punktu. Nie zawiera parametrów, notatek, usterek, dokładnego GPS ani workspace_id."
      },
      "Workspace": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "ExportUser": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "is_admin": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "email",
          "is_admin"
        ]
      },
      "ExportManifest": {
        "type": "object",
        "properties": {
          "type": {
            "const": "manifest"
          },
          "schema": {
            "type": "string",
            "const": "telemonit.export/v6"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "workspace": {
            "$ref": "#/components/schemas/Workspace"
          },
          "user": {
            "$ref": "#/components/schemas/ExportUser"
          },
          "scope": {
            "type": "string",
            "enum": [
              "workspace",
              "points"
            ]
          },
          "files": {
            "type": "string",
            "description": "Informacja o prywatnych mediach dostępnych przez osobno uwierzytelnione adresy."
          }
        },
        "required": [
          "type",
          "schema",
          "created_at",
          "workspace",
          "user",
          "scope",
          "files"
        ]
      },
      "ExportDataRecord": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "point",
              "notes",
              "issues",
              "observation",
              "message",
              "service_order",
              "direct_message",
              "marketplace",
              "infrastructure_asset",
              "infrastructure_reading",
              "infrastructure_watch",
              "civic_report",
              "operations_task",
              "operations_time_entry",
              "operations_contract",
              "operations_checkpoint",
              "operations_checkin",
              "camera_observation",
              "camera_rule",
              "model_variant",
              "integration_connector",
              "ai_meter",
              "own_phone",
              "own_contact_consent",
              "incident",
              "incident_event",
              "incident_view",
              "calendar_event",
              "event_history",
              "event_interests",
              "shared_position",
              "tracked_asset",
              "protected_photo_share",
              "parking_session",
              "parking_permit"
            ]
          },
          "data": {
            "type": "object",
            "additionalProperties": true,
            "description": "Rekord schematu telemonit.export/v4. point to surowy wiersz punktu (parameters jest tekstem JSON); notes/issues to wiersze notatek/usterek. observation/message/service_order korzystają z projekcji i ACL modułu terenowego. direct_message obejmuje kontekst i tylko wiadomości widoczne użytkownikowi. marketplace zawiera zagnieżdżone {type,data}: marketplace_job (Job), marketplace_bid (Bid) lub marketplace_message. Pola finansowe i media pozostają ograniczone aktualnymi uprawnieniami. V0.4 dodaje uprawnione rekordy infrastruktury, osobiste zgłoszenia civic, zadania/czas/kontrakty/meldunki, obserwacje kamer i modele, a dla owner niepoufne konfiguracje connectorów i licznik AI. Brak haseł, kluczy kiosku/telemetrii, linków evidence i źródłowych fotografii publicznych modeli. Pliki pozostają referencjami, nie bajtami w NDJSON."
          }
        },
        "required": [
          "type",
          "data"
        ]
      },
      "ExportEnd": {
        "type": "object",
        "properties": {
          "type": {
            "const": "end"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "complete": {
            "const": true
          }
        },
        "required": [
          "type",
          "created_at",
          "complete"
        ]
      },
      "ExportRecord": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ExportManifest"
          },
          {
            "$ref": "#/components/schemas/ExportDataRecord"
          },
          {
            "$ref": "#/components/schemas/ExportEnd"
          },
          {
            "$ref": "#/components/schemas/ExportRecordV11"
          }
        ],
        "description": "Jeden obiekt JSON na linię. Pierwsza linia to manifest, ostatnia end z complete=true. Brak końcowego rekordu oznacza niekompletny eksport. To nie jest tablica JSON ani kopia całej bazy."
      },
      "McpRequest": {
        "type": "object",
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer",
              "null"
            ],
            "description": "Bez klucza id poprawne powiadomienie otrzymuje HTTP 202 bez treści."
          },
          "method": {
            "type": "string",
            "description": "Obsługiwane metody: initialize, ping, tools/list, tools/call. Inna nazwa daje błąd JSON-RPC -32601. Brak batch i strumienia SSE."
          },
          "params": {
            "type": "object",
            "additionalProperties": true,
            "description": "initialize: protocolVersion; tools/call: name i arguments. Narzędzia są publiczne i tylko do odczytu."
          }
        },
        "required": [
          "jsonrpc",
          "method"
        ]
      },
      "McpReply": {
        "type": "object",
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer",
              "null"
            ]
          },
          "result": {
            "type": "object",
            "additionalProperties": true
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "integer"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ]
          }
        },
        "required": [
          "jsonrpc",
          "id"
        ],
        "description": "Bez opakowania data. Błędy protokołu JSON-RPC mogą mieć HTTP 200. Narzędzie może zwrócić result.isError=true z opisem w result.content; odpowiedzi tools/call zawierają wynik jako tekst JSON.",
        "oneOf": [
          {
            "required": [
              "result"
            ],
            "not": {
              "required": [
                "error"
              ]
            }
          },
          {
            "required": [
              "error"
            ],
            "not": {
              "required": [
                "result"
              ]
            }
          }
        ]
      },
      "Health": {
        "type": "object",
        "properties": {
          "status": {
            "const": "ok"
          },
          "service": {
            "const": "telemonit"
          }
        },
        "required": [
          "status",
          "service"
        ]
      },
      "EstimatedMinutes": {
        "type": [
          "integer",
          "null"
        ],
        "minimum": 1,
        "maximum": 1440,
        "description": "Ręcznie podany przez zamawiającego szacowany czas wykonania w minutach. Null oznacza nieoszacowano. Nie jest czasem dojazdu ani automatycznym wynikiem AI; nie zmienia kryterium wyboru wykonawcy ani ceny."
      },
      "FreeObject": {
        "type": "object",
        "properties": {},
        "additionalProperties": true,
        "description": "Struktura modułu; dodatkowe pola mogą zostać rozszerzone w kolejnych zgodnych wydaniach."
      },
      "Revoked": {
        "type": "object",
        "properties": {
          "revoked": {
            "type": "boolean"
          }
        },
        "additionalProperties": true,
        "required": [
          "revoked"
        ]
      },
      "UtcSecond": {
        "type": "string",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
        "format": "date-time",
        "description": "UTC z pełnymi sekundami, np. 2026-11-21T12:30:00Z."
      },
      "Audience": {
        "type": "string",
        "enum": [
          "public",
          "org",
          "team",
          "user"
        ],
        "description": "Public: jawna projekcja; Org: aktualni członkowie organizacji; Team: jawne aktualne członkostwo zespołu; User: wskazani członkowie. Prywatny odczyt nadal wymaga ACL punktu."
      },
      "HexToken": {
        "type": "string",
        "pattern": "^[a-f0-9]{64}$",
        "minLength": 64,
        "maxLength": 64,
        "writeOnly": true
      },
      "NumericOrNull": {
        "type": [
          "number",
          "null"
        ]
      },
      "InfrastructureKind": {
        "type": "string",
        "enum": [
          "camera",
          "mesh",
          "parking_meter",
          "speed_camera",
          "speed_sensor",
          "bts",
          "pump",
          "water_meter",
          "energy_meter",
          "sensor",
          "playground",
          "light",
          "router",
          "server",
          "hub",
          "antenna",
          "other"
        ]
      },
      "ReadingState": {
        "type": "string",
        "enum": [
          "ok",
          "warning",
          "fault",
          "offline",
          "unknown"
        ]
      },
      "InfrastructureStatus": {
        "type": "string",
        "enum": [
          "ok",
          "warning",
          "fault",
          "offline",
          "unknown",
          "unmonitored",
          "stale"
        ],
        "description": "stale oznacza wygaśnięcie świeżości pomiaru; nie potwierdza awarii. unmonitored oznacza brak monitoringu."
      },
      "InfrastructureSource": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string"
          },
          "attribution": {
            "type": "string"
          },
          "license": {
            "type": "string"
          },
          "observed_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "imported_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "accuracy_m": {
            "$ref": "#/components/schemas/NumericOrNull"
          }
        },
        "additionalProperties": true
      },
      "MonitorSettings": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "metric": {
            "type": "string",
            "maxLength": 60
          },
          "unit": {
            "type": "string",
            "maxLength": 30
          },
          "warning_above": {
            "$ref": "#/components/schemas/NumericOrNull"
          },
          "warning_below": {
            "$ref": "#/components/schemas/NumericOrNull"
          },
          "hysteresis": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000000.0
          },
          "stale_seconds": {
            "type": "integer",
            "minimum": 30,
            "maximum": 604800
          }
        },
        "additionalProperties": true,
        "description": "Progi muszą być uporządkowane, a 2×histereza mniejsze od różnicy progów, gdy oba istnieją. Null usuwa dany próg."
      },
      "InfrastructurePublic": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "kind": {
            "$ref": "#/components/schemas/InfrastructureKind"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "visibility": {
            "const": "public"
          },
          "published": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/InfrastructureStatus"
          },
          "last_observed_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "fresh_until": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "source": {
            "$ref": "#/components/schemas/InfrastructureSource"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "distance_km": {
            "type": "number",
            "minimum": 0,
            "description": "Opcjonalnie: odległość po prostej od przekazanej pozycji; nie czas lub długość trasy."
          },
          "watching": {
            "type": "boolean",
            "description": "Tylko przy odczycie zalogowanym/tokenowym."
          }
        },
        "additionalProperties": true,
        "required": [
          "id",
          "kind",
          "title",
          "description",
          "lat",
          "lng",
          "visibility",
          "published",
          "status",
          "source"
        ]
      },
      "InfrastructurePrivate": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "kind": {
            "$ref": "#/components/schemas/InfrastructureKind"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "visibility": {
            "const": "authorised"
          },
          "published": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/InfrastructureStatus"
          },
          "last_observed_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "fresh_until": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "source": {
            "$ref": "#/components/schemas/InfrastructureSource"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "distance_km": {
            "type": "number",
            "minimum": 0,
            "description": "Opcjonalnie: odległość po prostej od przekazanej pozycji; nie czas lub długość trasy."
          },
          "watching": {
            "type": "boolean",
            "description": "Tylko przy odczycie zalogowanym/tokenowym."
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "object_id": {
            "$ref": "#/components/schemas/NullableId"
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "public_title": {
            "type": "string"
          },
          "public_description": {
            "type": "string"
          },
          "public_lat": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Latitude"
              },
              {
                "type": "null"
              }
            ]
          },
          "public_lng": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Longitude"
              },
              {
                "type": "null"
              }
            ]
          },
          "monitor": {
            "$ref": "#/components/schemas/MonitorSettings"
          },
          "last_value": {
            "$ref": "#/components/schemas/NumericOrNull"
          },
          "last_summary": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": true,
        "required": [
          "id",
          "visibility",
          "workspace_id",
          "version",
          "monitor"
        ]
      },
      "InfrastructureAsset": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/InfrastructurePublic"
          },
          {
            "$ref": "#/components/schemas/InfrastructurePrivate"
          }
        ]
      },
      "InfrastructureSearch": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InfrastructureAsset"
            },
            "maxItems": 200
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          },
          "next_offset": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "distance_basis": {
            "enum": [
              "straight_line",
              null
            ]
          },
          "server_now": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": true,
        "required": [
          "items",
          "total",
          "offset",
          "limit",
          "next_offset",
          "distance_basis",
          "server_now"
        ]
      },
      "InfrastructureRegister": {
        "type": "object",
        "properties": {
          "object_id": {
            "$ref": "#/components/schemas/Id"
          },
          "kind": {
            "$ref": "#/components/schemas/InfrastructureKind"
          }
        },
        "additionalProperties": true,
        "required": [
          "object_id"
        ],
        "description": "Rejestruje już istniejący punkt; nie tworzy punktu ani kolejnego wpisu dla tej samej pary punkt/organizacja. Domyślny kind pochodzi z typu punktu, jeżeli jest obsługiwany."
      },
      "InfrastructureUpdate": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "published": {
            "type": "boolean"
          },
          "publication_confirmed": {
            "type": "boolean",
            "description": "Wymagane true przy każdym zapisie z published=true, również dla już opublikowanego wpisu."
          },
          "public_title": {
            "type": "string",
            "maxLength": 160
          },
          "public_description": {
            "type": "string",
            "maxLength": 1000
          },
          "public_lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "public_lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "monitor": {
            "$ref": "#/components/schemas/MonitorSettings"
          }
        },
        "additionalProperties": true,
        "required": [
          "version"
        ],
        "description": "Optymistyczna kontrola wersji. Publikacja wymaga osobnego tytułu, lokalizacji i potwierdzenia. Nie zmienia danych źródłowego punktu."
      },
      "InfrastructureReadingInput": {
        "type": "object",
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "value": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -1000000000000.0,
                "maximum": 1000000000000.0
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "$ref": "#/components/schemas/ReadingState",
            "default": "ok"
          },
          "summary": {
            "type": "string",
            "maxLength": 180
          },
          "observed_at": {
            "$ref": "#/components/schemas/UtcSecond"
          }
        },
        "additionalProperties": true,
        "required": [
          "request_id",
          "observed_at"
        ],
        "description": "observed_at: od teraz−7 dni do teraz+30 s. Bez wartości liczbowej można zgłosić sam stan. Powtórzony request_id w tym urządzeniu musi mieć identyczny payload."
      },
      "InfrastructureReading": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "value": {
            "$ref": "#/components/schemas/NumericOrNull"
          },
          "state": {
            "$ref": "#/components/schemas/ReadingState"
          },
          "summary": {
            "type": "string"
          },
          "observed_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "received_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": true
      },
      "InfrastructureReadingResult": {
        "type": "object",
        "properties": {
          "reading_id": {
            "$ref": "#/components/schemas/Id"
          },
          "duplicate": {
            "type": "boolean"
          },
          "asset": {
            "$ref": "#/components/schemas/InfrastructureAsset"
          }
        },
        "additionalProperties": true,
        "required": [
          "reading_id",
          "duplicate",
          "asset"
        ]
      },
      "SensorToken": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "token": {
            "type": "string",
            "pattern": "^tm_sensor_[a-f0-9]{64}$"
          },
          "asset_id": {
            "$ref": "#/components/schemas/Id"
          },
          "scope": {
            "const": "telemetry:write"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": true,
        "required": [
          "id",
          "token",
          "asset_id",
          "scope",
          "expires_at"
        ],
        "description": "Pełny token zwracany wyłącznie przy utworzeniu; przechowuj w agencie urządzenia."
      },
      "GpsCheckin": {
        "type": "object",
        "properties": {
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "accuracy_m": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 200
          },
          "observed_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": true,
        "required": [
          "lat",
          "lng",
          "accuracy_m",
          "observed_at"
        ],
        "description": "Obserwacja nie starsza niż 60 s i nie więcej niż 10 s w przyszłości. Dokładność musi spełniać konfigurację checkpointu; distance+accuracy musi mieścić się w promieniu. GPS może zostać sfałszowany."
      },
      "CheckinInput": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "pattern": "^tmqr1\\.[a-f0-9-]{36}\\.[a-f0-9]{48}$",
            "writeOnly": true
          },
          "checkpoint_id": {
            "$ref": "#/components/schemas/Id"
          },
          "task_id": {
            "$ref": "#/components/schemas/NullableId"
          },
          "gps": {
            "$ref": "#/components/schemas/GpsCheckin"
          }
        },
        "additionalProperties": true,
        "description": "Dynamiczny kod: token obowiązkowy. Kod drukowany: checkpoint_id. Przekazanie checkpoint_id nigdy nie omija wymagania dynamicznego QR. task_id musi należeć do osoby i punktu, a związany kontrakt być gotowy. GPS obowiązkowy, jeżeli wymaga go checkpoint.",
        "anyOf": [
          {
            "required": [
              "token"
            ]
          },
          {
            "required": [
              "checkpoint_id"
            ]
          }
        ]
      },
      "Checkin": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "point_id": {
            "$ref": "#/components/schemas/Id"
          },
          "checked_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "evidence": {
            "type": "string",
            "enum": [
              "static_qr",
              "dynamic_qr"
            ]
          },
          "distance_m": {
            "$ref": "#/components/schemas/NumericOrNull"
          },
          "physical_presence_proven": {
            "const": false
          }
        },
        "additionalProperties": true,
        "required": [
          "id",
          "point_id",
          "checked_at",
          "evidence",
          "distance_m",
          "physical_presence_proven"
        ]
      },
      "CheckpointCreate": {
        "type": "object",
        "properties": {
          "point_id": {
            "$ref": "#/components/schemas/Id"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "default": "Punkt obchodu"
          },
          "mode": {
            "type": "string",
            "enum": [
              "static",
              "dynamic"
            ],
            "default": "dynamic"
          },
          "ttl_seconds": {
            "type": "integer",
            "minimum": 15,
            "default": 30,
            "maximum": 120
          },
          "gps_required": {
            "type": "boolean",
            "default": false
          },
          "radius_m": {
            "type": "integer",
            "minimum": 5,
            "default": 100,
            "maximum": 1000
          },
          "accuracy_m": {
            "type": "integer",
            "minimum": 5,
            "default": 50,
            "maximum": 200
          },
          "cooldown_seconds": {
            "type": "integer",
            "minimum": 15,
            "default": 60,
            "maximum": 86400
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100
          }
        },
        "additionalProperties": true,
        "required": [
          "point_id"
        ]
      },
      "Checkpoint": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "default": "Punkt obchodu"
          },
          "mode": {
            "type": "string",
            "enum": [
              "static",
              "dynamic"
            ],
            "default": "dynamic"
          },
          "ttl_seconds": {
            "type": "integer",
            "minimum": 15,
            "default": 30,
            "maximum": 120
          },
          "gps_required": {
            "type": "boolean",
            "default": false
          },
          "radius_m": {
            "type": "integer",
            "minimum": 5,
            "default": 100,
            "maximum": 1000
          },
          "accuracy_m": {
            "type": "integer",
            "minimum": 5,
            "default": 50,
            "maximum": 200
          },
          "cooldown_seconds": {
            "type": "integer",
            "minimum": 15,
            "default": 60,
            "maximum": 86400
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100
          },
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "object_id": {
            "$ref": "#/components/schemas/Id"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "archived_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "static_url": {
            "type": "string",
            "format": "uri"
          }
        },
        "additionalProperties": true,
        "required": [
          "id",
          "object_id",
          "name",
          "mode",
          "static_url"
        ]
      },
      "QrChallenge": {
        "type": "object",
        "properties": {
          "checkpoint_id": {
            "$ref": "#/components/schemas/Id"
          },
          "challenge_id": {
            "$ref": "#/components/schemas/Id"
          },
          "token": {
            "type": "string"
          },
          "qr_svg": {
            "type": "string",
            "description": "SVG generowany lokalnie przez BaconQrCode; zawiera URL aplikacji z tokenem we fragmencie #scan."
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "server_now": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "ttl_seconds": {
            "type": "integer",
            "minimum": 15,
            "maximum": 120
          }
        },
        "additionalProperties": true,
        "required": [
          "checkpoint_id",
          "challenge_id",
          "token",
          "qr_svg",
          "expires_at",
          "server_now",
          "ttl_seconds"
        ]
      },
      "KioskKey": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "token": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "checkpoint_id": {
            "$ref": "#/components/schemas/Id"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "scope": {
            "const": "checkpoint:challenge"
          }
        },
        "additionalProperties": true,
        "required": [
          "id",
          "token",
          "checkpoint_id",
          "expires_at",
          "scope"
        ]
      },
      "OperationTask": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "object_id": {
            "$ref": "#/components/schemas/Id"
          },
          "assigned_user_id": {
            "$ref": "#/components/schemas/Id"
          },
          "created_by": {
            "$ref": "#/components/schemas/Id"
          },
          "contract_id": {
            "$ref": "#/components/schemas/NullableId"
          },
          "milestone_id": {
            "$ref": "#/components/schemas/NullableId"
          },
          "title": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "due_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "status": {
            "type": "string",
            "enum": [
              "due",
              "submitted",
              "approved"
            ]
          },
          "reading_value": {
            "$ref": "#/components/schemas/NumericOrNull"
          },
          "actual_minutes": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "result_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "submitted_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "approved_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "approved_by": {
            "$ref": "#/components/schemas/NullableId"
          },
          "recurrence_seconds": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "remaining_count": {
            "type": "integer",
            "minimum": 0
          },
          "series_id": {
            "$ref": "#/components/schemas/Id"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "tracked_minutes": {
            "type": "integer",
            "minimum": 0,
            "description": "W dashboardzie/eksporcie: suma odrębnych wpisów czasu. Nie jest dodawana automatycznie do actual_minutes."
          },
          "overdue": {
            "type": "boolean",
            "description": "Tylko dashboard: due_at minęło przy statusie due."
          }
        },
        "additionalProperties": true,
        "required": [
          "id",
          "object_id",
          "assigned_user_id",
          "title",
          "due_at",
          "status"
        ]
      },
      "TaskCreate": {
        "type": "object",
        "properties": {
          "point_id": {
            "$ref": "#/components/schemas/Id"
          },
          "worker_id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "default": "Odczyt"
          },
          "unit": {
            "type": "string",
            "maxLength": 30
          },
          "due_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "count": {
            "type": "integer",
            "minimum": 1,
            "default": 1,
            "maximum": 366
          },
          "interval_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 31622400
          },
          "contract_id": {
            "$ref": "#/components/schemas/NullableId"
          },
          "milestone_id": {
            "$ref": "#/components/schemas/NullableId"
          }
        },
        "additionalProperties": true,
        "required": [
          "point_id",
          "worker_id",
          "due_at"
        ],
        "description": "Tworzy konkretne terminy w UTC. count>1 wymaga interval_seconds, ostatni termin maks. 5×366 dni od teraz. Wykonawca musi mieć ACL punktu; milestone_id wymaga zgodnego contract_id. Brak idempotency key; po niejasnym wyniku sprawdź dashboard/kalendarz."
      },
      "TaskCreated": {
        "type": "object",
        "properties": {
          "series_id": {
            "$ref": "#/components/schemas/Id"
          },
          "tasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationTask"
            },
            "minItems": 1,
            "maxItems": 366
          }
        },
        "additionalProperties": true,
        "required": [
          "series_id",
          "tasks"
        ]
      },
      "TaskSubmit": {
        "type": "object",
        "properties": {
          "reading_value": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -1000000000000000.0,
                "maximum": 1000000000000000.0
              },
              {
                "type": "null"
              }
            ]
          },
          "actual_minutes": {
            "type": "integer",
            "minimum": 0,
            "default": 0,
            "maximum": 1440
          },
          "result": {
            "type": "string",
            "maxLength": 4000
          }
        },
        "additionalProperties": true,
        "description": "Co najmniej wartość pomiaru albo niepusty opis. Tylko przypisana osoba; jednokrotne przejście due→submitted. To nie zatwierdzenie i nie wypłata."
      },
      "TimeEntryInput": {
        "type": "object",
        "properties": {
          "started_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "ended_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          }
        },
        "additionalProperties": true,
        "required": [
          "started_at",
          "ended_at",
          "request_id"
        ],
        "description": "Rzeczywisty dodatni przedział do 24 h, zakończenie najwyżej teraz+60 s. Bez nakładania na istniejący czas tego użytkownika. Idempotentny request_id na użytkownika; ten sam task i zakres czasu."
      },
      "TimeEntry": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "task_id": {
            "$ref": "#/components/schemas/Id"
          },
          "user_id": {
            "$ref": "#/components/schemas/Id"
          },
          "started_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "ended_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "minutes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1440
          },
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "status": {
            "type": "string",
            "enum": [
              "submitted",
              "approved"
            ]
          },
          "approved_by": {
            "$ref": "#/components/schemas/NullableId"
          },
          "approved_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          }
        },
        "additionalProperties": true,
        "required": [
          "id",
          "task_id",
          "started_at",
          "ended_at",
          "minutes",
          "status"
        ]
      },
      "ContractMilestone": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "contract_id": {
            "$ref": "#/components/schemas/Id"
          },
          "sequence": {
            "type": "integer",
            "minimum": 1
          },
          "title": {
            "type": "string"
          },
          "amount_minor": {
            "type": "integer",
            "minimum": 0
          },
          "fee_minor": {
            "type": "integer",
            "minimum": 0
          },
          "provider_minor": {
            "type": "integer",
            "minimum": 0
          },
          "status": {
            "type": "string",
            "enum": [
              "planned",
              "submitted",
              "approved"
            ]
          },
          "due_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "submission_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "submitted_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "approved_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "approved_by": {
            "$ref": "#/components/schemas/NullableId"
          },
          "release_status": {
            "type": [
              "string",
              "null"
            ]
          },
          "transfer_id": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": true
      },
      "OperationsContract": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "owner_id": {
            "$ref": "#/components/schemas/Id"
          },
          "worker_id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "internal",
              "external"
            ]
          },
          "terms_text": {
            "type": "string"
          },
          "terms_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "accepted_hash": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "total_minor": {
            "type": "integer",
            "minimum": 0
          },
          "fee_bps": {
            "type": "integer",
            "minimum": 0
          },
          "fee_minor": {
            "type": "integer",
            "minimum": 0
          },
          "provider_minor": {
            "type": "integer",
            "minimum": 0
          },
          "currency": {
            "const": "PLN"
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "accepted_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "milestones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContractMilestone"
            },
            "minItems": 1,
            "maxItems": 100
          }
        },
        "additionalProperties": true,
        "required": [
          "id",
          "owner_id",
          "worker_id",
          "title",
          "mode",
          "terms_hash",
          "status",
          "total_minor",
          "fee_bps",
          "currency",
          "milestones"
        ],
        "description": "Kwoty są całkowitymi groszami; fee_bps jest snapshotem ustawienia (domyślnie 1000=10%). Internal nie ma przepływu pieniędzy. Status przelewu Connect nie oznacza wypłaty bankowej."
      },
      "OpsTeam": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "name": {
            "type": "string"
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            }
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "revoked_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          }
        },
        "additionalProperties": true
      },
      "ShareSummary": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string"
          },
          "audience": {
            "$ref": "#/components/schemas/Audience"
          },
          "starts_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "max_views": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "view_count": {
            "type": "integer",
            "minimum": 0
          },
          "revoked_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "version": {
            "type": "integer",
            "minimum": 1
          }
        },
        "additionalProperties": true
      },
      "OperationsDashboard": {
        "type": "object",
        "properties": {
          "checkpoints": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Checkpoint"
            }
          },
          "tasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationTask"
            },
            "maxItems": 1000
          },
          "contracts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationsContract"
            },
            "maxItems": 100
          },
          "members": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "name": {
                  "type": "string"
                }
              },
              "additionalProperties": true
            }
          },
          "teams": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpsTeam"
            }
          },
          "shares": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShareSummary"
            },
            "maxItems": 200
          },
          "is_owner": {
            "type": "boolean"
          },
          "server_now": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "limits": {
            "type": "object",
            "properties": {
              "tasks": {
                "const": 1000
              },
              "contracts": {
                "const": 100
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true,
        "required": [
          "checkpoints",
          "tasks",
          "contracts",
          "members",
          "teams",
          "shares",
          "is_owner",
          "server_now",
          "limits"
        ]
      },
      "PointSelection": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "ids"
              },
              "point_ids": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Id"
                },
                "maxItems": 500
              }
            },
            "additionalProperties": true,
            "required": [
              "kind",
              "point_ids"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "radius"
              },
              "lat": {
                "$ref": "#/components/schemas/Latitude"
              },
              "lng": {
                "$ref": "#/components/schemas/Longitude"
              },
              "radius_m": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100000
              }
            },
            "additionalProperties": true,
            "required": [
              "kind",
              "lat",
              "lng",
              "radius_m"
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "polygon"
              },
              "vertices": {
                "type": "array",
                "items": {
                  "type": "array",
                  "prefixItems": [
                    {
                      "$ref": "#/components/schemas/Longitude"
                    },
                    {
                      "$ref": "#/components/schemas/Latitude"
                    }
                  ],
                  "minItems": 2,
                  "maxItems": 2
                },
                "minItems": 3,
                "maxItems": 500
              }
            },
            "additionalProperties": true,
            "required": [
              "kind",
              "vertices"
            ]
          }
        ],
        "description": "Lista, promień po prostej albo obrys [lng,lat]. Wynik najwyżej 500 z maks. 5000 punktów dostępnej mapy. Brak selekcji izochroną/dojazdem."
      },
      "SelectionResult": {
        "type": "object",
        "properties": {
          "selection": {
            "$ref": "#/components/schemas/PointSelection"
          },
          "points": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "name": {
                  "type": "string"
                },
                "number": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "lat": {
                  "$ref": "#/components/schemas/Latitude"
                },
                "lng": {
                  "$ref": "#/components/schemas/Longitude"
                }
              },
              "additionalProperties": true
            },
            "maxItems": 500
          },
          "source_limit": {
            "const": 5000
          }
        },
        "additionalProperties": true,
        "required": [
          "selection",
          "points",
          "source_limit"
        ]
      },
      "ShareCreate": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "default": "Wybrane punkty"
          },
          "selection": {
            "$ref": "#/components/schemas/PointSelection"
          },
          "audience": {
            "$ref": "#/components/schemas/Audience"
          },
          "team_id": {
            "$ref": "#/components/schemas/Id"
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "name",
                "number",
                "type",
                "description",
                "lat",
                "lng"
              ]
            },
            "minItems": 1,
            "uniqueItems": true
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "read",
                "update",
                "delete"
              ]
            },
            "minItems": 1,
            "uniqueItems": true
          },
          "confirm_public": {
            "type": "boolean"
          },
          "starts_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "max_views": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 100000
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": true,
        "required": [
          "selection",
          "expires_at"
        ],
        "description": "Owner; początek domyślnie teraz. expires>starts i expires>teraz, okres ≤366 dni. Domyślna audience=user wymaga user_ids. Public wymaga confirm_public=true i actions=[read]. Domyślne fields: name,type,lat,lng; domyślne actions: read. Selekcja zostaje zamrożona jako lista istniejących punktów."
      },
      "ShareCreated": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "token": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "max_views": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "point_count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "additionalProperties": true,
        "required": [
          "id",
          "token",
          "url",
          "expires_at",
          "max_views",
          "point_count"
        ],
        "description": "Token i link zwracane raz. Fragment #t= nie powinien trafiać do logów HTTP. Nie zapisuj tokenu w publicznych stronach lub analityce."
      },
      "ShareProjection": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "audience": {
            "$ref": "#/components/schemas/Audience"
          },
          "points": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "ref": {
                  "$ref": "#/components/schemas/Id"
                },
                "name": {
                  "type": "string"
                },
                "number": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "lat": {
                  "$ref": "#/components/schemas/Latitude"
                },
                "lng": {
                  "$ref": "#/components/schemas/Longitude"
                }
              },
              "additionalProperties": true,
              "required": [
                "ref"
              ]
            },
            "maxItems": 500
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "remaining_views": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_hint": {
            "type": "string"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "read",
                "update",
                "delete"
              ]
            }
          }
        },
        "additionalProperties": true,
        "required": [
          "title",
          "audience",
          "points",
          "expires_at",
          "remaining_views",
          "retention_hint",
          "actions"
        ],
        "description": "Tylko wskazane jawne pola oraz ref; brak parametrów, fotografii i sekretów. Pusta projekcja również jest udanym odczytem zużywającym limit."
      },
      "CameraEventKind": {
        "type": "string",
        "enum": [
          "motion",
          "object_observed",
          "status_snapshot",
          "arrival",
          "departure"
        ]
      },
      "CameraEventInput": {
        "type": "object",
        "properties": {
          "rule_id": {
            "$ref": "#/components/schemas/Id"
          },
          "event_key": {
            "$ref": "#/components/schemas/RequestId"
          },
          "kind": {
            "$ref": "#/components/schemas/CameraEventKind",
            "default": "motion"
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "default": "Obserwacja"
          },
          "track_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "captured_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "image_base64": {
            "type": "string",
            "contentEncoding": "base64",
            "maxLength": 4194304,
            "description": "JPEG do 3 MiB po dekodowaniu, bez prefiksu data:. Wyklucza media_id."
          },
          "media_id": {
            "$ref": "#/components/schemas/Id"
          }
        },
        "additionalProperties": true,
        "required": [
          "event_key",
          "captured_at"
        ],
        "description": "captured_at w zakresie teraz−300 s…teraz+10 s. image_base64 lub media_id, albo sam opis zdarzenia. Brak twierdzenia o ustalonej tożsamości osoby/pojazdu. Przy /edge body musi zawierać także rule_id tego connectora.",
        "not": {
          "required": [
            "image_base64",
            "media_id"
          ]
        }
      },
      "CameraEvent": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "point_id": {
            "$ref": "#/components/schemas/Id"
          },
          "rule_id": {
            "$ref": "#/components/schemas/Id"
          },
          "kind": {
            "$ref": "#/components/schemas/CameraEventKind"
          },
          "label": {
            "type": "string"
          },
          "track_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "captured_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "media_id": {
            "$ref": "#/components/schemas/NullableId"
          },
          "review_status": {
            "type": "string",
            "enum": [
              "unreviewed",
              "accepted",
              "rejected"
            ]
          },
          "analysis": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "status": {
                    "type": "string"
                  },
                  "result": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FreeObject"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "error_code": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "additionalProperties": true
              },
              {
                "type": "null"
              }
            ]
          },
          "identity_verified": {
            "const": false
          },
          "analysis_requested": {
            "type": "boolean"
          },
          "analysis_state": {
            "type": "string"
          },
          "edge_file_owned": {
            "type": "boolean"
          }
        },
        "additionalProperties": true,
        "required": [
          "id",
          "point_id",
          "rule_id",
          "kind",
          "label",
          "captured_at",
          "expires_at",
          "review_status",
          "identity_verified"
        ]
      },
      "CameraEventList": {
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CameraEvent"
            },
            "maxItems": 500
          },
          "limit": {
            "const": 500
          },
          "private": {
            "const": true
          }
        },
        "additionalProperties": true,
        "required": [
          "events",
          "limit",
          "private"
        ]
      },
      "ModelVariant": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "name": {
            "type": "string"
          },
          "state_label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "audience": {
            "$ref": "#/components/schemas/Audience"
          },
          "starts_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "max_views": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "remaining_views": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "awaiting_adapter",
              "pending_review",
              "approved",
              "revoked"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "approved_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "reconstruction_available": {
            "const": false
          },
          "point_id": {
            "$ref": "#/components/schemas/Id"
          },
          "photo_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            }
          },
          "team_id": {
            "$ref": "#/components/schemas/NullableId"
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            }
          },
          "download_path": {
            "type": "string"
          }
        },
        "additionalProperties": true,
        "required": [
          "id",
          "name",
          "state_label",
          "description",
          "audience",
          "starts_at",
          "expires_at",
          "max_views",
          "remaining_views",
          "status",
          "version",
          "reconstruction_available"
        ],
        "description": "point_id/photo_ids/team_id/user_ids tylko w projekcji właściciela w list/create/approve. info i publiczna projekcja nie ujawniają fotografii źródłowych. download_path z info jest ścieżką przeglądarkową; klient Bearer używa /api/v1/models/{id}/file."
      },
      "ModelList": {
        "type": "object",
        "properties": {
          "models": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelVariant"
            },
            "maxItems": 500
          },
          "reconstruction": {
            "const": "external_worker_required"
          },
          "viewer": {
            "const": "self_contained_glb"
          }
        },
        "additionalProperties": true,
        "required": [
          "models",
          "reconstruction",
          "viewer"
        ]
      },
      "ModelCreate": {
        "type": "object",
        "properties": {
          "point_id": {
            "$ref": "#/components/schemas/Id"
          },
          "photo_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "minItems": 1,
            "maxItems": 100
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "state_label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "default": "aktualny"
          },
          "description": {
            "type": "string",
            "maxLength": 2000
          },
          "audience": {
            "$ref": "#/components/schemas/Audience"
          },
          "team_id": {
            "$ref": "#/components/schemas/Id"
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "minItems": 1,
            "maxItems": 50
          },
          "starts_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "max_views": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 100000
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": true,
        "required": [
          "point_id",
          "photo_ids",
          "name"
        ],
        "description": "Zapisuje zestaw zdjęć w stanie awaiting_adapter; NIE uruchamia rekonstrukcji. Zdjęcia muszą być trwałe i autoryzowane przy tym samym punkcie (bez wygasających klatek camera_event). Domyślnie User=autor, starts=teraz, expires=teraz+24h; koniec maks. teraz+366dni."
      },
      "ContractCreate": {
        "type": "object",
        "properties": {
          "worker_id": {
            "$ref": "#/components/schemas/Id"
          },
          "mode": {
            "type": "string",
            "enum": [
              "internal",
              "external"
            ],
            "default": "internal"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "terms": {
            "type": "string",
            "minLength": 10,
            "maxLength": 20000
          },
          "total_minor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 99999999
          },
          "milestones": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                },
                "amount_minor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 99999999
                },
                "due_at": {
                  "$ref": "#/components/schemas/NullableTimestamp"
                }
              },
              "additionalProperties": true,
              "required": [
                "title"
              ]
            },
            "minItems": 1,
            "maxItems": 100
          }
        },
        "additionalProperties": true,
        "required": [
          "worker_id",
          "title",
          "terms",
          "milestones"
        ],
        "description": "Owner oferuje innemu członkowi organizacji. Internal: wszystkie kwoty0, rozliczanie czasu. External: PLN total_minor200–99999999 groszy, każda część≥1, suma dokładnie total; po prowizji każda część musi pozostawić≥1 grosz. Snapshot fee_bps domyślnie1000=10%; zaokrąglenia zachowują sumę prowizji. Treść i alokacje są zamrożone z terms_hash."
      },
      "CivicCategory": {
        "type": "string",
        "enum": [
          "damage",
          "vandalism",
          "lighting",
          "playground",
          "water_leak",
          "parking",
          "road",
          "waste",
          "other"
        ]
      },
      "CivicReportCreate": {
        "type": "object",
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "category": {
            "$ref": "#/components/schemas/CivicCategory"
          },
          "description": {
            "type": "string",
            "minLength": 3,
            "maxLength": 4000
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "asset_id": {
            "$ref": "#/components/schemas/Id"
          },
          "observed_at": {
            "$ref": "#/components/schemas/UtcSecond"
          }
        },
        "additionalProperties": true,
        "required": [
          "request_id",
          "category",
          "description",
          "lat",
          "lng"
        ],
        "description": "Własny szkic. observed_at domyślnie teraz, maks.30 dni wstecz i30s w przyszłość. Powiązane urządzenie musi być dostępne. Nie wysyła wiadomości do jednostki."
      },
      "CivicReport": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "asset_id": {
            "$ref": "#/components/schemas/NullableId"
          },
          "category": {
            "$ref": "#/components/schemas/CivicCategory"
          },
          "description": {
            "type": "string"
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "observed_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "state": {
            "type": "string"
          },
          "recipient": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "name": {
                    "type": "string"
                  },
                  "agency_kind": {
                    "type": "string"
                  }
                },
                "additionalProperties": true
              },
              {
                "type": "null"
              }
            ]
          },
          "receipt_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "photos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FreeObject"
            },
            "maxItems": 5
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": true
      },
      "CameraRuleInput": {
        "type": "object",
        "properties": {
          "device_id": {
            "$ref": "#/components/schemas/Id"
          },
          "connector_id": {
            "$ref": "#/components/schemas/Id"
          },
          "ai_connector_id": {
            "$ref": "#/components/schemas/NullableId"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "scenario": {
            "type": "string",
            "minLength": 5,
            "maxLength": 2000
          },
          "interval_seconds": {
            "type": "integer",
            "minimum": 60,
            "default": 300,
            "maximum": 86400
          },
          "retention_seconds": {
            "type": "integer",
            "minimum": 60,
            "default": 86400,
            "maximum": 604800
          },
          "enabled": {
            "type": "boolean",
            "default": false
          },
          "consent": {
            "type": "boolean"
          }
        },
        "additionalProperties": true,
        "required": [
          "device_id",
          "connector_id",
          "name",
          "scenario"
        ],
        "description": "Owner i can_observe aktywnego punktu kamery. Edge connector musi być własny, opcjonalny AI connector typu oqllm. Pierwsze włączenie wymaga consent=true. Minimalny odstęp analizy60s, jedna równoległa analiza organizacji; to klatki, nie ciągły stream."
      },
      "ConnectorInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "provider": {
            "type": "string",
            "enum": [
              "oqllm",
              "edge",
              "nextcloud",
              "google_drive",
              "onedrive",
              "smsapi",
              "twilio"
            ]
          },
          "enabled": {
            "type": "boolean",
            "default": false
          },
          "secret_env": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^TM_INTEGRATION_[A-Z0-9_]{3,90}$",
                "writeOnly": true
              },
              {
                "type": "null"
              }
            ]
          },
          "config": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Dozwolone pola zależą od providera: oqllm model/profile/dedicated_account; edge description; nextcloud base_url/username; google_drive folder_id; onedrive drive_id/folder_id; smsapi sender; twilio account_sid/from_phone/relay_url. Serwer waliduje hosty i typy; dowolne sekrety/URL są odrzucane."
          },
          "version": {
            "type": "integer",
            "minimum": 1
          }
        },
        "additionalProperties": true,
        "required": [
          "name",
          "provider"
        ],
        "description": "Owner może zapisać wyłączony connector. Włączenie, przypisanie/zmiana secret_env oraz wrażliwa zmiana aktywnej konfiguracji wymagają także administratora platformy. secret_env jest nazwą zmiennej, nie hasłem."
      },
      "IncidentInputV5": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "request_id",
          "title"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "description": {
            "type": "string",
            "maxLength": 20000
          },
          "type": {
            "type": "string",
            "enum": [
              "equipment_failure",
              "wifi_outage",
              "it_outage",
              "ransomware",
              "cyber_incident",
              "break_in",
              "vandalism",
              "fire",
              "accident",
              "road_closure",
              "detour",
              "flood",
              "power_outage",
              "water_leak",
              "observation",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "new",
              "triaged",
              "in_progress",
              "resolved",
              "closed",
              "false_alarm"
            ]
          },
          "severity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5
          },
          "point_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "lat": {
            "type": [
              "number",
              "null"
            ],
            "minimum": -90,
            "maximum": 90
          },
          "lng": {
            "type": [
              "number",
              "null"
            ],
            "minimum": -180,
            "maximum": 180
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time"
          },
          "ended_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "valid_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "audience": {
            "type": "string",
            "enum": [
              "user",
              "team",
              "org"
            ]
          },
          "team_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "user_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "media_ids": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "resource_ref": {
            "type": "string",
            "maxLength": 180
          },
          "private_address": {
            "type": "string",
            "maxLength": 180
          },
          "vehicle_plate": {
            "type": "string",
            "maxLength": 40
          }
        }
      },
      "ParkingObservationV5": {
        "type": "object",
        "required": [
          "request_id",
          "kind",
          "plate",
          "observed_at",
          "confidence"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80
          },
          "kind": {
            "type": "string",
            "enum": [
              "entry",
              "exit"
            ]
          },
          "plate": {
            "type": "string",
            "minLength": 3,
            "maxLength": 16
          },
          "observed_at": {
            "type": "string",
            "format": "date-time",
            "description": "Jawna strefa, bez ułamka sekund, od now-300s do now+60s."
          },
          "confidence": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          }
        },
        "description": "Niepewny odczyt albo brak wcześniejszej zweryfikowanej zgody → review. Kwota nie jest pobierana."
      },
      "ParkingPermitV5": {
        "type": "object",
        "required": [
          "plate",
          "valid_from",
          "valid_until",
          "max_amount_minor",
          "tariff_hash",
          "confirm"
        ],
        "properties": {
          "plate": {
            "type": "string",
            "minLength": 3,
            "maxLength": 16
          },
          "valid_from": {
            "type": "string",
            "format": "date-time"
          },
          "valid_until": {
            "type": "string",
            "format": "date-time"
          },
          "max_amount_minor": {
            "type": "integer",
            "minimum": 1,
            "maximum": 99999999
          },
          "tariff_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "confirm": {
            "const": true
          }
        },
        "description": "Zgoda obecnego użytkownika; okres do31dni. Wymaga osobnej weryfikacji operatora. Nie jest recurring BLIK."
      },
      "ParkingBillConfirmationV5": {
        "type": "object",
        "required": [
          "quote_hash",
          "confirm"
        ],
        "properties": {
          "quote_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "confirm": {
            "const": true
          }
        }
      },
      "ProtectedPhotoOpenV5": {
        "type": "object",
        "required": [
          "token",
          "password"
        ],
        "properties": {
          "token": {
            "type": "string",
            "maxLength": 80
          },
          "password": {
            "type": "string",
            "minLength": 1,
            "maxLength": 72
          }
        },
        "description": "Sesja, aktualny ACL źródła, odbiorca, hasło, TTL i ewentualny niedawny meldunek; atomowo zużywa jedno wydanie dopiero po sukcesie."
      },
      "ParkingP24NotificationV5": {
        "type": "object",
        "required": [
          "merchantId",
          "posId",
          "sessionId",
          "amount",
          "originAmount",
          "currency",
          "orderId",
          "methodId",
          "statement",
          "sign"
        ],
        "properties": {
          "merchantId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "posId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "amount": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "originAmount": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "orderId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "methodId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "sessionId": {
            "type": "string",
            "maxLength": 100
          },
          "currency": {
            "const": "PLN"
          },
          "statement": {
            "type": "string",
            "maxLength": 2048
          },
          "sign": {
            "type": "string",
            "pattern": "^[a-fA-F0-9]{96}$"
          }
        },
        "description": "Oryginalne podpisane powiadomienie PSP. Podpis z CRC i niezależny odczyt/verify u P24 są obowiązkowe; body nigdy nie autoryzuje się samym ID."
      },
      "EventInputV6": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "request_id",
          "title"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "description": {
            "type": "string",
            "maxLength": 20000
          },
          "type": {
            "type": "string",
            "enum": [
              "culture",
              "concert",
              "sport",
              "community",
              "training",
              "meeting",
              "market",
              "maintenance",
              "transport",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "proposed",
              "confirmed",
              "postponed",
              "cancelled",
              "completed"
            ]
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "starts_local": {
            "type": [
              "string",
              "null"
            ],
            "description": "Local date and time YYYY-MM-DDTHH:mm[:ss] in timezone. Ambiguous or nonexistent DST time is rejected; use ISO offset instead."
          },
          "ends_local": {
            "type": [
              "string",
              "null"
            ]
          },
          "timezone": {
            "type": "string",
            "default": "Europe/Warsaw",
            "description": "IANA timezone."
          },
          "all_day": {
            "type": "boolean"
          },
          "venue": {
            "type": "string",
            "maxLength": 180
          },
          "lat": {
            "type": [
              "number",
              "null"
            ],
            "minimum": -90,
            "maximum": 90
          },
          "lng": {
            "type": [
              "number",
              "null"
            ],
            "minimum": -180,
            "maximum": 180
          },
          "point_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "topics": {
            "type": "array",
            "maxItems": 12,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          "audience": {
            "type": "string",
            "enum": [
              "org",
              "team",
              "user"
            ]
          },
          "team_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "user_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "media_ids": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "source_url": {
            "type": "string"
          },
          "source_id": {
            "type": "string",
            "maxLength": 180
          },
          "source_label": {
            "type": "string",
            "maxLength": 160
          },
          "source_published_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "review_confirmed": {
            "type": "boolean"
          }
        },
        "description": "Private proposal by default. Non-proposed status requires a known start and review_confirmed=true. No publication fields. Date interval end is exclusive; source publication date is separate."
      },
      "EventUpdateV6": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "request_id",
          "version"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "description": {
            "type": "string",
            "maxLength": 20000
          },
          "type": {
            "type": "string",
            "enum": [
              "culture",
              "concert",
              "sport",
              "community",
              "training",
              "meeting",
              "market",
              "maintenance",
              "transport",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "proposed",
              "confirmed",
              "postponed",
              "cancelled",
              "completed"
            ]
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "starts_local": {
            "type": [
              "string",
              "null"
            ],
            "description": "Local date and time YYYY-MM-DDTHH:mm[:ss] in timezone. Ambiguous or nonexistent DST time is rejected; use ISO offset instead."
          },
          "ends_local": {
            "type": [
              "string",
              "null"
            ]
          },
          "timezone": {
            "type": "string",
            "default": "Europe/Warsaw",
            "description": "IANA timezone."
          },
          "all_day": {
            "type": "boolean"
          },
          "venue": {
            "type": "string",
            "maxLength": 180
          },
          "lat": {
            "type": [
              "number",
              "null"
            ],
            "minimum": -90,
            "maximum": 90
          },
          "lng": {
            "type": [
              "number",
              "null"
            ],
            "minimum": -180,
            "maximum": 180
          },
          "point_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "topics": {
            "type": "array",
            "maxItems": 12,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          "audience": {
            "type": "string",
            "enum": [
              "org",
              "team",
              "user"
            ]
          },
          "team_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "user_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "media_ids": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "source_url": {
            "type": "string"
          },
          "source_id": {
            "type": "string",
            "maxLength": 180
          },
          "source_label": {
            "type": "string",
            "maxLength": 160
          },
          "source_published_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "review_confirmed": {
            "type": "boolean"
          }
        },
        "description": "Private proposal by default. Non-proposed status requires a known start and review_confirmed=true. No publication fields. Date interval end is exclusive; source publication date is separate."
      },
      "VersionedRequestV6": {
        "type": "object",
        "required": [
          "request_id",
          "version"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        }
      },
      "EventPublicationV6": {
        "type": "object",
        "required": [
          "request_id",
          "version",
          "published"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "published": {
            "type": "boolean"
          },
          "publication_confirmed": {
            "type": "boolean"
          },
          "review_confirmed": {
            "type": "boolean"
          },
          "location_confirmed": {
            "type": "boolean"
          },
          "source_confirmed": {
            "type": "boolean"
          },
          "photos_confirmed": {
            "type": "boolean"
          },
          "visible_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "visible_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "public_media_ids": {
            "type": "array",
            "maxItems": 5,
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "public_title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "public_description": {
            "type": "string",
            "maxLength": 4000
          },
          "public_type": {
            "type": "string",
            "enum": [
              "culture",
              "concert",
              "sport",
              "community",
              "training",
              "meeting",
              "market",
              "maintenance",
              "transport",
              "other"
            ]
          },
          "public_status": {
            "type": "string",
            "enum": [
              "proposed",
              "confirmed",
              "postponed",
              "cancelled",
              "completed"
            ]
          },
          "public_starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "public_ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "public_starts_local": {
            "type": [
              "string",
              "null"
            ],
            "description": "Local date and time YYYY-MM-DDTHH:mm[:ss] in timezone. Ambiguous or nonexistent DST time is rejected; use ISO offset instead."
          },
          "public_ends_local": {
            "type": [
              "string",
              "null"
            ]
          },
          "public_timezone": {
            "type": "string",
            "default": "Europe/Warsaw",
            "description": "IANA timezone."
          },
          "public_venue": {
            "type": "string",
            "maxLength": 180
          },
          "public_lat": {
            "type": [
              "number",
              "null"
            ],
            "minimum": -90,
            "maximum": 90
          },
          "public_lng": {
            "type": [
              "number",
              "null"
            ],
            "minimum": -180,
            "maximum": 180
          },
          "public_topics": {
            "type": "array",
            "maxItems": 12,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          "public_source_url": {
            "type": "string"
          },
          "public_source_id": {
            "type": "string",
            "maxLength": 180
          },
          "public_source_label": {
            "type": "string",
            "maxLength": 160
          },
          "public_source_published_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "description": "Owner only; separate public fields. Enabling publication requires publication_confirmed and public_title; location/source/photos require their respective confirmations. Visible_until is a future instant at most 3 years away. Confirmed public status requires reviewed date/time. Withdrawing does not publish private changes."
      },
      "EventImportPreviewV6": {
        "type": "object",
        "required": [
          "format",
          "content"
        ],
        "properties": {
          "format": {
            "type": "string",
            "enum": [
              "json",
              "rss",
              "atom",
              "ics"
            ]
          },
          "content": {
            "type": "string",
            "description": "UTF-8 content, at most 256 KiB and 1–100 items. XML DTD/entities rejected. No HTTP fetch."
          },
          "timezone": {
            "type": "string",
            "default": "Europe/Warsaw",
            "description": "IANA timezone."
          },
          "source_url": {
            "type": "string"
          },
          "source_label": {
            "type": "string",
            "maxLength": 160
          },
          "point_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "audience": {
            "type": "string",
            "enum": [
              "org",
              "team",
              "user"
            ]
          },
          "team_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "user_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      },
      "EventImportCommitV6": {
        "type": "object",
        "required": [
          "request_id",
          "preview_id",
          "selected_ids",
          "review_confirmed"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "preview_id": {
            "type": "string",
            "format": "uuid"
          },
          "selected_ids": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "items": {
              "type": "string"
            }
          },
          "review_confirmed": {
            "const": true
          }
        },
        "description": "Creator and current ACL; 30-minute preview. Repeated source ID is not silently overwritten. Imported events remain proposals and are not published."
      },
      "EventInterestsV6": {
        "type": "object",
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "topics": {
            "type": "array",
            "maxItems": 12,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          "filters": {
            "type": "object",
            "description": "Same normalized private search filters; version conflict returns409."
          }
        }
      },
      "ShareRotateLinkV6": {
        "type": "object",
        "required": [
          "version",
          "confirm"
        ],
        "additionalProperties": false,
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "confirm": {
            "const": true
          }
        },
        "description": "Explicitly invalidates old bearer URL. Does not alter view_count, expiry, recipients or ACL. New raw token appears only in this response."
      },
      "PointImportPreviewInputV7": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "file",
          "target_workspace_id"
        ],
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "One UTF-8 CSV/GeoJSON/GPX document or one gzip stream. The observed binary GPS backup variant has root field 1 equal to 3. Limit 5 MiB before and after expansion, 1000 points."
          },
          "target_workspace_id": {
            "type": "string",
            "format": "uuid"
          },
          "scope": {
            "type": "string",
            "enum": [
              "org"
            ],
            "default": "org"
          }
        }
      },
      "PointImportRowV7": {
        "type": "object",
        "required": [
          "row_id",
          "source_row",
          "data",
          "existing"
        ],
        "properties": {
          "row_id": {
            "type": "string",
            "pattern": "^r-[1-9][0-9]{0,3}$"
          },
          "source_row": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000
          },
          "data": {
            "type": "object",
            "description": "Validated private point data; exact source timestamps remain strings in parameters.",
            "properties": {
              "number": {
                "type": "string",
                "maxLength": 80
              },
              "name": {
                "type": "string",
                "maxLength": 160
              },
              "type": {
                "type": "string",
                "maxLength": 60
              },
              "icon": {
                "type": "string",
                "enum": [
                  "pin",
                  "camera",
                  "gate",
                  "light",
                  "pump",
                  "cabinet",
                  "sensor",
                  "other"
                ]
              },
              "lat": {
                "type": "number",
                "minimum": -90,
                "maximum": 90
              },
              "lng": {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              "description": {
                "type": "string",
                "maxLength": 4000
              },
              "parameters": {
                "type": "object",
                "maxProperties": 25,
                "additionalProperties": {
                  "type": "string",
                  "maxLength": 500
                }
              }
            }
          },
          "existing": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "archived": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "PointImportCommitInputV7": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "token",
          "target_workspace_id",
          "selected_rows",
          "request_id",
          "confirm_import"
        ],
        "properties": {
          "token": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Preview secret bound to its creator and the target organization."
          },
          "target_workspace_id": {
            "type": "string",
            "format": "uuid"
          },
          "selected_rows": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1000,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "pattern": "^r-[1-9][0-9]{0,3}$"
            }
          },
          "overrides": {
            "type": "object",
            "maxProperties": 1000,
            "propertyNames": {
              "type": "string",
              "pattern": "^r-[1-9][0-9]{0,3}$"
            },
            "additionalProperties": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "name": {
                  "type": "string",
                  "maxLength": 160
                },
                "number": {
                  "type": "string",
                  "maxLength": 80
                },
                "type": {
                  "type": "string",
                  "maxLength": 60
                },
                "icon": {
                  "type": "string",
                  "enum": [
                    "pin",
                    "camera",
                    "gate",
                    "light",
                    "pump",
                    "cabinet",
                    "sensor",
                    "other"
                  ]
                }
              }
            }
          },
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "confirm_import": {
            "const": true
          },
          "scope": {
            "type": "string",
            "enum": [
              "org"
            ],
            "default": "org"
          },
          "duplicate_policy": {
            "type": "string",
            "enum": [
              "skip",
              "reject"
            ],
            "default": "skip"
          }
        },
        "description": "Only selected valid rows are saved. Current target permissions and plan are rechecked atomically. No coordinate, source metadata or public-visibility overrides. The same token and request_id with unchanged selection can be retried; changed replay returns409."
      },
      "PointImportPreviewV7": {
        "type": "object",
        "required": [
          "token",
          "rows",
          "summary",
          "target_workspace",
          "scope",
          "published",
          "remaining",
          "expires_at"
        ],
        "properties": {
          "token": {
            "type": [
              "string",
              "null"
            ]
          },
          "rows": {
            "type": "array",
            "maxItems": 1000,
            "items": {
              "$ref": "#/components/schemas/PointImportRowV7"
            }
          },
          "summary": {
            "type": "object",
            "properties": {
              "format": {
                "type": "string",
                "enum": [
                  "gps_backup_v3",
                  "csv",
                  "geojson",
                  "gpx"
                ]
              },
              "source_count": {
                "type": "integer"
              },
              "valid_count": {
                "type": "integer"
              },
              "existing_count": {
                "type": "integer"
              },
              "errors": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              },
              "compression": {
                "type": "object"
              },
              "metadata": {
                "type": "object"
              },
              "file_sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              }
            }
          },
          "target_workspace": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              }
            }
          },
          "scope": {
            "const": "org"
          },
          "published": {
            "const": false
          },
          "remaining": {
            "type": "integer",
            "minimum": 0
          },
          "plan": {
            "type": "object"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "confirmation": {
            "type": "string"
          }
        }
      },
      "PointImportResultV7": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "mapping": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "row_id": {
                  "type": "string",
                  "pattern": "^r-[1-9][0-9]{0,3}$"
                },
                "object_id": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "skipped": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "row_id": {
                  "type": "string",
                  "pattern": "^r-[1-9][0-9]{0,3}$"
                },
                "reason": {
                  "const": "number_exists"
                },
                "existing_id": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          },
          "target_workspace": {
            "type": "object"
          },
          "scope": {
            "const": "org"
          },
          "published": {
            "const": false
          },
          "plan": {
            "type": "object"
          },
          "duplicate": {
            "type": "boolean"
          }
        }
      },
      "ObjectExportFiltersV8": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "q": {
            "type": "string",
            "maxLength": 100,
            "default": ""
          },
          "type": {
            "type": "string",
            "maxLength": 60,
            "default": ""
          },
          "issue_status": {
            "type": "string",
            "enum": [
              "",
              "new",
              "in_progress",
              "resolved",
              "none"
            ],
            "default": ""
          },
          "archived": {
            "type": "string",
            "enum": [
              "",
              "0",
              "1",
              "all"
            ],
            "default": "0"
          },
          "lat": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "lng": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "radius_km": {
            "type": "number",
            "minimum": 0.1,
            "maximum": 100
          }
        },
        "description": "Same MapService list filters. If any geographic value is supplied all lat/lng/radius_km fields are required. archived=1 selects only archived, all selects both, 0 selects active."
      },
      "ObjectExportInputV8": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "format": {
            "type": "string",
            "enum": [
              "geojson",
              "json",
              "csv",
              "gpx"
            ],
            "default": "geojson"
          },
          "filters": {
            "$ref": "#/components/schemas/ObjectExportFiltersV8"
          },
          "ids": {
            "type": "array",
            "maxItems": 1000,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Omitted means the current filtered map set; explicit empty array means an empty export. Every selected ID must still be readable and present in that set. The list order is preserved, not request order."
          }
        },
        "description": "Private read operation through POST. No arbitrary table names, projection options, workspace targets, filenames or export SQL."
      },
      "ObjectExportResultV8": {
        "type": "object",
        "required": [
          "format",
          "filename",
          "mime",
          "text",
          "count",
          "filtered_count",
          "selection_applied",
          "object_ids",
          "filters",
          "generated_at",
          "list_limit",
          "list_limit_reached",
          "warnings"
        ],
        "properties": {
          "format": {
            "type": "string",
            "enum": [
              "geojson",
              "json",
              "csv",
              "gpx"
            ]
          },
          "filename": {
            "type": "string",
            "pattern": "^telemonit-points-[0-9]{8}-[0-9]{6}\\.(geojson|json|csv|gpx)$"
          },
          "mime": {
            "type": "string",
            "description": "Format-specific MIME with charset=utf-8."
          },
          "text": {
            "type": "string",
            "maxLength": 5242880,
            "description": "At most 5 MiB UTF-8 encoded text. Render as textContent or textarea.value, never as HTML. The endpoint does not create a public download URL."
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000
          },
          "filtered_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 5000,
            "description": "Number in the current MapService result window, not an unrestricted organization total."
          },
          "selection_applied": {
            "type": "boolean"
          },
          "object_ids": {
            "type": "array",
            "maxItems": 1000,
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "filters": {
            "$ref": "#/components/schemas/ObjectExportFiltersV8"
          },
          "generated_at": {
            "type": "string",
            "format": "date-time"
          },
          "list_limit": {
            "const": 5000
          },
          "list_limit_reached": {
            "type": "boolean"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ThinClientIdV9": {
        "type": "string",
        "minLength": 2,
        "maxLength": 64,
        "pattern": "^[a-z][a-z0-9-]{1,63}$",
        "description": "Klucz klienta statycznego z rejestru operatora albo saas-<UUID domeny> z aktywnego portalu. Wartość nie pozwala wskazać dowolnego redirect_uri lub organizacji."
      },
      "ThinClientRedirectV9": {
        "type": "string",
        "format": "uri",
        "maxLength": 2048,
        "description": "Dokładny redirect_uri z rejestru operatora; HTTPS bez query, fragmentu i danych logowania. HTTP *.test dopuszczone tylko w konfiguracji lokalnej/deweloperskiej/testowej. Bez wildcardów ani dopasowania prefiksu."
      },
      "ThinClientStateV9": {
        "type": "string",
        "minLength": 43,
        "maxLength": 128,
        "pattern": "^[A-Za-z0-9_-]{43,128}$",
        "description": "Losowy stan powiązany z lokalną sesją klienta. BFF musi sprawdzić identyczność w callbacku."
      },
      "ThinClientScopesV9": {
        "type": "array",
        "minItems": 1,
        "maxItems": 23,
        "uniqueItems": true,
        "items": {
          "type": "string",
          "enum": [
            "points:read",
            "points:write",
            "issues:write",
            "jobs:read",
            "jobs:write",
            "export:read",
            "infrastructure:read",
            "infrastructure:write",
            "operations:read",
            "operations:write",
            "integrations:read",
            "incidents:read",
            "incidents:write",
            "tracking:read",
            "parking:read",
            "events:read",
            "events:write",
            "community:read",
            "community:write",
            "journeys:read",
            "journeys:write",
            "work-plans:read",
            "work-plans:write"
          ]
        },
        "description": "Zakresy faktycznego klucza. Delegacja first-party jest dodatkowo ograniczona wpisem klienta/szablonem; nowe scope nie są automatycznie przyznawane portalom."
      },
      "ThinClientPermissionsV9": {
        "type": "object",
        "required": [
          "owner",
          "edit_objects",
          "add_notes",
          "report_issues",
          "manage_issues"
        ],
        "properties": {
          "owner": {
            "type": "boolean"
          },
          "edit_objects": {
            "type": "boolean"
          },
          "add_notes": {
            "type": "boolean"
          },
          "report_issues": {
            "type": "boolean"
          },
          "manage_issues": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Bieżące uprawnienia organizacji; owner oznacza właściciela organizacji, nie administratora platformy. Ograniczenia do punktów są sprawdzane ponownie przy operacji na zasobie."
      },
      "ThinClientIdentityV9": {
        "type": "object",
        "required": [
          "user",
          "workspace",
          "permissions",
          "scopes",
          "expires_at"
        ],
        "properties": {
          "user": {
            "type": "object",
            "required": [
              "id",
              "name"
            ],
            "properties": {
              "id": {
                "$ref": "#/components/schemas/Id"
              },
              "name": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "description": "Brak email, is_admin, tokenu i hashy."
          },
          "workspace": {
            "type": "object",
            "required": [
              "id",
              "name"
            ],
            "properties": {
              "id": {
                "$ref": "#/components/schemas/Id"
              },
              "name": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "description": "Organizacja przypisana do klucza; nie jest nadpisywana przez cookie ani X-Telemonit-Workspace."
          },
          "permissions": {
            "$ref": "#/components/schemas/ThinClientPermissionsV9"
          },
          "scopes": {
            "$ref": "#/components/schemas/ThinClientScopesV9"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": false,
        "description": "Minimalna, świeżo zweryfikowana prezentacja użytkownika i organizacji klucza. To zwykły JSON, nie ID Token/JWT. /me działa także dla zwykłego ważnego klucza integracyjnego."
      },
      "ThinClientTokenResultV9": {
        "type": "object",
        "required": [
          "access_token",
          "token_type",
          "user",
          "workspace",
          "permissions",
          "scopes",
          "expires_at"
        ],
        "properties": {
          "access_token": {
            "type": "string",
            "pattern": "^tm_[a-f0-9]{64}$",
            "minLength": 67,
            "maxLength": 67,
            "readOnly": true,
            "description": "Sekret dla serwerowego BFF. Nie zapisuj w URL, HTML, JavaScript, logach ani localStorage. Core przechowuje hash."
          },
          "token_type": {
            "type": "string",
            "const": "Bearer"
          },
          "user": {
            "type": "object",
            "required": [
              "id",
              "name"
            ],
            "properties": {
              "id": {
                "$ref": "#/components/schemas/Id"
              },
              "name": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "description": "Brak email, is_admin, tokenu i hashy."
          },
          "workspace": {
            "type": "object",
            "required": [
              "id",
              "name"
            ],
            "properties": {
              "id": {
                "$ref": "#/components/schemas/Id"
              },
              "name": {
                "type": "string"
              }
            },
            "additionalProperties": false,
            "description": "Organizacja przypisana do klucza; nie jest nadpisywana przez cookie ani X-Telemonit-Workspace."
          },
          "permissions": {
            "$ref": "#/components/schemas/ThinClientPermissionsV9"
          },
          "scopes": {
            "$ref": "#/components/schemas/ThinClientScopesV9"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": false,
        "description": "Jednorazowy wynik wymiany kodu. Token przypisany do użytkownika, wybranej organizacji, klienta i aktualnej konfiguracji rejestru. Ważność 300–28800 sekund według operatora; brak refresh_token, expires_in, id_token i discovery OIDC."
      },
      "ThinClientExchangeInputV9": {
        "type": "object",
        "required": [
          "client_id",
          "code",
          "redirect_uri",
          "code_verifier"
        ],
        "properties": {
          "client_id": {
            "$ref": "#/components/schemas/ThinClientIdV9"
          },
          "code": {
            "type": "string",
            "pattern": "^tmc_[a-f0-9]{64}$",
            "minLength": 68,
            "maxLength": 68,
            "description": "Jednorazowy kod z zatwierdzonego callbacku, ważny najwyżej 60 sekund. Nie jest tokenem do API."
          },
          "redirect_uri": {
            "$ref": "#/components/schemas/ThinClientRedirectV9"
          },
          "code_verifier": {
            "type": "string",
            "minLength": 43,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._~-]{43,128}$",
            "description": "Weryfikator PKCE odpowiadający wyzwaniu S256 z pierwszego żądania. BFF przechowuje go po swojej stronie."
          }
        },
        "additionalProperties": false,
        "description": "Dokładnie cztery pola własnego protokołu Telemonit. Nie wysyłaj grant_type, client_secret, response_type, state ani parametrów standardowego serwera OAuth, których ta trasa nie obsługuje."
      },
      "ThinClientConsentFormV9": {
        "type": "object",
        "required": [
          "request_id",
          "expected_workspace",
          "decision"
        ],
        "properties": {
          "_csrf": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "CSRF z aktualnego formularza. Wymagany, gdy nie użyto X-CSRF-Token. Nagłówek, jeżeli obecny, ma pierwszeństwo."
          },
          "request_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Jednorazowy identyfikator formularza z GET; nie UUID biznesowego request_id. Żądanie w sesji wygasa po 300 sekundach."
          },
          "expected_workspace": {
            "$ref": "#/components/schemas/Id",
            "description": "Organizacja aktywnej sesji core w chwili wyświetlenia zgody. Zmiana konta lub kontekstu powoduje 409."
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id",
            "description": "Własna organizacja wybrana do tej delegacji; może różnić się od expected_workspace. Nie przełącza sesji core."
          },
          "scopes[]": {
            "$ref": "#/components/schemas/ThinClientScopesV9"
          },
          "decision": {
            "type": "string",
            "enum": [
              "approve",
              "deny"
            ]
          }
        },
        "additionalProperties": false,
        "description": "application/x-www-form-urlencoded. Pole scopes[] jest powtarzane dla kolejnych scope i PHP odbiera je jako tablicę scopes. Bez dodatkowych pól. CSRF obowiązkowy w _csrf albo X-CSRF-Token; nie da się wyrazić warunku między body i header samym security scheme OpenAPI. Odmowa nie wymaga workspace_id ani scopes[].",
        "allOf": [
          {
            "if": {
              "properties": {
                "decision": {
                  "const": "approve"
                }
              },
              "required": [
                "decision"
              ]
            },
            "then": {
              "required": [
                "workspace_id",
                "scopes[]"
              ]
            }
          }
        ]
      },
      "EmptyTokenRevokeInputV9": {
        "oneOf": [
          {
            "type": "object",
            "maxProperties": 0,
            "additionalProperties": false
          },
          {
            "type": "array",
            "maxItems": 0
          }
        ],
        "description": "Kanoniczne żądanie to pusty obiekt {}. Obecny parser PHP akceptuje również pustą tablicę []; każda niepusta treść jest odrzucana. Nie podaje się identyfikatora innego klucza."
      },
      "TokenRevokedV9": {
        "type": "object",
        "required": [
          "revoked"
        ],
        "properties": {
          "revoked": {
            "type": "boolean",
            "const": true
          }
        },
        "additionalProperties": false
      },
      "PointNoteV9": {
        "type": "object",
        "required": [
          "id",
          "body",
          "created_at",
          "author_name"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "body": {
            "type": "string"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "author_name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PointIssueV9": {
        "type": "object",
        "required": [
          "id",
          "description",
          "status",
          "version",
          "created_at",
          "updated_at",
          "author_name"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "description": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "new",
              "in_progress",
              "resolved"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "author_name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PointHistoryEntryV9": {
        "type": "object",
        "required": [
          "action",
          "details",
          "created_at",
          "actor_name"
        ],
        "properties": {
          "action": {
            "type": "string"
          },
          "details": {
            "type": [
              "object",
              "array",
              "null"
            ],
            "description": "Zdekodowane dane audytu tego punktu, zależne od rodzaju operacji; są prywatne."
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "actor_name": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": false
      },
      "PointDetailV9": {
        "type": "object",
        "required": [
          "object",
          "notes",
          "issues",
          "history"
        ],
        "properties": {
          "object": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Point"
              },
              {
                "required": [
                  "open_issues"
                ]
              }
            ],
            "description": "Pełny dostępny rekord punktu z liczbą otwartych usterek. Może być zarchiwizowany."
          },
          "notes": {
            "type": "array",
            "maxItems": 200,
            "items": {
              "$ref": "#/components/schemas/PointNoteV9"
            }
          },
          "issues": {
            "type": "array",
            "maxItems": 200,
            "items": {
              "$ref": "#/components/schemas/PointIssueV9"
            }
          },
          "history": {
            "type": "array",
            "maxItems": 200,
            "items": {
              "$ref": "#/components/schemas/PointHistoryEntryV9"
            }
          }
        },
        "additionalProperties": false,
        "description": "Dokładny wynik MapService::get: object, notes, issues, history. Każda lista ma własne maksimum 200; to szczegół z ograniczoną historią, nie pełny eksport. Brak plików, kamer, haseł, czatów i delegowania dostępu do mediów."
      },
      "IncidentPublicationSnapshotV9": {
        "oneOf": [
          {
            "type": "null"
          },
          {
            "type": "array",
            "maxItems": 0
          },
          {
            "type": "object",
            "required": [
              "title",
              "description",
              "type",
              "status",
              "severity",
              "lat",
              "lng",
              "area_label",
              "occurred_at",
              "ended_at",
              "valid_until",
              "starts_at",
              "expires_at",
              "media_ids",
              "review"
            ],
            "properties": {
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "description": {
                "type": "string",
                "maxLength": 4000
              },
              "type": {
                "type": "string",
                "enum": [
                  "equipment_failure",
                  "wifi_outage",
                  "it_outage",
                  "ransomware",
                  "cyber_incident",
                  "break_in",
                  "vandalism",
                  "fire",
                  "accident",
                  "road_closure",
                  "detour",
                  "flood",
                  "power_outage",
                  "water_leak",
                  "observation",
                  "other"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "new",
                  "triaged",
                  "in_progress",
                  "resolved",
                  "closed",
                  "false_alarm"
                ]
              },
              "severity": {
                "type": "integer",
                "minimum": 1,
                "maximum": 5
              },
              "lat": {
                "type": [
                  "number",
                  "null"
                ],
                "minimum": -90,
                "maximum": 90
              },
              "lng": {
                "type": [
                  "number",
                  "null"
                ],
                "minimum": -180,
                "maximum": 180
              },
              "area_label": {
                "type": "string",
                "maxLength": 160
              },
              "occurred_at": {
                "$ref": "#/components/schemas/Timestamp"
              },
              "ended_at": {
                "$ref": "#/components/schemas/NullableTimestamp"
              },
              "valid_until": {
                "$ref": "#/components/schemas/NullableTimestamp"
              },
              "starts_at": {
                "$ref": "#/components/schemas/Timestamp"
              },
              "expires_at": {
                "$ref": "#/components/schemas/Timestamp"
              },
              "media_ids": {
                "type": "array",
                "maxItems": 5,
                "items": {
                  "$ref": "#/components/schemas/Id"
                }
              },
              "review": {
                "type": "object",
                "required": [
                  "content",
                  "location",
                  "photos",
                  "reviewed_at"
                ],
                "properties": {
                  "content": {
                    "type": "boolean",
                    "const": true
                  },
                  "location": {
                    "type": "boolean"
                  },
                  "photos": {
                    "type": "boolean"
                  },
                  "reviewed_at": {
                    "$ref": "#/components/schemas/Timestamp"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ],
        "description": "Wyłącznie właściciel organizacji otrzymuje zapisany snapshot zatwierdzonej projekcji. Inny czytelnik otrzymuje null. Brak wcześniejszej publikacji może być pustą tablicą [] po dekodowaniu pustego obiektu PHP. Snapshot nie dowodzi, że okres publikacji jest nadal aktywny."
      },
      "IncidentMediaReferenceV9": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "url",
          "mime"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "kind": {
            "type": "string",
            "enum": [
              "photo",
              "audio"
            ]
          },
          "url": {
            "type": "string",
            "pattern": "^/api/media/[A-Za-z0-9-]+$",
            "description": "Względny endpoint sesyjny, nie tokenowy URL pobierania. Sam Bearer incydentu nie jest biletem do pliku."
          },
          "mime": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "Tylko media nadal dostępne według bieżącego MediaStore ACL/retencji. Lista może być krótsza niż media_ids."
      },
      "IncidentDetailV9": {
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "object_id",
          "creator_id",
          "title",
          "description",
          "type",
          "status",
          "severity",
          "resource_ref",
          "private_address",
          "vehicle_plate",
          "lat",
          "lng",
          "occurred_at",
          "ended_at",
          "valid_until",
          "audience",
          "team_id",
          "version",
          "deleted_at",
          "created_at",
          "updated_at",
          "media_ids",
          "user_ids",
          "can_edit",
          "can_publish",
          "published",
          "public_version",
          "publication",
          "public_starts_at",
          "public_expires_at",
          "public_url",
          "media"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "object_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "creator_id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "equipment_failure",
              "wifi_outage",
              "it_outage",
              "ransomware",
              "cyber_incident",
              "break_in",
              "vandalism",
              "fire",
              "accident",
              "road_closure",
              "detour",
              "flood",
              "power_outage",
              "water_leak",
              "observation",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "new",
              "triaged",
              "in_progress",
              "resolved",
              "closed",
              "false_alarm"
            ]
          },
          "severity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5
          },
          "resource_ref": {
            "type": "string"
          },
          "private_address": {
            "type": "string"
          },
          "vehicle_plate": {
            "type": "string"
          },
          "lat": {
            "type": [
              "number",
              "null"
            ],
            "minimum": -90,
            "maximum": 90
          },
          "lng": {
            "type": [
              "number",
              "null"
            ],
            "minimum": -180,
            "maximum": 180
          },
          "occurred_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "ended_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "valid_until": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "audience": {
            "type": "string",
            "enum": [
              "org",
              "team",
              "user"
            ]
          },
          "team_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "deleted_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "media_ids": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "$ref": "#/components/schemas/Id"
            }
          },
          "user_ids": {
            "type": "array",
            "maxItems": 101,
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/Id"
            }
          },
          "can_edit": {
            "type": "boolean"
          },
          "can_publish": {
            "type": "boolean"
          },
          "published": {
            "type": "boolean"
          },
          "public_version": {
            "type": "integer",
            "minimum": 0
          },
          "publication": {
            "$ref": "#/components/schemas/IncidentPublicationSnapshotV9"
          },
          "public_starts_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "public_expires_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "public_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "Link istnieje, jeżeli flaga published jest ustawiona. Publiczny endpoint osobno sprawdza czas widoczności i pozostałe warunki; URL nie gwarantuje aktywnej publikacji."
          },
          "media": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "$ref": "#/components/schemas/IncidentMediaReferenceV9"
            }
          }
        },
        "additionalProperties": false,
        "description": "Prywatny DTO IncidentService::get bez opakowania incident. Każde żądanie sprawdza organizację, członkostwo, punkt i audiencję. Usunięty incydent zwraca 404. Odpowiedź nie jest publiczną projekcją i może zawierać prywatny adres, parametry zasobu lub numer pojazdu."
      },
      "SaasTemplateV10": {
        "type": "object",
        "required": [
          "id",
          "label",
          "main_module",
          "allowed_modules",
          "default_modules"
        ],
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "incydent",
              "namap",
              "namap-ie",
              "locamera",
              "telepilot",
              "teleoperator"
            ]
          },
          "label": {
            "type": "string"
          },
          "main_module": {
            "type": "string",
            "enum": [
              "incidents",
              "points",
              "events",
              "infrastructure",
              "camera-events",
              "tasks",
              "jobs",
              "providers"
            ]
          },
          "allowed_modules": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "incidents",
                "points",
                "events",
                "infrastructure",
                "camera-events",
                "tasks",
                "jobs",
                "providers"
              ]
            },
            "minItems": 1,
            "maxItems": 3,
            "uniqueItems": true,
            "description": "Niepusty podzbiór modułów wybranego szablonu, zawierający jego main_module. To nie lista dowolnych uprawnień API."
          },
          "default_modules": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "incidents",
                "points",
                "events",
                "infrastructure",
                "camera-events",
                "tasks",
                "jobs",
                "providers"
              ]
            },
            "minItems": 1,
            "maxItems": 3,
            "uniqueItems": true,
            "description": "Niepusty podzbiór modułów wybranego szablonu, zawierający jego main_module. To nie lista dowolnych uprawnień API."
          }
        },
        "additionalProperties": false
      },
      "SaasPlanV10": {
        "type": "object",
        "required": [
          "price_minor",
          "currency",
          "period_days"
        ],
        "properties": {
          "price_minor": {
            "type": "integer",
            "minimum": 100,
            "maximum": 100000000
          },
          "currency": {
            "type": "string",
            "const": "PLN"
          },
          "period_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 366
          }
        },
        "additionalProperties": false,
        "description": "Aktualna konfiguracja operatora, nie stały cennik zakodowany w kliencie. Kwoty w groszach; domyślnie 9900 groszy (99 PLN) za 30 dni."
      },
      "SaasCatalogV10": {
        "type": "object",
        "required": [
          "enabled",
          "templates",
          "accents",
          "plans",
          "free_points"
        ],
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "templates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaasTemplateV10"
            },
            "maxItems": 6
          },
          "accents": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "teal",
                "red",
                "blue",
                "violet",
                "amber"
              ]
            },
            "uniqueItems": true
          },
          "plans": {
            "type": "object",
            "required": [
              "standard",
              "checkout_mode",
              "automatic_charge"
            ],
            "properties": {
              "standard": {
                "$ref": "#/components/schemas/SaasPlanV10"
              },
              "checkout_mode": {
                "type": "string",
                "const": "manual_review"
              },
              "automatic_charge": {
                "type": "boolean",
                "const": false
              }
            },
            "additionalProperties": false
          },
          "free_points": {
            "type": "integer",
            "minimum": 3,
            "maximum": 3
          }
        },
        "additionalProperties": false,
        "description": "Katalog można odczytać również przy wyłączonych portalach. Darmowe trzy punkty core są odrębną usługą od abonamentu portali SaaS."
      },
      "SaasSubscriptionV10": {
        "type": "object",
        "required": [
          "status",
          "active",
          "source",
          "expires_at",
          "version",
          "plan"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "inactive",
              "active",
              "expired",
              "suspended"
            ]
          },
          "active": {
            "type": "boolean"
          },
          "source": {
            "type": "string",
            "enum": [
              "none",
              "manual",
              "partner"
            ]
          },
          "expires_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "starts_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "plan": {
            "type": "string",
            "const": "standard"
          }
        },
        "additionalProperties": false,
        "description": "Efektywny stan w chwili żądania. Brak zapisu daje inactive/source none/version 0 i nie zawiera starts_at. Okres jest skończony; brak bezterminowego planu lub automatycznego odnowienia."
      },
      "SaasDomainV10": {
        "type": "object",
        "required": [
          "id",
          "portal_id",
          "hostname",
          "kind",
          "status",
          "enabled",
          "version",
          "verified_at",
          "tls_ready_at",
          "verification_expires_at",
          "site_url",
          "runtime_active",
          "dns"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "portal_id": {
            "$ref": "#/components/schemas/Id"
          },
          "hostname": {
            "type": "string",
            "maxLength": 253,
            "description": "Sama domena ASCII/Punycode; bez protokołu, portu, ścieżki, wildcardów lub adresu IP. Serwer normalizuje wielkość liter. *.test tylko w trybie local/development/testing."
          },
          "kind": {
            "type": "string",
            "enum": [
              "managed",
              "custom"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending_verification",
              "verified",
              "active",
              "disabled"
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "description": "Dokładna bieżąca wersja całkowita. Brak lub niezgodność: 409 version_conflict."
          },
          "verified_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "tls_ready_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "verification_expires_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "site_url": {
            "type": "string",
            "format": "uri"
          },
          "runtime_active": {
            "type": "boolean"
          },
          "dns": {
            "type": "object",
            "required": [
              "txt_name",
              "target_cname",
              "expected_ips"
            ],
            "properties": {
              "txt_name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "target_cname": {
                "type": "string",
                "maxLength": 253,
                "description": "Sama domena ASCII/Punycode; bez protokołu, portu, ścieżki, wildcardów lub adresu IP. Serwer normalizuje wielkość liter. *.test tylko w trybie local/development/testing."
              },
              "expected_ips": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "Zatwierdzony przez operatora adres IPv4 lub IPv6."
                },
                "maxItems": 32,
                "uniqueItems": true
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false,
        "description": "Metadane domeny własnej organizacji. Brak kodu TXT i jego hasha. runtime_active wymaga włączonego portalu, aktywnej subskrypcji, aktualnego właściciela, aktywnej domeny, zweryfikowanego DNS i potwierdzonego TLS/routingu."
      },
      "SaasPortalV10": {
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "template",
          "slug",
          "name",
          "description",
          "accent",
          "created_at",
          "updated_at",
          "enabled",
          "version",
          "modules",
          "domains"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "template": {
            "type": "string",
            "enum": [
              "incydent",
              "namap",
              "namap-ie",
              "locamera",
              "telepilot",
              "teleoperator"
            ]
          },
          "slug": {
            "type": "string",
            "minLength": 3,
            "maxLength": 40
          },
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 100
          },
          "description": {
            "type": "string",
            "maxLength": 600
          },
          "accent": {
            "type": "string",
            "enum": [
              "teal",
              "red",
              "blue",
              "violet",
              "amber"
            ]
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "enabled": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "description": "Dokładna bieżąca wersja całkowita. Brak lub niezgodność: 409 version_conflict."
          },
          "modules": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "incidents",
                "points",
                "events",
                "infrastructure",
                "camera-events",
                "tasks",
                "jobs",
                "providers"
              ]
            },
            "minItems": 1,
            "maxItems": 3,
            "uniqueItems": true,
            "description": "Niepusty podzbiór modułów wybranego szablonu, zawierający jego main_module. To nie lista dowolnych uprawnień API."
          },
          "domains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaasDomainV10"
            }
          }
        },
        "additionalProperties": false
      },
      "SaasPurchaseV10": {
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "plan_key",
          "status",
          "currency",
          "provider",
          "created_at",
          "paid_at",
          "entitlement_from",
          "entitlement_until",
          "updated_at",
          "price_minor",
          "discount_minor",
          "amount_minor",
          "period_days",
          "version",
          "expires_at",
          "checkout_url",
          "invoice_status"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "plan_key": {
            "type": "string",
            "const": "standard"
          },
          "status": {
            "type": "string",
            "enum": [
              "payment_pending",
              "paid_manual",
              "paid_coupon"
            ]
          },
          "currency": {
            "type": "string",
            "const": "PLN"
          },
          "provider": {
            "type": "string",
            "enum": [
              "manual_review",
              "partner_coupon"
            ]
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "paid_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "entitlement_from": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "entitlement_until": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "price_minor": {
            "type": "integer",
            "minimum": 0
          },
          "discount_minor": {
            "type": "integer",
            "minimum": 0
          },
          "amount_minor": {
            "type": "integer",
            "minimum": 0
          },
          "period_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 366
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "description": "Dokładna bieżąca wersja całkowita. Brak lub niezgodność: 409 version_conflict."
          },
          "expires_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "checkout_url": {
            "type": "null"
          },
          "invoice_status": {
            "type": "string",
            "const": "manual_required"
          }
        },
        "additionalProperties": false,
        "description": "Zapis oferty/uzgodnienia SaaS; paid_manual to potwierdzenie operatora, nie podpisana informacja banku. paid_coupon ma kwotę 0 i skończony okres. Nie zwraca dowodu płatności, provider_reference ani sekretów. Faktura i pobranie opłaty nie są automatyczne w tym module."
      },
      "SaasDashboardV10": {
        "type": "object",
        "required": [
          "enabled",
          "templates",
          "accents",
          "plans",
          "free_points",
          "base_domain",
          "workspace",
          "subscription",
          "limits",
          "portals",
          "purchases",
          "history",
          "operator_actions_allowed"
        ],
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "templates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaasTemplateV10"
            },
            "maxItems": 6
          },
          "accents": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "teal",
                "red",
                "blue",
                "violet",
                "amber"
              ]
            },
            "uniqueItems": true
          },
          "plans": {
            "type": "object",
            "required": [
              "standard",
              "checkout_mode",
              "automatic_charge"
            ],
            "properties": {
              "standard": {
                "$ref": "#/components/schemas/SaasPlanV10"
              },
              "checkout_mode": {
                "type": "string",
                "const": "manual_review"
              },
              "automatic_charge": {
                "type": "boolean",
                "const": false
              }
            },
            "additionalProperties": false
          },
          "free_points": {
            "type": "integer",
            "minimum": 3,
            "maximum": 3
          },
          "base_domain": {
            "type": "string",
            "maxLength": 253,
            "description": "Sama domena ASCII/Punycode; bez protokołu, portu, ścieżki, wildcardów lub adresu IP. Serwer normalizuje wielkość liter. *.test tylko w trybie local/development/testing."
          },
          "workspace": {
            "$ref": "#/components/schemas/Workspace"
          },
          "subscription": {
            "$ref": "#/components/schemas/SaasSubscriptionV10"
          },
          "limits": {
            "type": "object",
            "required": [
              "portals",
              "domains_per_portal"
            ],
            "properties": {
              "portals": {
                "type": "integer",
                "minimum": 1
              },
              "domains_per_portal": {
                "type": "integer",
                "minimum": 1
              }
            },
            "additionalProperties": false
          },
          "portals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaasPortalV10"
            }
          },
          "purchases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaasPurchaseV10"
            },
            "maxItems": 50
          },
          "history": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "action",
                "entity_id",
                "created_at",
                "details"
              ],
              "properties": {
                "id": {
                  "type": [
                    "integer",
                    "string"
                  ]
                },
                "action": {
                  "type": "string"
                },
                "entity_id": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Id"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_at": {
                  "$ref": "#/components/schemas/Timestamp"
                },
                "details": {
                  "type": [
                    "object",
                    "array"
                  ],
                  "description": "Dane konkretnej operacji audytu bez kodu partnerskiego i sekretów."
                }
              },
              "additionalProperties": false
            },
            "maxItems": 50
          },
          "operator_actions_allowed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SaasRuntimeV10": {
        "type": "object",
        "required": [
          "portal_id",
          "workspace_id",
          "client_id",
          "template",
          "name",
          "description",
          "accent",
          "modules",
          "site_url",
          "canonical_url",
          "auth_url",
          "core_url",
          "revision"
        ],
        "properties": {
          "portal_id": {
            "$ref": "#/components/schemas/Id"
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "client_id": {
            "type": "string",
            "pattern": "^saas-[a-f0-9-]{36}$"
          },
          "template": {
            "type": "string",
            "enum": [
              "incydent",
              "namap",
              "namap-ie",
              "locamera",
              "telepilot",
              "teleoperator"
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "accent": {
            "type": "string",
            "enum": [
              "teal",
              "red",
              "blue",
              "violet",
              "amber"
            ]
          },
          "modules": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "incidents",
                "points",
                "events",
                "infrastructure",
                "camera-events",
                "tasks",
                "jobs",
                "providers"
              ]
            },
            "minItems": 1,
            "maxItems": 3,
            "uniqueItems": true,
            "description": "Niepusty podzbiór modułów wybranego szablonu, zawierający jego main_module. To nie lista dowolnych uprawnień API."
          },
          "site_url": {
            "type": "string",
            "format": "uri"
          },
          "canonical_url": {
            "type": "string",
            "format": "uri"
          },
          "auth_url": {
            "type": "string",
            "format": "uri"
          },
          "core_url": {
            "type": "string",
            "format": "uri"
          },
          "revision": {
            "type": "integer",
            "minimum": 1,
            "description": "Dokładna bieżąca wersja całkowita. Brak lub niezgodność: 409 version_conflict."
          }
        },
        "additionalProperties": false,
        "description": "Publiczna konfiguracja jednego aktywnego hosta; nie zawiera tokenu. canonical_url wybiera alfabetycznie aktywną domenę custom przed managed. client_id ma dokładny callback site_url/auth/callback i organizację portalu; nie jest dowolnym klientem OAuth."
      },
      "SaasVerificationV10": {
        "type": "object",
        "required": [
          "txt_name",
          "txt_value",
          "target_cname",
          "expected_ips",
          "expires_at"
        ],
        "properties": {
          "txt_name": {
            "type": "string"
          },
          "txt_value": {
            "type": "string",
            "pattern": "^telemonit-verification=[a-f0-9]{64}$",
            "description": "Wydawany wyłącznie przy utworzeniu/rotacji. Nie loguj; zwykły odczyt go nie odtwarza."
          },
          "target_cname": {
            "type": "string",
            "maxLength": 253,
            "description": "Sama domena ASCII/Punycode; bez protokołu, portu, ścieżki, wildcardów lub adresu IP. Serwer normalizuje wielkość liter. *.test tylko w trybie local/development/testing."
          },
          "expected_ips": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Zatwierdzony przez operatora adres IPv4 lub IPv6."
            },
            "maxItems": 32,
            "uniqueItems": true
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": false,
        "description": "Wymagany TXT i routing: dokładny CNAME do target_cname albo wyłącznie zatwierdzone A/AAAA z expected_ips. Sam TXT nie uruchamia domeny ani TLS; wyzwanie wygasa po siedmiu dniach."
      },
      "SaasDomainClaimResultV10": {
        "type": "object",
        "required": [
          "domain",
          "verification"
        ],
        "properties": {
          "domain": {
            "$ref": "#/components/schemas/SaasDomainV10"
          },
          "verification": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SaasVerificationV10"
              },
              {
                "type": "null"
              }
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "Idempotentne ponowienie claim zwraca verification:null i opis; surowego TXT nie da się odtworzyć."
      },
      "SaasPortalCreateV10": {
        "type": "object",
        "required": [
          "request_id",
          "template",
          "slug",
          "name"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "template": {
            "type": "string",
            "enum": [
              "incydent",
              "namap",
              "namap-ie",
              "locamera",
              "telepilot",
              "teleoperator"
            ]
          },
          "slug": {
            "type": "string",
            "minLength": 3,
            "maxLength": 40,
            "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
            "description": "Nazwy usług i marek operatora są zastrzeżone; globalna unikalność."
          },
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 100
          },
          "description": {
            "type": "string",
            "maxLength": 600
          },
          "accent": {
            "type": "string",
            "enum": [
              "teal",
              "red",
              "blue",
              "violet",
              "amber"
            ]
          },
          "modules": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "incidents",
                    "points",
                    "events",
                    "infrastructure",
                    "camera-events",
                    "tasks",
                    "jobs",
                    "providers"
                  ]
                },
                "minItems": 1,
                "maxItems": 3,
                "uniqueItems": true,
                "description": "Niepusty podzbiór modułów wybranego szablonu, zawierający jego main_module. To nie lista dowolnych uprawnień API."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "SaasPortalUpdateV10": {
        "type": "object",
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1,
            "description": "Dokładna bieżąca wersja całkowita. Brak lub niezgodność: 409 version_conflict."
          },
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 100
          },
          "description": {
            "type": "string",
            "maxLength": 600
          },
          "accent": {
            "type": "string",
            "enum": [
              "teal",
              "red",
              "blue",
              "violet",
              "amber"
            ]
          },
          "modules": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "incidents",
                    "points",
                    "events",
                    "infrastructure",
                    "camera-events",
                    "tasks",
                    "jobs",
                    "providers"
                  ]
                },
                "minItems": 1,
                "maxItems": 3,
                "uniqueItems": true,
                "description": "Niepusty podzbiór modułów wybranego szablonu, zawierający jego main_module. To nie lista dowolnych uprawnień API."
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Zmiana szablonu, slug lub organizacji nie jest obsługiwana. Zmiana modules/enabled unieważnia istniejącą autoryzację tego portalu; zmiana samego wyglądu nie rozszerza praw."
      },
      "SaasDomainClaimV10": {
        "type": "object",
        "required": [
          "request_id",
          "hostname"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "hostname": {
            "type": "string",
            "maxLength": 253,
            "description": "Sama domena ASCII/Punycode; bez protokołu, portu, ścieżki, wildcardów lub adresu IP. Serwer normalizuje wielkość liter. *.test tylko w trybie local/development/testing."
          }
        },
        "additionalProperties": false
      },
      "SaasVersionV10": {
        "type": "object",
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1,
            "description": "Dokładna bieżąca wersja całkowita. Brak lub niezgodność: 409 version_conflict."
          }
        },
        "additionalProperties": false
      },
      "SaasDomainUpdateV10": {
        "type": "object",
        "required": [
          "version",
          "enabled"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1,
            "description": "Dokładna bieżąca wersja całkowita. Brak lub niezgodność: 409 version_conflict."
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SaasPurchaseCreateV10": {
        "type": "object",
        "required": [
          "request_id"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          }
        },
        "additionalProperties": false,
        "description": "Cena, waluta i okres pochodzą z serwera; klient nie podaje kwoty ani provider. Maksymalnie jeden purchase payment_pending w organizacji."
      },
      "SaasCouponRedeemV10": {
        "type": "object",
        "required": [
          "request_id",
          "code"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "code": {
            "type": "string",
            "pattern": "^tmsaas_[a-f0-9]{64}$",
            "minLength": 71,
            "maxLength": 71
          }
        },
        "additionalProperties": false
      },
      "SaasCouponRedeemedV10": {
        "type": "object",
        "required": [
          "purchase",
          "subscription",
          "duplicate"
        ],
        "properties": {
          "purchase": {
            "$ref": "#/components/schemas/SaasPurchaseV10"
          },
          "subscription": {
            "$ref": "#/components/schemas/SaasSubscriptionV10"
          },
          "duplicate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SaasCouponIssueV10": {
        "type": "object",
        "required": [
          "expires_at"
        ],
        "properties": {
          "workspace_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner_email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ]
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
            "description": "Poprawny czas UTC: przyszłość i nie więcej niż 90 dni."
          },
          "period_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 366
          }
        },
        "additionalProperties": false,
        "description": "Dokładnie jedno niepuste workspace_id albo owner_email. Drugie można pominąć lub przekazać null. Okres domyślnie z aktualnego planu. Kod 100%, jednorazowy; samo wystawienie nie tworzy subskrypcji.",
        "oneOf": [
          {
            "required": [
              "workspace_id"
            ],
            "properties": {
              "workspace_id": {
                "$ref": "#/components/schemas/Id"
              },
              "owner_email": {
                "type": "null"
              }
            }
          },
          {
            "required": [
              "owner_email"
            ],
            "properties": {
              "owner_email": {
                "type": "string",
                "format": "email"
              },
              "workspace_id": {
                "type": "null"
              }
            }
          }
        ]
      },
      "SaasCouponIssuedV10": {
        "type": "object",
        "required": [
          "id",
          "code",
          "workspace_id",
          "scope",
          "period_days",
          "expires_at",
          "max_uses",
          "message"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "code": {
            "type": "string",
            "pattern": "^tmsaas_[a-f0-9]{64}$",
            "minLength": 71,
            "maxLength": 71
          },
          "workspace_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "scope": {
            "type": "string",
            "enum": [
              "workspace",
              "owner_email"
            ]
          },
          "period_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 366
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "max_uses": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "Kod zwracany tylko raz; odpowiedź nie wysyła go e-mailem/SMS ani nie przyznaje jeszcze dostępu."
      },
      "SaasApprovePurchaseV10": {
        "type": "object",
        "required": [
          "version",
          "evidence",
          "amount_minor",
          "currency"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1,
            "description": "Dokładna bieżąca wersja całkowita. Brak lub niezgodność: 409 version_conflict."
          },
          "evidence": {
            "type": "string",
            "minLength": 12,
            "maxLength": 1000
          },
          "amount_minor": {
            "type": "integer",
            "minimum": 0
          },
          "currency": {
            "type": "string",
            "const": "PLN"
          }
        },
        "additionalProperties": false,
        "description": "Jawne potwierdzenie administratora. Kwota i waluta muszą dokładnie odpowiadać zapisanemu zakupowi; dowód nie jest odpowiedzią API operatora płatności."
      },
      "SaasActivateDomainV10": {
        "type": "object",
        "required": [
          "version",
          "evidence",
          "tls_ready"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1,
            "description": "Dokładna bieżąca wersja całkowita. Brak lub niezgodność: 409 version_conflict."
          },
          "evidence": {
            "type": "string",
            "minLength": 12,
            "maxLength": 1000
          },
          "tls_ready": {
            "type": "boolean",
            "const": true
          }
        },
        "additionalProperties": false
      },
      "SaasSuspendV10": {
        "type": "object",
        "required": [
          "version",
          "reason"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1,
            "description": "Dokładna bieżąca wersja całkowita. Brak lub niezgodność: 409 version_conflict."
          },
          "reason": {
            "type": "string",
            "minLength": 10,
            "maxLength": 1000
          }
        },
        "additionalProperties": false
      },
      "SaasAdminQueueV10": {
        "type": "object",
        "required": [
          "purchases",
          "domains",
          "subscriptions",
          "limit_per_collection",
          "automatic_payment_verification",
          "automatic_tls_provisioning"
        ],
        "properties": {
          "purchases": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "workspace_id",
                "plan_key",
                "status",
                "currency",
                "provider",
                "created_at",
                "paid_at",
                "entitlement_from",
                "entitlement_until",
                "updated_at",
                "price_minor",
                "discount_minor",
                "amount_minor",
                "period_days",
                "version",
                "expires_at",
                "checkout_url",
                "invoice_status",
                "workspace_name"
              ],
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "workspace_id": {
                  "$ref": "#/components/schemas/Id"
                },
                "plan_key": {
                  "type": "string",
                  "const": "standard"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "payment_pending",
                    "paid_manual",
                    "paid_coupon"
                  ]
                },
                "currency": {
                  "type": "string",
                  "const": "PLN"
                },
                "provider": {
                  "type": "string",
                  "enum": [
                    "manual_review",
                    "partner_coupon"
                  ]
                },
                "created_at": {
                  "$ref": "#/components/schemas/Timestamp"
                },
                "paid_at": {
                  "$ref": "#/components/schemas/NullableTimestamp"
                },
                "entitlement_from": {
                  "$ref": "#/components/schemas/NullableTimestamp"
                },
                "entitlement_until": {
                  "$ref": "#/components/schemas/NullableTimestamp"
                },
                "updated_at": {
                  "$ref": "#/components/schemas/Timestamp"
                },
                "price_minor": {
                  "type": "integer",
                  "minimum": 0
                },
                "discount_minor": {
                  "type": "integer",
                  "minimum": 0
                },
                "amount_minor": {
                  "type": "integer",
                  "minimum": 0
                },
                "period_days": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 366
                },
                "version": {
                  "type": "integer",
                  "minimum": 1,
                  "description": "Dokładna bieżąca wersja całkowita. Brak lub niezgodność: 409 version_conflict."
                },
                "expires_at": {
                  "$ref": "#/components/schemas/NullableTimestamp"
                },
                "checkout_url": {
                  "type": "null"
                },
                "invoice_status": {
                  "type": "string",
                  "const": "manual_required"
                },
                "workspace_name": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "description": "Zapis oferty/uzgodnienia SaaS; paid_manual to potwierdzenie operatora, nie podpisana informacja banku. paid_coupon ma kwotę 0 i skończony okres. Nie zwraca dowodu płatności, provider_reference ani sekretów. Faktura i pobranie opłaty nie są automatyczne w tym module."
            },
            "maxItems": 100
          },
          "domains": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "portal_id",
                "hostname",
                "kind",
                "status",
                "enabled",
                "version",
                "verified_at",
                "tls_ready_at",
                "verification_expires_at",
                "site_url",
                "runtime_active",
                "dns",
                "workspace_id",
                "workspace_name"
              ],
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "portal_id": {
                  "$ref": "#/components/schemas/Id"
                },
                "hostname": {
                  "type": "string",
                  "maxLength": 253,
                  "description": "Sama domena ASCII/Punycode; bez protokołu, portu, ścieżki, wildcardów lub adresu IP. Serwer normalizuje wielkość liter. *.test tylko w trybie local/development/testing."
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "managed",
                    "custom"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending_verification",
                    "verified",
                    "active",
                    "disabled"
                  ]
                },
                "enabled": {
                  "type": "boolean"
                },
                "version": {
                  "type": "integer",
                  "minimum": 1,
                  "description": "Dokładna bieżąca wersja całkowita. Brak lub niezgodność: 409 version_conflict."
                },
                "verified_at": {
                  "$ref": "#/components/schemas/NullableTimestamp"
                },
                "tls_ready_at": {
                  "$ref": "#/components/schemas/NullableTimestamp"
                },
                "verification_expires_at": {
                  "$ref": "#/components/schemas/NullableTimestamp"
                },
                "site_url": {
                  "type": "string",
                  "format": "uri"
                },
                "runtime_active": {
                  "type": "boolean"
                },
                "dns": {
                  "type": "object",
                  "required": [
                    "txt_name",
                    "target_cname",
                    "expected_ips"
                  ],
                  "properties": {
                    "txt_name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "target_cname": {
                      "type": "string",
                      "maxLength": 253,
                      "description": "Sama domena ASCII/Punycode; bez protokołu, portu, ścieżki, wildcardów lub adresu IP. Serwer normalizuje wielkość liter. *.test tylko w trybie local/development/testing."
                    },
                    "expected_ips": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "description": "Zatwierdzony przez operatora adres IPv4 lub IPv6."
                      },
                      "maxItems": 32,
                      "uniqueItems": true
                    }
                  },
                  "additionalProperties": false
                },
                "workspace_id": {
                  "$ref": "#/components/schemas/Id"
                },
                "workspace_name": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "description": "Metadane domeny własnej organizacji. Brak kodu TXT i jego hasha. runtime_active wymaga włączonego portalu, aktywnej subskrypcji, aktualnego właściciela, aktywnej domeny, zweryfikowanego DNS i potwierdzonego TLS/routingu."
            },
            "maxItems": 100
          },
          "subscriptions": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "status",
                "active",
                "source",
                "expires_at",
                "version",
                "plan",
                "workspace_id",
                "workspace_name"
              ],
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "inactive",
                    "active",
                    "expired",
                    "suspended"
                  ]
                },
                "active": {
                  "type": "boolean"
                },
                "source": {
                  "type": "string",
                  "enum": [
                    "none",
                    "manual",
                    "partner"
                  ]
                },
                "expires_at": {
                  "$ref": "#/components/schemas/NullableTimestamp"
                },
                "starts_at": {
                  "$ref": "#/components/schemas/NullableTimestamp"
                },
                "version": {
                  "type": "integer",
                  "minimum": 0
                },
                "plan": {
                  "type": "string",
                  "const": "standard"
                },
                "workspace_id": {
                  "$ref": "#/components/schemas/Id"
                },
                "workspace_name": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "description": "Efektywny stan w chwili żądania. Brak zapisu daje inactive/source none/version 0 i nie zawiera starts_at. Okres jest skończony; brak bezterminowego planu lub automatycznego odnowienia."
            },
            "maxItems": 100
          },
          "limit_per_collection": {
            "type": "integer",
            "minimum": 100,
            "maximum": 100
          },
          "automatic_payment_verification": {
            "type": "boolean",
            "const": false
          },
          "automatic_tls_provisioning": {
            "type": "boolean",
            "const": false
          }
        },
        "additionalProperties": false
      },
      "SaasPublicIncidentV10": {
        "type": "object",
        "required": [
          "id",
          "title",
          "description",
          "public_version",
          "published_at",
          "url",
          "photos",
          "type",
          "status",
          "severity",
          "lat",
          "lng",
          "area_label",
          "occurred_at",
          "ended_at",
          "valid_until",
          "starts_at",
          "expires_at"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "public_version": {
            "type": "integer",
            "minimum": 1,
            "description": "Dokładna bieżąca wersja całkowita. Brak lub niezgodność: 409 version_conflict."
          },
          "published_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "photos": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "url",
                "alt"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "description": "Względny publiczny endpoint zdjęcia; sprawdza ponownie publikację i retencję."
                },
                "alt": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "maxItems": 5
          },
          "distance_km": {
            "type": "number",
            "minimum": 0
          },
          "type": {
            "type": "string",
            "enum": [
              "equipment_failure",
              "wifi_outage",
              "it_outage",
              "ransomware",
              "cyber_incident",
              "break_in",
              "vandalism",
              "fire",
              "accident",
              "road_closure",
              "detour",
              "flood",
              "power_outage",
              "water_leak",
              "observation",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "new",
              "triaged",
              "in_progress",
              "resolved",
              "closed",
              "false_alarm"
            ]
          },
          "severity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5
          },
          "lat": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Latitude"
              },
              {
                "type": "null"
              }
            ]
          },
          "lng": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Longitude"
              },
              {
                "type": "null"
              }
            ]
          },
          "area_label": {
            "type": "string"
          },
          "occurred_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "ended_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "valid_until": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "starts_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": false,
        "description": "Osobny zatwierdzony snapshot publikacji, nie rekord prywatnego incydentu. Publikacja nie potwierdza prawdziwości zdarzenia."
      },
      "SaasPublicEventV10": {
        "type": "object",
        "required": [
          "id",
          "title",
          "description",
          "public_version",
          "published_at",
          "url",
          "photos",
          "type",
          "status",
          "lat",
          "lng",
          "starts_at",
          "ends_at",
          "timezone",
          "all_day",
          "venue",
          "topics",
          "source",
          "visible_from",
          "visible_until",
          "reviewed",
          "reviewed_at",
          "needs_review"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "public_version": {
            "type": "integer",
            "minimum": 1,
            "description": "Dokładna bieżąca wersja całkowita. Brak lub niezgodność: 409 version_conflict."
          },
          "published_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "photos": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "url",
                "alt"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "description": "Względny publiczny endpoint zdjęcia; sprawdza ponownie publikację i retencję."
                },
                "alt": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "maxItems": 5
          },
          "distance_km": {
            "type": "number",
            "minimum": 0
          },
          "type": {
            "type": "string",
            "enum": [
              "culture",
              "concert",
              "sport",
              "community",
              "training",
              "meeting",
              "market",
              "maintenance",
              "transport",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "proposed",
              "confirmed",
              "postponed",
              "cancelled",
              "completed"
            ]
          },
          "lat": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Latitude"
              },
              {
                "type": "null"
              }
            ]
          },
          "lng": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Longitude"
              },
              {
                "type": "null"
              }
            ]
          },
          "starts_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "ends_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "timezone": {
            "type": "string"
          },
          "all_day": {
            "type": "boolean"
          },
          "venue": {
            "type": "string"
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "source": {
            "type": "object",
            "required": [
              "url",
              "id",
              "label",
              "published_at"
            ],
            "properties": {
              "url": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "published_at": {
                "$ref": "#/components/schemas/NullableTimestamp"
              }
            },
            "additionalProperties": false,
            "description": "Wyłącznie jawnie zatwierdzone publiczne dane źródła z projekcji EventService. Brak źródła ma puste ciągi, nie domyślne prywatne URL."
          },
          "visible_from": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "visible_until": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "reviewed": {
            "type": "boolean"
          },
          "reviewed_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "needs_review": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Data wydarzenia jest oddzielna od czasu widoczności i informacji o źródle. Propozycja może mieć starts_at:null."
      },
      "SaasPublicProviderV10": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "user_id": {
            "$ref": "#/components/schemas/Id"
          },
          "display_name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Category"
            },
            "minItems": 1,
            "maxItems": 7,
            "uniqueItems": true
          },
          "radius_km": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "published": {
            "const": true
          },
          "public_location": {
            "type": "boolean"
          },
          "available_until": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "available": {
            "type": "boolean",
            "description": "Stan TTL oceniony przez serwer. Profil może wygasnąć między wyborem kandydatów a serializacją; nie traktuj wyniku jako rezerwacji wykonawcy."
          },
          "approx_lat": {
            "$ref": "#/components/schemas/ApproxLatitude"
          },
          "approx_lng": {
            "$ref": "#/components/schemas/ApproxLongitude"
          },
          "distance_km": {
            "type": "number",
            "minimum": 0,
            "description": "Opcjonalnie odległość w km do przybliżonej pozycji, zaokrąglona do trzech miejsc; nie trasa ani ETA."
          },
          "rating": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 1,
            "maximum": 5
          },
          "review_count": {
            "type": "integer",
            "minimum": 0
          },
          "price_from_minor": {
            "type": "null",
            "description": "Nie ma publicznego cennika wykonawcy; rzeczywista cena jest podawana w ofercie."
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "id",
          "user_id",
          "display_name",
          "description",
          "categories",
          "radius_km",
          "published",
          "public_location",
          "available_until",
          "available",
          "approx_lat",
          "approx_lng",
          "rating",
          "review_count",
          "price_from_minor",
          "url"
        ],
        "description": "Wyłącznie jawnie opublikowany profil z niewygasłą deklaracją dostępności. Nigdy nie zawiera dokładnego GPS, adresu e-mail ani identyfikatora konta płatniczego."
      },
      "SaasPublicJobV10": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "description": {
            "type": "string",
            "description": "Alias osobnego public_summary, nigdy prywatnego opisu zlecenia."
          },
          "public_summary": {
            "type": "string"
          },
          "category": {
            "$ref": "#/components/schemas/Category"
          },
          "selection": {
            "$ref": "#/components/schemas/Selection"
          },
          "status": {
            "const": "auction"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "auction_ends_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "approx_lat": {
            "$ref": "#/components/schemas/ApproxLatitude"
          },
          "approx_lng": {
            "$ref": "#/components/schemas/ApproxLongitude"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "estimated_minutes": {
            "$ref": "#/components/schemas/EstimatedMinutes"
          },
          "distance_km": {
            "type": "number",
            "minimum": 0
          },
          "auction_mode": {
            "type": "string",
            "enum": [
              "standard",
              "paid_extended"
            ]
          },
          "pricing_model": {
            "type": "string",
            "enum": [
              "legacy",
              "total_basis",
              "service_basis"
            ]
          },
          "fee_bps": {
            "type": "integer",
            "minimum": 0
          },
          "buyer_surcharge_bps": {
            "type": "integer",
            "minimum": 0
          },
          "auction_fee_minor": {
            "type": "integer",
            "minimum": 0
          },
          "auction_duration_seconds": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "pricing_kind": {
            "type": "string",
            "enum": [
              "fixed",
              "hourly"
            ]
          },
          "scheduled_start_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "scheduled_end_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "scheduled_minutes": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "advertised_amount_minor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "advertised_hourly_rate_minor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "pricing_terms_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "pricing_preview": {
            "type": [
              "object",
              "null"
            ],
            "description": "Jawne wyliczenie ceny z MarketplacePricing; nie płatność ani pobranie środków."
          },
          "awarded_hourly_rate_minor": {
            "type": "null"
          }
        },
        "required": [
          "id",
          "description",
          "public_summary",
          "category",
          "selection",
          "status",
          "currency",
          "auction_ends_at",
          "approx_lat",
          "approx_lng",
          "url",
          "estimated_minutes"
        ],
        "description": "Publiczny opis trwającej aukcji, przybliżony GPS po zgodzie i jawne warunki cenowe; bez dokładnej pozycji, stron transakcji, ofert i rozmów."
      },
      "SaasPublicRecordsV10": {
        "type": "object",
        "required": [
          "portal_id",
          "resource",
          "public",
          "items",
          "total",
          "offset",
          "limit",
          "next_offset",
          "page",
          "per_page",
          "has_more",
          "next_page",
          "filters"
        ],
        "properties": {
          "portal_id": {
            "$ref": "#/components/schemas/Id"
          },
          "resource": {
            "type": "string",
            "enum": [
              "incidents",
              "events",
              "points",
              "infrastructure",
              "providers",
              "jobs"
            ]
          },
          "public": {
            "type": "boolean",
            "const": true
          },
          "items": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SaasPublicIncidentV10"
                },
                {
                  "$ref": "#/components/schemas/SaasPublicEventV10"
                },
                {
                  "$ref": "#/components/schemas/PublicPoint"
                },
                {
                  "$ref": "#/components/schemas/InfrastructurePublic"
                },
                {
                  "$ref": "#/components/schemas/SaasPublicProviderV10"
                },
                {
                  "$ref": "#/components/schemas/SaasPublicJobV10"
                }
              ]
            },
            "maxItems": 100
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9900
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "next_offset": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "page": {
            "type": "integer",
            "minimum": 1
          },
          "per_page": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "has_more": {
            "type": "boolean"
          },
          "next_page": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "filters": {
            "type": "object",
            "required": [
              "q",
              "type",
              "status",
              "date_from",
              "date_to"
            ],
            "properties": {
              "q": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "date_from": {
                "$ref": "#/components/schemas/NullableTimestamp"
              },
              "date_to": {
                "$ref": "#/components/schemas/NullableTimestamp"
              },
              "lat": {
                "$ref": "#/components/schemas/Latitude"
              },
              "lng": {
                "$ref": "#/components/schemas/Longitude"
              },
              "radius_km": {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 100
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false,
        "description": "Wyłącznie rekordy jednej aktywnej organizacji portalu, ograniczone w SQL przed pobraniem. total dotyczy pasujących publicznych wyników po filtrach. Ponad 1000 kandydatów daje 422; brak cichego ucięcia globalnej listy. Nie ma tasks ani camera-events. Przy origin distance_km pochodzi tylko z publicznej pozycji.",
        "allOf": [
          {
            "if": {
              "properties": {
                "resource": {
                  "const": "incidents"
                }
              },
              "required": [
                "resource"
              ]
            },
            "then": {
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SaasPublicIncidentV10"
                  },
                  "maxItems": 100
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "resource": {
                  "const": "events"
                }
              },
              "required": [
                "resource"
              ]
            },
            "then": {
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SaasPublicEventV10"
                  },
                  "maxItems": 100
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "resource": {
                  "const": "points"
                }
              },
              "required": [
                "resource"
              ]
            },
            "then": {
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicPoint"
                  },
                  "maxItems": 100
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "resource": {
                  "const": "infrastructure"
                }
              },
              "required": [
                "resource"
              ]
            },
            "then": {
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InfrastructurePublic"
                  },
                  "maxItems": 100
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "resource": {
                  "const": "providers"
                }
              },
              "required": [
                "resource"
              ]
            },
            "then": {
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SaasPublicProviderV10"
                  },
                  "maxItems": 100
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "resource": {
                  "const": "jobs"
                }
              },
              "required": [
                "resource"
              ]
            },
            "then": {
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SaasPublicJobV10"
                  },
                  "maxItems": 100
                }
              }
            }
          }
        ]
      },
      "IdentityAppearanceThemeV10": {
        "type": "string",
        "enum": [
          "white",
          "dark",
          "warm"
        ]
      },
      "IdentityAppearanceFontV10": {
        "type": "string",
        "enum": [
          "normal",
          "large"
        ]
      },
      "IdentityLoginFormV10": {
        "type": "object",
        "required": [
          "email",
          "password"
        ],
        "properties": {
          "_csrf": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Token własnej sesji identity. Wymagany tutaj albo w X-CSRF-Token; nagłówek ma pierwszeństwo."
          },
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 254
          },
          "password": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "writeOnly": true
          },
          "name": {
            "type": "string"
          },
          "workspace_name": {
            "type": "string"
          },
          "accept_terms": {
            "type": "string",
            "enum": [
              "1"
            ]
          },
          "website": {
            "type": "string",
            "description": "Gdy opcjonalna pułapka formularza jest włączona, pole musi pozostać puste."
          },
          "confirm_human": {
            "type": "string",
            "enum": [
              "1"
            ],
            "description": "Gdy włączone przez operatora, wymagane jawne potwierdzenie; nie jest CAPTCHA ani WAF."
          }
        },
        "additionalProperties": false,
        "description": "Natywny formularz, limit 16 KiB. Pola tekstowe bez tablic, duplikatów i nieznanych nazw. CSRF w _csrf albo nagłówku obowiązkowy. Nie przyjmuje next, redirect_uri, state, request, challenge ani user_id; kontynuacja pochodzi tylko z sesji serwera."
      },
      "IdentityRegisterFormV10": {
        "type": "object",
        "required": [
          "email",
          "password",
          "name"
        ],
        "properties": {
          "_csrf": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Token własnej sesji identity. Wymagany tutaj albo w X-CSRF-Token; nagłówek ma pierwszeństwo."
          },
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 254
          },
          "password": {
            "type": "string",
            "minLength": 12,
            "maxLength": 128,
            "writeOnly": true
          },
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 100
          },
          "workspace_name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 100
          },
          "accept_terms": {
            "type": "string",
            "enum": [
              "1"
            ]
          },
          "website": {
            "type": "string",
            "description": "Gdy opcjonalna pułapka formularza jest włączona, pole musi pozostać puste."
          },
          "confirm_human": {
            "type": "string",
            "enum": [
              "1"
            ],
            "description": "Gdy włączone przez operatora, wymagane jawne potwierdzenie; nie jest CAPTCHA ani WAF."
          }
        },
        "additionalProperties": false,
        "description": "Limit 16 KiB. workspace_name domyślnie Mój zespół. Rejestracja może być wyłączona; accept_terms=1 obowiązkowe, jeżeli dokumenty prawne instalacji są gotowe. CSRF w _csrf albo X-CSRF-Token oraz dokładny Origin są wymagane."
      },
      "IdentityLogoutFormV10": {
        "type": "object",
        "required": [],
        "properties": {
          "_csrf": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Token własnej sesji identity. Wymagany tutaj albo w X-CSRF-Token; nagłówek ma pierwszeństwo."
          }
        },
        "additionalProperties": true,
        "description": "CSRF jest obowiązkowy w tym polu albo X-CSRF-Token. Zakończenie tylko bieżącej sesji centralnej; inne aplikacje mają osobne sesje. Dodatkowe pola nie są używane przez operację logout."
      },
      "IdentitySecuritySummaryV10": {
        "type": "object",
        "required": [
          "period_hours",
          "since",
          "observed_at",
          "counts",
          "retention_days",
          "maximum_rows",
          "gateway_enabled",
          "telemetry_configured",
          "trusted_proxy_configured",
          "note"
        ],
        "properties": {
          "period_hours": {
            "type": "integer",
            "minimum": 1,
            "maximum": 720
          },
          "since": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "observed_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "counts": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "action",
                "outcome",
                "network_source",
                "occurrences",
                "last_at"
              ],
              "properties": {
                "action": {
                  "type": "string",
                  "enum": [
                    "login",
                    "register",
                    "bridge"
                  ]
                },
                "outcome": {
                  "type": "string",
                  "enum": [
                    "success",
                    "failed",
                    "rate_limited",
                    "challenge_rejected"
                  ]
                },
                "network_source": {
                  "type": "string",
                  "enum": [
                    "remote_addr",
                    "trusted_header",
                    "unavailable",
                    "aggregate"
                  ]
                },
                "occurrences": {
                  "type": "integer",
                  "minimum": 1
                },
                "last_at": {
                  "$ref": "#/components/schemas/Timestamp"
                }
              },
              "additionalProperties": false
            }
          },
          "retention_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 90
          },
          "maximum_rows": {
            "type": "integer",
            "minimum": 50000,
            "maximum": 50000
          },
          "gateway_enabled": {
            "type": "boolean"
          },
          "telemetry_configured": {
            "type": "boolean"
          },
          "trusted_proxy_configured": {
            "type": "boolean"
          },
          "note": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "Tylko agregaty administratora platformy. Brak e-maili, adresów IP, identyfikatorów HMAC, haseł, kodów i tokenów. source remote_addr może oznaczać wspólnego pośrednika; to liczba prób, nie osób. Retencja ograniczona, nie pełny audyt WAF."
      },
      "CoreLogoutResultV10": {
        "type": "object",
        "required": [
          "logged_out",
          "central_logout_url"
        ],
        "properties": {
          "logged_out": {
            "type": "boolean",
            "const": true
          },
          "central_logout_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Klient ma po wylogowaniu przejść na central_logout_url, jeśli nie jest null. Tam użytkownik jawnie kończy centralną sesję; sam POST core nie może usunąć cookie innego hosta."
      },
      "ServiceDiscoveryV10": {
        "type": "object",
        "required": [
          "schema",
          "version",
          "name",
          "core",
          "services",
          "offer",
          "openapi",
          "catalog",
          "public_portal_api",
          "authentication",
          "privacy",
          "capabilities",
          "limits",
          "integrations",
          "on_premise"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "telemonit.discovery/v1"
          },
          "version": {
            "type": "string",
            "const": "0.14.0"
          },
          "name": {
            "type": "string",
            "const": "Telemonit"
          },
          "core": {
            "type": "string",
            "format": "uri"
          },
          "services": {
            "type": "object",
            "required": [
              "docs",
              "status",
              "get"
            ],
            "properties": {
              "docs": {
                "type": "string",
                "format": "uri"
              },
              "status": {
                "type": "string",
                "format": "uri"
              },
              "get": {
                "type": "string",
                "format": "uri"
              }
            },
            "additionalProperties": false
          },
          "offer": {
            "type": "string",
            "format": "uri"
          },
          "openapi": {
            "type": "string",
            "format": "uri"
          },
          "catalog": {
            "type": "string",
            "format": "uri"
          },
          "public_portal_api": {
            "type": "string",
            "const": "/api/saas/portals/{portal_id}/records"
          },
          "authentication": {
            "type": "string"
          },
          "privacy": {
            "type": "string"
          },
          "capabilities": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "tenant-portals",
                "domain-verification",
                "template-modules",
                "public-read-adapters",
                "permission-scoped-private-api",
                "incident-replay",
                "reviewed-map-sources",
                "community-meetings",
                "journeys-mileage",
                "partner-pages",
                "map-history",
                "field-work-planning",
                "scheduled-field-conditions"
              ]
            },
            "uniqueItems": true
          },
          "limits": {
            "type": "object",
            "required": [
              "not_full_oidc",
              "saas_checkout",
              "automatic_domain_tls_provisioning"
            ],
            "properties": {
              "not_full_oidc": {
                "type": "boolean",
                "const": true
              },
              "saas_checkout": {
                "type": "string",
                "const": "manual_review"
              },
              "automatic_domain_tls_provisioning": {
                "type": "boolean",
                "const": false
              }
            },
            "additionalProperties": false
          },
          "integrations": {
            "type": "string",
            "format": "uri"
          },
          "on_premise": {
            "type": "string",
            "format": "uri"
          }
        },
        "additionalProperties": false,
        "description": "Adresy pochodzą ze stałej konfiguracji operatora, nie visitor Host. Manifest opisuje integracje, nie potwierdza dostępności wszystkich wskazanych usług ani wpisu w wyszukiwarce/AI."
      },
      "IdentityHealthV10": {
        "type": "object",
        "required": [
          "status",
          "service"
        ],
        "properties": {
          "status": {
            "type": "string",
            "const": "ok"
          },
          "service": {
            "type": "string",
            "const": "telemonit-identity"
          }
        },
        "additionalProperties": false,
        "description": "Sonda skonfigurowanej powierzchni identity. Nie sprawdza bazy, logowania end-to-end, poczty ani operatorów zewnętrznych."
      },
      "SessionContextV11": {
        "type": "object",
        "required": [
          "user",
          "workspace",
          "scope",
          "permissions"
        ],
        "properties": {
          "user": {
            "type": "object",
            "required": [
              "id",
              "name",
              "email",
              "is_admin"
            ],
            "properties": {
              "id": {
                "$ref": "#/components/schemas/Id"
              },
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string",
                "format": "email"
              },
              "is_admin": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          },
          "workspace": {
            "$ref": "#/components/schemas/Workspace"
          },
          "scope": {
            "type": "string",
            "enum": [
              "workspace",
              "points"
            ]
          },
          "permissions": {
            "$ref": "#/components/schemas/ThinClientPermissionsV9"
          }
        },
        "additionalProperties": false,
        "description": "Bieżący kontekst sesji. Nie jest DTO /api/v1/me; brak tokenu CSRF i sekretów."
      },
      "PointChoiceV11": {
        "type": "object",
        "required": [
          "id",
          "name",
          "lat",
          "lng",
          "type"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "name": {
            "type": "string"
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "type": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "MemberChoiceV11": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PrivateAudienceV11": {
        "type": "object",
        "required": [],
        "properties": {
          "audience": {
            "type": "string",
            "enum": [
              "user",
              "team",
              "org"
            ]
          },
          "team_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100,
            "uniqueItems": true
          }
        },
        "additionalProperties": false,
        "description": "Prywatny zakres. Członkostwo, dostęp do punktu i zespołu są ponownie sprawdzane. Brak audience public."
      },
      "MapSourceContentV11": {
        "type": "object",
        "required": [
          "title",
          "description",
          "type",
          "status",
          "timezone",
          "venue",
          "topics",
          "source_url",
          "source_id",
          "source_label",
          "source_published_at",
          "starts_at",
          "ends_at",
          "lat",
          "lng",
          "all_day",
          "warnings"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "culture",
              "concert",
              "sport",
              "community",
              "training",
              "meeting",
              "market",
              "maintenance",
              "transport",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "const": "proposed"
          },
          "timezone": {
            "type": "string",
            "description": "Identyfikator IANA; domyślnie Europe/Warsaw, nie sam offset."
          },
          "venue": {
            "type": "string"
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "source_url": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          },
          "source_label": {
            "type": "string"
          },
          "source_published_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "starts_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "ends_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "lat": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Latitude"
              },
              {
                "type": "null"
              }
            ]
          },
          "lng": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Longitude"
              },
              {
                "type": "null"
              }
            ]
          },
          "all_day": {
            "type": "boolean"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "MapSourceSuggestionV11": {
        "type": "object",
        "required": [
          "title",
          "summary",
          "kind",
          "type",
          "occurred_at",
          "ends_at",
          "confidence",
          "locations",
          "uncertainties",
          "review_required",
          "location_verified",
          "causality_established"
        ],
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "summary": {
            "type": "string",
            "maxLength": 2000
          },
          "kind": {
            "type": "string",
            "enum": [
              "incident",
              "event",
              "unclear"
            ]
          },
          "type": {
            "type": "string",
            "maxLength": 40
          },
          "occurred_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "ends_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "confidence": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "locations": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "label",
                "lat",
                "lng",
                "precision",
                "source_excerpt",
                "verified"
              ],
              "properties": {
                "label": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 180
                },
                "lat": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Latitude"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lng": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Longitude"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "precision": {
                  "type": "string",
                  "enum": [
                    "region",
                    "city",
                    "street",
                    "site",
                    "unknown"
                  ]
                },
                "source_excerpt": {
                  "type": "string",
                  "maxLength": 300
                },
                "verified": {
                  "type": "boolean",
                  "const": false
                }
              },
              "additionalProperties": false
            },
            "maxItems": 3
          },
          "uncertainties": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 400
            },
            "maxItems": 10
          },
          "review_required": {
            "type": "boolean",
            "const": true
          },
          "location_verified": {
            "type": "boolean",
            "const": false
          },
          "causality_established": {
            "type": "boolean",
            "const": false
          }
        },
        "additionalProperties": false,
        "description": "Niezweryfikowana sugestia, nie geokodowanie referencyjne ani publikacja. Czas publikacji źródła nie zastępuje czasu zdarzenia; współrzędne wymagają oceny człowieka."
      },
      "MapSourceAnalysisV11": {
        "type": "object",
        "required": [
          "id",
          "item_id",
          "status",
          "model",
          "error_code",
          "created_at",
          "started_at",
          "finished_at",
          "attempts",
          "usage",
          "actual_charge_minor"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "item_id": {
            "$ref": "#/components/schemas/Id"
          },
          "status": {
            "type": "string",
            "enum": [
              "awaiting_configuration",
              "queued",
              "processing",
              "completed",
              "failed",
              "cancelled",
              "needs_reconciliation"
            ]
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "error_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "started_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "finished_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "attempts": {
            "type": "integer",
            "minimum": 0
          },
          "usage": {
            "oneOf": [
              {
                "type": "object",
                "required": [],
                "properties": {
                  "input_tokens": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "output_tokens": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "maxItems": 0
              }
            ],
            "description": "PHP serializuje pustą kolekcję asocjacyjną jako []."
          },
          "actual_charge_minor": {
            "type": "null"
          }
        },
        "additionalProperties": false,
        "description": "Kolejka lokalna. completed oznacza wyłącznie gotową sugestię. needs_reconciliation nie jest automatycznie ponawiane. Brak potwierdzonej kwoty dostawcy jest null, nie zerem."
      },
      "MapSourceReviewRecordV11": {
        "type": "object",
        "required": [
          "title",
          "type",
          "lat",
          "lng",
          "occurred_at",
          "ends_at",
          "source_item_hash",
          "human_verified"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "occurred_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "ends_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "source_item_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "human_verified": {
            "type": "boolean",
            "const": true
          }
        },
        "additionalProperties": false
      },
      "MapSourceItemV11": {
        "type": "object",
        "required": [
          "id",
          "feed_id",
          "format",
          "source_url",
          "source_label",
          "source_id",
          "source_published_at",
          "fetched_at",
          "feed_hash",
          "item_hash",
          "license_text",
          "state",
          "imported_kind",
          "imported_id",
          "imported_at",
          "reviewed_at",
          "expires_at",
          "redacted_at",
          "created_at",
          "version",
          "content",
          "suggestion",
          "review",
          "analysis",
          "publication",
          "expired"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "feed_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "rss",
              "atom",
              "json",
              "ics"
            ]
          },
          "source_url": {
            "type": "string"
          },
          "source_label": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          },
          "source_published_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "fetched_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "feed_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "item_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "license_text": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "enum": [
              "staged",
              "imported",
              "rejected"
            ]
          },
          "imported_kind": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "incident",
                  "event"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "imported_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "imported_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "reviewed_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "redacted_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "content": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/MapSourceContentV11"
              },
              {
                "type": "array",
                "maxItems": 0
              }
            ]
          },
          "suggestion": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MapSourceSuggestionV11"
              },
              {
                "type": "null"
              }
            ]
          },
          "review": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MapSourceReviewRecordV11"
              },
              {
                "type": "null"
              }
            ]
          },
          "analysis": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MapSourceAnalysisV11"
              },
              {
                "type": "null"
              }
            ]
          },
          "publication": {
            "type": "string",
            "const": "private_staging"
          },
          "expired": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Po wygaśnięciu content=[] oraz suggestion/review=null już przy odczycie, niezależnie od uruchomienia cron. Zachowana proweniencja nie jest publiczną publikacją."
      },
      "MapSourceFeedV11": {
        "type": "object",
        "required": [
          "id",
          "name",
          "feed_url",
          "format",
          "license_text",
          "last_fetched_at",
          "last_state",
          "error_code",
          "next_run_at",
          "version",
          "enabled",
          "interval_minutes"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 160
          },
          "feed_url": {
            "type": "string",
            "format": "uri"
          },
          "format": {
            "type": "string",
            "enum": [
              "rss",
              "atom",
              "json",
              "ics"
            ]
          },
          "license_text": {
            "type": "string",
            "minLength": 3,
            "maxLength": 1000
          },
          "last_fetched_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "last_state": {
            "type": "string",
            "enum": [
              "not_fetched",
              "staged",
              "error"
            ]
          },
          "error_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "next_run_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "enabled": {
            "type": "boolean"
          },
          "interval_minutes": {
            "type": "integer",
            "minimum": 15,
            "maximum": 10080
          }
        },
        "additionalProperties": false
      },
      "MapSourceDashboardV11": {
        "type": "object",
        "required": [
          "workspace_id",
          "items",
          "total",
          "offset",
          "limit",
          "next_offset",
          "feeds",
          "capabilities",
          "analysis_usage",
          "incident_types",
          "event_types"
        ],
        "properties": {
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapSourceItemV11"
            },
            "maxItems": 50
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "type": "integer",
            "minimum": 50,
            "maximum": 50
          },
          "next_offset": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "feeds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapSourceFeedV11"
            },
            "maxItems": 50
          },
          "capabilities": {
            "type": "object",
            "required": [
              "file_formats",
              "remote_fetch_enabled",
              "allowed_feed_hosts",
              "ai_configured",
              "xml_available",
              "max_bytes",
              "max_items",
              "automatic_publication"
            ],
            "properties": {
              "file_formats": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "rss",
                    "atom",
                    "json",
                    "ics"
                  ]
                }
              },
              "remote_fetch_enabled": {
                "type": "boolean"
              },
              "allowed_feed_hosts": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "ai_configured": {
                "type": "boolean"
              },
              "xml_available": {
                "type": "boolean"
              },
              "max_bytes": {
                "type": "integer",
                "minimum": 262144,
                "maximum": 262144
              },
              "max_items": {
                "type": "integer",
                "minimum": 100,
                "maximum": 100
              },
              "automatic_publication": {
                "type": "boolean",
                "const": false
              }
            },
            "additionalProperties": false
          },
          "analysis_usage": {
            "type": "object",
            "required": [
              "requests",
              "attempts",
              "actual_charge_minor",
              "scope",
              "daily_limit",
              "monthly_limit"
            ],
            "properties": {
              "requests": {
                "type": "integer",
                "minimum": 0
              },
              "attempts": {
                "type": "integer",
                "minimum": 0
              },
              "actual_charge_minor": {
                "type": "null"
              },
              "scope": {
                "type": "string",
                "const": "source_extraction_only"
              },
              "daily_limit": {
                "type": "integer",
                "minimum": 0
              },
              "monthly_limit": {
                "type": "integer",
                "minimum": 0
              }
            },
            "additionalProperties": false
          },
          "incident_types": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "event_types": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "MapSourceImportInputV11": {
        "type": "object",
        "required": [
          "content",
          "source_label",
          "license_text",
          "rights_confirmed"
        ],
        "properties": {
          "format": {
            "type": "string",
            "enum": [
              "rss",
              "atom",
              "json",
              "ics"
            ]
          },
          "content": {
            "type": "string",
            "maxLength": 262144,
            "description": "UTF-8, maksymalnie 256 KiB bajtów i 100 elementów. XML bez DTD/encji."
          },
          "source_url": {
            "type": "string",
            "maxLength": 2048
          },
          "source_label": {
            "type": "string",
            "minLength": 2,
            "maxLength": 160
          },
          "license_text": {
            "type": "string",
            "minLength": 3,
            "maxLength": 1000
          },
          "rights_confirmed": {
            "type": "boolean",
            "const": true
          },
          "timezone": {
            "type": "string",
            "description": "Identyfikator IANA; domyślnie Europe/Warsaw, nie sam offset."
          }
        },
        "additionalProperties": false
      },
      "MapSourceImportResultV11": {
        "type": "object",
        "required": [
          "items",
          "content_hash",
          "publication",
          "ai_requested",
          "expires_at"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "created"
              ],
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "created": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "content_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "publication": {
            "type": "string",
            "const": "none"
          },
          "ai_requested": {
            "type": "boolean",
            "const": false
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": false,
        "description": "Dedup według źródła i skrótu treści; zmieniona treść tworzy osobną propozycję. Import nie wywołuje AI ani nie publikuje."
      },
      "MapSourceFeedCreateV11": {
        "type": "object",
        "required": [
          "name",
          "feed_url",
          "license_text",
          "rights_confirmed",
          "enabled",
          "request_id"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 160
          },
          "feed_url": {
            "type": "string",
            "format": "uri",
            "description": "HTTPS/443, dokładny host z allowlist operatora, bez danych logowania/IP/fragmentu. Brak automatycznych przekierowań."
          },
          "format": {
            "type": "string",
            "enum": [
              "rss",
              "atom",
              "json",
              "ics"
            ]
          },
          "license_text": {
            "type": "string",
            "minLength": 3,
            "maxLength": 1000
          },
          "rights_confirmed": {
            "type": "boolean",
            "const": true
          },
          "enabled": {
            "type": "boolean"
          },
          "interval_minutes": {
            "type": "integer",
            "minimum": 15,
            "maximum": 10080,
            "default": 60
          }
        },
        "additionalProperties": false
      },
      "MapSourceFeedUpdateV11": {
        "type": "object",
        "required": [
          "name",
          "feed_url",
          "license_text",
          "rights_confirmed",
          "enabled",
          "version"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 160
          },
          "feed_url": {
            "type": "string",
            "format": "uri",
            "description": "HTTPS/443, dokładny host z allowlist operatora, bez danych logowania/IP/fragmentu. Brak automatycznych przekierowań."
          },
          "format": {
            "type": "string",
            "enum": [
              "rss",
              "atom",
              "json",
              "ics"
            ]
          },
          "license_text": {
            "type": "string",
            "minLength": 3,
            "maxLength": 1000
          },
          "rights_confirmed": {
            "type": "boolean",
            "const": true
          },
          "enabled": {
            "type": "boolean"
          },
          "interval_minutes": {
            "type": "integer",
            "minimum": 15,
            "maximum": 10080,
            "default": 60
          }
        },
        "additionalProperties": false,
        "description": "PATCH wymaga całego zestawu ustawień; nie jest częściowym merge patch."
      },
      "MapSourceAnalysisInputV11": {
        "type": "object",
        "required": [
          "request_id",
          "version",
          "ai_data_consent"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "ai_data_consent": {
            "type": "boolean",
            "const": true
          },
          "media_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 1,
            "uniqueItems": true,
            "description": "Wyłącznie dostępne istniejące zdjęcie; żadnych zewnętrznych URL."
          },
          "retry_confirmed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "MapSourceReviewInputV11": {
        "type": "object",
        "required": [
          "request_id",
          "version",
          "kind",
          "title",
          "description",
          "lat",
          "lng",
          "occurred_at",
          "location_confirmed",
          "time_confirmed",
          "facts_reviewed",
          "rights_confirmed"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "kind": {
            "type": "string",
            "enum": [
              "incident",
              "event"
            ]
          },
          "title": {
            "type": "string",
            "minLength": 2,
            "maxLength": 160
          },
          "description": {
            "type": "string",
            "minLength": 3,
            "maxLength": 4000
          },
          "type": {
            "type": "string",
            "default": "other"
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "occurred_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "ends_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "location_confirmed": {
            "type": "boolean",
            "const": true
          },
          "time_confirmed": {
            "type": "boolean",
            "const": true
          },
          "facts_reviewed": {
            "type": "boolean",
            "const": true
          },
          "rights_confirmed": {
            "type": "boolean",
            "const": true
          }
        },
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "incident"
                }
              }
            },
            "then": {
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "equipment_failure",
                    "wifi_outage",
                    "it_outage",
                    "ransomware",
                    "cyber_incident",
                    "break_in",
                    "vandalism",
                    "fire",
                    "accident",
                    "road_closure",
                    "detour",
                    "flood",
                    "power_outage",
                    "water_leak",
                    "observation",
                    "other"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "event"
                }
              }
            },
            "then": {
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "culture",
                    "concert",
                    "sport",
                    "community",
                    "training",
                    "meeting",
                    "market",
                    "maintenance",
                    "transport",
                    "other"
                  ]
                }
              }
            }
          }
        ]
      },
      "MapSourceReviewResultV11": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "source_item_id",
          "published",
          "audience",
          "source_url",
          "source_hash",
          "review_required_before_publication"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "kind": {
            "type": "string",
            "enum": [
              "incident",
              "event"
            ]
          },
          "source_item_id": {
            "$ref": "#/components/schemas/Id"
          },
          "published": {
            "type": "boolean",
            "const": false
          },
          "audience": {
            "type": "string",
            "const": "user"
          },
          "source_url": {
            "type": "string"
          },
          "source_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "review_required_before_publication": {
            "type": "boolean",
            "const": true
          },
          "duplicate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PartnerPolicyDetailsV11": {
        "type": "object",
        "required": [
          "controller_name",
          "controller_address",
          "controller_email",
          "legal_basis_text",
          "retention_text",
          "processors_text",
          "ai_usage_text",
          "transfers_text",
          "rights_contact_text",
          "review_reference"
        ],
        "properties": {
          "controller_name": {
            "type": "string",
            "maxLength": 200
          },
          "controller_address": {
            "type": "string",
            "maxLength": 500
          },
          "controller_email": {
            "type": "string",
            "maxLength": 254
          },
          "legal_basis_text": {
            "type": "string",
            "maxLength": 3000
          },
          "retention_text": {
            "type": "string",
            "maxLength": 3000
          },
          "processors_text": {
            "type": "string",
            "maxLength": 3000
          },
          "ai_usage_text": {
            "type": "string",
            "maxLength": 3000
          },
          "transfers_text": {
            "type": "string",
            "maxLength": 3000
          },
          "rights_contact_text": {
            "type": "string",
            "maxLength": 2000
          },
          "review_reference": {
            "type": "string",
            "maxLength": 500
          }
        },
        "additionalProperties": false
      },
      "PartnerPolicyChecksV11": {
        "type": "object",
        "required": [
          "controller_identified",
          "lawful_basis_reviewed",
          "retention_reviewed",
          "dsr_process_ready",
          "processor_contracts_reviewed",
          "ai_disclosure_reviewed",
          "transfers_reviewed",
          "incident_procedure_reviewed"
        ],
        "properties": {
          "controller_identified": {
            "type": "boolean"
          },
          "lawful_basis_reviewed": {
            "type": "boolean"
          },
          "retention_reviewed": {
            "type": "boolean"
          },
          "dsr_process_ready": {
            "type": "boolean"
          },
          "processor_contracts_reviewed": {
            "type": "boolean"
          },
          "ai_disclosure_reviewed": {
            "type": "boolean"
          },
          "transfers_reviewed": {
            "type": "boolean"
          },
          "incident_procedure_reviewed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PartnerPolicyV11": {
        "type": "object",
        "required": [
          "version",
          "status",
          "details",
          "acknowledgements",
          "reviewed_at",
          "reviewed_by",
          "certification",
          "notice"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "status": {
            "type": "string",
            "enum": [
              "review_needed",
              "declared"
            ]
          },
          "details": {
            "$ref": "#/components/schemas/PartnerPolicyDetailsV11"
          },
          "acknowledgements": {
            "$ref": "#/components/schemas/PartnerPolicyChecksV11"
          },
          "reviewed_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "reviewed_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "certification": {
            "type": "boolean",
            "const": false
          },
          "notice": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "Deklaracja właściciela z osobą i datą przeglądu, nie certyfikat RODO/AI Act. declared wymaga wszystkich pól i potwierdzeń, w tym poprawnego email."
      },
      "PartnerPolicyInputV11": {
        "type": "object",
        "required": [
          "version",
          "status",
          "details",
          "acknowledgements"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "status": {
            "type": "string",
            "enum": [
              "review_needed",
              "declared"
            ]
          },
          "details": {
            "$ref": "#/components/schemas/PartnerPolicyDetailsV11"
          },
          "acknowledgements": {
            "$ref": "#/components/schemas/PartnerPolicyChecksV11"
          }
        },
        "additionalProperties": false
      },
      "PartnerPageV11": {
        "type": "object",
        "required": [
          "id",
          "portal_id",
          "slug",
          "title",
          "summary",
          "body",
          "version",
          "published_version",
          "published_at",
          "published",
          "has_unpublished_changes",
          "updated_at",
          "format"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "portal_id": {
            "$ref": "#/components/schemas/Id"
          },
          "slug": {
            "type": "string",
            "enum": [
              "about",
              "contact",
              "privacy",
              "terms",
              "accessibility"
            ]
          },
          "title": {
            "type": "string",
            "maxLength": 180
          },
          "summary": {
            "type": "string",
            "maxLength": 350
          },
          "body": {
            "type": "string",
            "maxLength": 30000
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "published_version": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647,
                "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
              },
              {
                "type": "null"
              }
            ]
          },
          "published_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "published": {
            "type": "boolean"
          },
          "has_unpublished_changes": {
            "type": "boolean"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "format": {
            "type": "string",
            "const": "plain_text"
          }
        },
        "additionalProperties": false,
        "description": "Prywatny bieżący szkic. published opisuje osobny zatwierdzony snapshot, a nie automatyczną publikację zmian."
      },
      "PartnerDashboardV11": {
        "type": "object",
        "required": [
          "workspace_id",
          "portals",
          "portal_id",
          "page_types",
          "checks",
          "pages",
          "policy"
        ],
        "properties": {
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "portals": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "template"
              ],
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "name": {
                  "type": "string"
                },
                "template": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "portal_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "page_types": {
            "type": "object",
            "required": [
              "about",
              "contact",
              "privacy",
              "terms",
              "accessibility"
            ],
            "properties": {
              "about": {
                "type": "string"
              },
              "contact": {
                "type": "string"
              },
              "privacy": {
                "type": "string"
              },
              "terms": {
                "type": "string"
              },
              "accessibility": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "checks": {
            "type": "object",
            "required": [
              "controller_identified",
              "lawful_basis_reviewed",
              "retention_reviewed",
              "dsr_process_ready",
              "processor_contracts_reviewed",
              "ai_disclosure_reviewed",
              "transfers_reviewed",
              "incident_procedure_reviewed"
            ],
            "properties": {
              "controller_identified": {
                "type": "string"
              },
              "lawful_basis_reviewed": {
                "type": "string"
              },
              "retention_reviewed": {
                "type": "string"
              },
              "dsr_process_ready": {
                "type": "string"
              },
              "processor_contracts_reviewed": {
                "type": "string"
              },
              "ai_disclosure_reviewed": {
                "type": "string"
              },
              "transfers_reviewed": {
                "type": "string"
              },
              "incident_procedure_reviewed": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "pages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartnerPageV11"
            },
            "maxItems": 5
          },
          "policy": {
            "$ref": "#/components/schemas/PartnerPolicyV11"
          }
        },
        "additionalProperties": false
      },
      "PartnerPageInputV11": {
        "type": "object",
        "required": [
          "version",
          "title",
          "body"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647,
            "description": "0 tworzy stronę; aktualna dodatnia wersja edytuje."
          },
          "title": {
            "type": "string",
            "minLength": 2,
            "maxLength": 180
          },
          "summary": {
            "type": "string",
            "maxLength": 350
          },
          "body": {
            "type": "string",
            "minLength": 10,
            "maxLength": 30000
          }
        },
        "additionalProperties": false
      },
      "PartnerPublicationInputV11": {
        "type": "object",
        "required": [
          "version",
          "published"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "published": {
            "type": "boolean"
          },
          "publication_confirmed": {
            "type": "boolean"
          },
          "legal_review_confirmed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Publikacja wymaga publication_confirmed=true; privacy/terms także declared policy i legal_review_confirmed=true. published=false cofa widoczność, nie usuwa szkicu ani historii."
      },
      "PartnerPageHistoryV11": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "version",
            "action",
            "actor_id",
            "created_at",
            "snapshot"
          ],
          "properties": {
            "version": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647,
              "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
            },
            "action": {
              "type": "string",
              "enum": [
                "draft_saved",
                "published",
                "unpublished"
              ]
            },
            "actor_id": {
              "$ref": "#/components/schemas/Id"
            },
            "created_at": {
              "$ref": "#/components/schemas/Timestamp"
            },
            "snapshot": {
              "$ref": "#/components/schemas/PartnerPageV11"
            }
          },
          "additionalProperties": false
        },
        "maxItems": 30
      },
      "PartnerApprovedSnapshotV11": {
        "type": "object",
        "required": [
          "title",
          "summary",
          "body",
          "version",
          "format",
          "sha256"
        ],
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 180
          },
          "summary": {
            "type": "string",
            "maxLength": 350
          },
          "body": {
            "type": "string",
            "maxLength": 30000
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "format": {
            "type": "string",
            "const": "plain_text"
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          }
        },
        "additionalProperties": false
      },
      "PartnerPublicPageV11": {
        "type": "object",
        "required": [
          "schema",
          "portal_id",
          "slug",
          "title",
          "summary",
          "body",
          "version",
          "format",
          "sha256",
          "published_at",
          "canonical_url"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "telemonit.partner-page/v1"
          },
          "portal_id": {
            "$ref": "#/components/schemas/Id"
          },
          "slug": {
            "type": "string",
            "enum": [
              "about",
              "contact",
              "privacy",
              "terms",
              "accessibility"
            ]
          },
          "title": {
            "type": "string",
            "maxLength": 180
          },
          "summary": {
            "type": "string",
            "maxLength": 350
          },
          "body": {
            "type": "string",
            "maxLength": 30000
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "format": {
            "type": "string",
            "const": "plain_text"
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "published_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "canonical_url": {
            "type": "string",
            "format": "uri"
          }
        },
        "additionalProperties": false,
        "description": "Minimalny osobno opublikowany snapshot. Bez aktora, email konta, deklaracji, szkicu lub historii. Każdy odczyt ponownie sprawdza aktywny portal/plan."
      },
      "PartnerPublicPageSummaryV11": {
        "type": "object",
        "required": [
          "schema",
          "portal_id",
          "slug",
          "title",
          "summary",
          "version",
          "format",
          "sha256",
          "published_at",
          "canonical_url"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "telemonit.partner-page/v1"
          },
          "portal_id": {
            "$ref": "#/components/schemas/Id"
          },
          "slug": {
            "type": "string",
            "enum": [
              "about",
              "contact",
              "privacy",
              "terms",
              "accessibility"
            ]
          },
          "title": {
            "type": "string",
            "maxLength": 180
          },
          "summary": {
            "type": "string",
            "maxLength": 350
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "format": {
            "type": "string",
            "const": "plain_text"
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "published_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "canonical_url": {
            "type": "string",
            "format": "uri"
          }
        },
        "additionalProperties": false
      },
      "PartnerPublicPagesV11": {
        "type": "object",
        "required": [
          "portal_id",
          "items"
        ],
        "properties": {
          "portal_id": {
            "$ref": "#/components/schemas/Id"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartnerPublicPageSummaryV11"
            },
            "maxItems": 5
          }
        },
        "additionalProperties": false
      },
      "ReplaySampleV11": {
        "type": "object",
        "required": [
          "time",
          "lat",
          "lng"
        ],
        "properties": {
          "time": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
            "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
          },
          "lat": {
            "type": "number",
            "minimum": -85,
            "maximum": 85
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "accuracy_m": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 100000
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ReplayTrackInputV11": {
        "type": "object",
        "required": [
          "id",
          "label",
          "source_label",
          "samples"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60,
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,59}$"
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "kind": {
            "type": "string",
            "enum": [
              "vehicle",
              "person",
              "device",
              "other"
            ],
            "default": "vehicle"
          },
          "basis": {
            "type": "string",
            "enum": [
              "measured",
              "manual",
              "inferred"
            ],
            "default": "manual"
          },
          "source_label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240
          },
          "source_evidence_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 60,
                "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,59}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "interpolation": {
            "type": "string",
            "enum": [
              "none",
              "linear"
            ],
            "default": "none"
          },
          "max_gap_seconds": {
            "type": "number",
            "minimum": 0.1,
            "maximum": 60,
            "default": 5
          },
          "samples": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplaySampleV11"
            },
            "minItems": 1,
            "maxItems": 2000
          }
        },
        "additionalProperties": false
      },
      "ReplayTrackV11": {
        "type": "object",
        "required": [
          "id",
          "label",
          "kind",
          "basis",
          "source_label",
          "source_evidence_id",
          "interpolation",
          "max_gap_seconds",
          "samples"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60,
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,59}$"
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "kind": {
            "type": "string",
            "enum": [
              "vehicle",
              "person",
              "device",
              "other"
            ],
            "default": "vehicle"
          },
          "basis": {
            "type": "string",
            "enum": [
              "measured",
              "manual",
              "inferred"
            ],
            "default": "manual"
          },
          "source_label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240
          },
          "source_evidence_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 60,
                "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,59}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "interpolation": {
            "type": "string",
            "enum": [
              "none",
              "linear"
            ],
            "default": "none"
          },
          "max_gap_seconds": {
            "type": "number",
            "minimum": 0.1,
            "maximum": 60,
            "default": 5
          },
          "samples": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplaySampleV11"
            },
            "minItems": 1,
            "maxItems": 2000
          }
        },
        "additionalProperties": false,
        "description": "Próbki mają rosnący niepowtarzający się czas; linear jest jawnie oznaczonym oszacowaniem tylko pomiędzy próbkami w max_gap_seconds, bez ekstrapolacji."
      },
      "ReplayAnnotationInputV11": {
        "type": "object",
        "required": [
          "id",
          "time",
          "text"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60,
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,59}$"
          },
          "time": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
            "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
          },
          "end_time": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
            "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 600
          },
          "basis": {
            "type": "string",
            "enum": [
              "observation",
              "statement",
              "hypothesis"
            ],
            "default": "statement"
          },
          "evidence_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 60,
                "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,59}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ReplayAnnotationV11": {
        "type": "object",
        "required": [
          "id",
          "time",
          "end_time",
          "text",
          "basis",
          "evidence_id"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60,
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,59}$"
          },
          "time": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
            "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
          },
          "end_time": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
            "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 600
          },
          "basis": {
            "type": "string",
            "enum": [
              "observation",
              "statement",
              "hypothesis"
            ],
            "default": "statement"
          },
          "evidence_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 60,
                "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,59}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ReplayDocumentV11": {
        "type": "object",
        "required": [
          "title",
          "description",
          "tracks",
          "annotations",
          "evidence_ids",
          "media_ids",
          "narration_evidence_id"
        ],
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "description": {
            "type": "string",
            "maxLength": 4000
          },
          "tracks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplayTrackV11"
            },
            "maxItems": 8
          },
          "annotations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplayAnnotationV11"
            },
            "maxItems": 100
          },
          "evidence_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60,
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,59}$"
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "media_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60,
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,59}$"
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "narration_evidence_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 60,
                "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,59}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Całe opracowanie: <=512 KiB, <=2000 próbek łącznie, <=24 h. Maksima poszczególnych tablic nie znoszą limitu całości."
      },
      "ReplayDocumentInputV11": {
        "type": "object",
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "description": {
            "type": "string",
            "maxLength": 4000
          },
          "tracks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplayTrackInputV11"
            },
            "maxItems": 8
          },
          "annotations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplayAnnotationInputV11"
            },
            "maxItems": 100
          },
          "evidence_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60,
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,59}$"
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "media_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60,
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,59}$"
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "narration_evidence_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 60,
                "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,59}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ReplayRangeV11": {
        "type": "object",
        "required": [
          "start_ms",
          "end_ms",
          "starts_at",
          "ends_at"
        ],
        "properties": {
          "start_ms": {
            "type": "integer",
            "minimum": 0
          },
          "end_ms": {
            "type": "integer",
            "minimum": 0
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
            "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
            "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
          }
        },
        "additionalProperties": false
      },
      "ReplayEvidenceMetadataV11": {
        "type": "object",
        "required": [
          "source_authenticity_verified"
        ],
        "properties": {
          "format": {
            "type": "string",
            "enum": [
              "json",
              "geojson",
              "gpx"
            ]
          },
          "sample_count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2000
          },
          "samples_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "time_basis": {
            "type": "string",
            "const": "source_declared"
          },
          "source_authenticity_verified": {
            "type": "boolean",
            "const": false
          },
          "width": {
            "type": "integer",
            "minimum": 1,
            "maximum": 12000
          },
          "height": {
            "type": "integer",
            "minimum": 1,
            "maximum": 12000
          },
          "duration_seconds": {
            "type": "number",
            "minimum": 0,
            "maximum": 600,
            "exclusiveMinimum": 0
          },
          "video": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "codec",
                  "width",
                  "height"
                ],
                "properties": {
                  "codec": {
                    "type": "string",
                    "enum": [
                      "h264",
                      "hevc",
                      "vp8",
                      "vp9",
                      "av1",
                      "mjpeg"
                    ]
                  },
                  "width": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 3840
                  },
                  "height": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 3840
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "has_audio": {
            "type": "boolean"
          },
          "captured_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
                "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
              },
              {
                "type": "null"
              }
            ]
          },
          "capture_time_basis": {
            "type": "string",
            "const": "user_declared"
          },
          "clock_offset_ms": {
            "type": "integer",
            "minimum": -86400000,
            "maximum": 86400000
          },
          "source_label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240
          }
        },
        "additionalProperties": false,
        "description": "Metadane zależą od kind: track ma format/próbki/hash; photo wymiary; video/audio duration/video/has_audio. Zapis mediów dodaje jawny czas/korektę/opis źródła."
      },
      "ReplayEvidenceV11": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "mime",
          "original_name",
          "sha256",
          "size_bytes",
          "metadata",
          "created_at",
          "expires_at",
          "url"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "kind": {
            "type": "string",
            "enum": [
              "track",
              "photo",
              "video",
              "audio"
            ]
          },
          "mime": {
            "type": "string"
          },
          "original_name": {
            "type": "string",
            "maxLength": 180
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "size_bytes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 67108864
          },
          "metadata": {
            "$ref": "#/components/schemas/ReplayEvidenceMetadataV11"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "url": {
            "type": "string",
            "description": "Autoryzowany względny URL źródła, bez ścieżki dyskowej. Także Bearer przez ten endpoint replay."
          }
        },
        "additionalProperties": false
      },
      "ReplayEvidenceResultV11": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "mime",
          "original_name",
          "sha256",
          "size_bytes",
          "metadata",
          "created_at",
          "expires_at",
          "url"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "kind": {
            "type": "string",
            "enum": [
              "track",
              "photo",
              "video",
              "audio"
            ]
          },
          "mime": {
            "type": "string"
          },
          "original_name": {
            "type": "string",
            "maxLength": 180
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "size_bytes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 67108864
          },
          "metadata": {
            "$ref": "#/components/schemas/ReplayEvidenceMetadataV11"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "url": {
            "type": "string",
            "description": "Autoryzowany względny URL źródła, bez ścieżki dyskowej. Także Bearer przez ten endpoint replay."
          },
          "duplicate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ReplayMediaReferenceV11": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "mime",
          "sha256",
          "representation",
          "expires_at",
          "url"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "kind": {
            "type": "string"
          },
          "mime": {
            "type": "string"
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "representation": {
            "type": "string",
            "enum": [
              "sanitized_preview",
              "authorized_attachment"
            ]
          },
          "expires_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "url": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "Odwołanie do istniejącego załącznika punktu. URL /api/media nadal wymaga własnego kontraktu sesji, nie zakresu replay."
      },
      "ReplayReferencesV11": {
        "type": "object",
        "required": [
          "evidence",
          "media"
        ],
        "properties": {
          "evidence": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplayEvidenceV11"
            },
            "maxItems": 20
          },
          "media": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplayMediaReferenceV11"
            },
            "maxItems": 20
          }
        },
        "additionalProperties": false
      },
      "ReplayCapabilitiesV11": {
        "type": "object",
        "required": [
          "json",
          "geojson",
          "gpx_import",
          "vtt",
          "srt",
          "pdf",
          "gif",
          "mp4",
          "video_frames",
          "audio_narration",
          "oqllm_tts",
          "qualified_signature",
          "external_tiles_in_export",
          "notice"
        ],
        "properties": {
          "json": {
            "type": "boolean"
          },
          "geojson": {
            "type": "boolean"
          },
          "gpx_import": {
            "type": "boolean"
          },
          "vtt": {
            "type": "boolean"
          },
          "srt": {
            "type": "boolean"
          },
          "pdf": {
            "type": "boolean"
          },
          "gif": {
            "type": "boolean"
          },
          "mp4": {
            "type": "boolean"
          },
          "video_frames": {
            "type": "boolean"
          },
          "audio_narration": {
            "type": "boolean"
          },
          "oqllm_tts": {
            "type": "boolean",
            "const": false
          },
          "qualified_signature": {
            "type": "boolean",
            "const": false
          },
          "external_tiles_in_export": {
            "type": "boolean",
            "const": false
          },
          "notice": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ReplayCurrentV11": {
        "type": "object",
        "required": [
          "incident",
          "workspace_id",
          "version",
          "expires_at",
          "document",
          "range",
          "references",
          "available_evidence",
          "snapshots",
          "capabilities",
          "notice",
          "max_retention_days"
        ],
        "properties": {
          "incident": {
            "type": "object",
            "required": [
              "id",
              "title",
              "type",
              "can_edit"
            ],
            "properties": {
              "id": {
                "$ref": "#/components/schemas/Id"
              },
              "title": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "can_edit": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "expires_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "document": {
            "$ref": "#/components/schemas/ReplayDocumentV11"
          },
          "range": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReplayRangeV11"
              },
              {
                "type": "null"
              }
            ]
          },
          "references": {
            "$ref": "#/components/schemas/ReplayReferencesV11"
          },
          "available_evidence": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplayEvidenceV11"
            },
            "maxItems": 40
          },
          "snapshots": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "sha256",
                "created_at",
                "expires_at",
                "document_version",
                "attestations"
              ],
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "created_at": {
                  "$ref": "#/components/schemas/Timestamp"
                },
                "expires_at": {
                  "$ref": "#/components/schemas/Timestamp"
                },
                "document_version": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647,
                  "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
                },
                "attestations": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            "maxItems": 50
          },
          "capabilities": {
            "$ref": "#/components/schemas/ReplayCapabilitiesV11"
          },
          "notice": {
            "type": "string"
          },
          "max_retention_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 3650
          }
        },
        "additionalProperties": false
      },
      "ReplaySaveInputV11": {
        "type": "object",
        "required": [
          "request_id",
          "version",
          "document"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "document": {
            "$ref": "#/components/schemas/ReplayDocumentInputV11"
          }
        },
        "additionalProperties": false
      },
      "ReplaySaveResultV11": {
        "type": "object",
        "required": [
          "incident",
          "workspace_id",
          "version",
          "expires_at",
          "document",
          "range",
          "references",
          "available_evidence",
          "snapshots",
          "capabilities",
          "notice",
          "max_retention_days"
        ],
        "properties": {
          "incident": {
            "type": "object",
            "required": [
              "id",
              "title",
              "type",
              "can_edit"
            ],
            "properties": {
              "id": {
                "$ref": "#/components/schemas/Id"
              },
              "title": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "can_edit": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "expires_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "document": {
            "$ref": "#/components/schemas/ReplayDocumentV11"
          },
          "range": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReplayRangeV11"
              },
              {
                "type": "null"
              }
            ]
          },
          "references": {
            "$ref": "#/components/schemas/ReplayReferencesV11"
          },
          "available_evidence": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplayEvidenceV11"
            },
            "maxItems": 40
          },
          "snapshots": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "sha256",
                "created_at",
                "expires_at",
                "document_version",
                "attestations"
              ],
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "created_at": {
                  "$ref": "#/components/schemas/Timestamp"
                },
                "expires_at": {
                  "$ref": "#/components/schemas/Timestamp"
                },
                "document_version": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647,
                  "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
                },
                "attestations": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            "maxItems": 50
          },
          "capabilities": {
            "$ref": "#/components/schemas/ReplayCapabilitiesV11"
          },
          "notice": {
            "type": "string"
          },
          "max_retention_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 3650
          },
          "duplicate": {
            "type": "boolean"
          },
          "applied_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          }
        },
        "additionalProperties": false
      },
      "ReplayImportInputV11": {
        "type": "object",
        "required": [
          "request_id",
          "format",
          "content",
          "label",
          "rights_confirmed"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "geojson",
              "gpx"
            ]
          },
          "content": {
            "type": "string",
            "maxLength": 524288,
            "description": "Limit 512 KiB UTF-8; GPX ma jawny time każdej próbki. GeoJSON Point+time lub LineString+times. Brak pobierania URL."
          },
          "filename": {
            "type": "string",
            "minLength": 1,
            "maxLength": 180
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "rights_confirmed": {
            "type": "boolean",
            "const": true
          }
        },
        "additionalProperties": false
      },
      "ReplayImportResultV11": {
        "type": "object",
        "required": [
          "evidence",
          "track"
        ],
        "properties": {
          "evidence": {
            "$ref": "#/components/schemas/ReplayEvidenceV11"
          },
          "track": {
            "$ref": "#/components/schemas/ReplayTrackV11"
          },
          "duplicate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ReplayUploadInputV11": {
        "type": "object",
        "required": [
          "file",
          "request_id",
          "source_label",
          "rights_confirmed"
        ],
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "Jeden upload: <=64 MiB; foto <=12 MiB/24 MP/12000 px, nagranie <=600 s. Żadnego URL."
          },
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "source_label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240
          },
          "rights_confirmed": {
            "type": "string",
            "const": "true"
          },
          "captured_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
            "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
          },
          "clock_offset_ms": {
            "type": "string",
            "pattern": "^-?[0-9]{1,9}$",
            "default": "0",
            "description": "Pole formularza: całkowita korekta milisekund od -86400000 do +86400000."
          }
        },
        "additionalProperties": false,
        "description": "multipart/form-data. Wideo wymaga captured_at; audio/wideo wymagają jawnie włączonego FFmpeg/ffprobe. CSRF w nagłówku, nie dodatkowym polu _csrf."
      },
      "ReplayIncidentCaptureV11": {
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "object_id",
          "creator_id",
          "audience",
          "team_id",
          "user_ids",
          "title",
          "type",
          "status",
          "version",
          "occurred_at"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "object_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "creator_id": {
            "$ref": "#/components/schemas/Id"
          },
          "audience": {
            "type": "string",
            "enum": [
              "user",
              "team",
              "org"
            ]
          },
          "team_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100,
            "uniqueItems": true
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "occurred_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": false
      },
      "ReplaySnapshotV11": {
        "type": "object",
        "required": [
          "schema",
          "id",
          "incident_id",
          "incident_capture",
          "document_version",
          "document",
          "source_evidence",
          "source_media",
          "created_by",
          "created_at",
          "expires_at",
          "notice",
          "integrity_scope",
          "snapshot_sha256"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "telemonit.incident-replay-snapshot/v1"
          },
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "incident_id": {
            "$ref": "#/components/schemas/Id"
          },
          "incident_capture": {
            "$ref": "#/components/schemas/ReplayIncidentCaptureV11"
          },
          "document_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "document": {
            "$ref": "#/components/schemas/ReplayDocumentV11"
          },
          "source_evidence": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplayEvidenceV11"
            }
          },
          "source_media": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplayMediaReferenceV11"
            }
          },
          "created_by": {
            "$ref": "#/components/schemas/Id"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "notice": {
            "type": "string"
          },
          "integrity_scope": {
            "type": "string"
          },
          "snapshot_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          }
        },
        "additionalProperties": false,
        "description": "Niezmienna migawka i aktualny/historyczny ACL przy każdym odczycie. SHA256 dotyczy kanonicznego JSON bez transportowego snapshot_sha256, nie kwalifikowanego podpisu lub zaufanego czasu."
      },
      "ReplaySnapshotResultV11": {
        "type": "object",
        "required": [
          "schema",
          "id",
          "incident_id",
          "incident_capture",
          "document_version",
          "document",
          "source_evidence",
          "source_media",
          "created_by",
          "created_at",
          "expires_at",
          "notice",
          "integrity_scope",
          "snapshot_sha256"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "telemonit.incident-replay-snapshot/v1"
          },
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "incident_id": {
            "$ref": "#/components/schemas/Id"
          },
          "incident_capture": {
            "$ref": "#/components/schemas/ReplayIncidentCaptureV11"
          },
          "document_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "document": {
            "$ref": "#/components/schemas/ReplayDocumentV11"
          },
          "source_evidence": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplayEvidenceV11"
            }
          },
          "source_media": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplayMediaReferenceV11"
            }
          },
          "created_by": {
            "$ref": "#/components/schemas/Id"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "notice": {
            "type": "string"
          },
          "integrity_scope": {
            "type": "string"
          },
          "snapshot_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "duplicate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Niezmienna migawka i aktualny/historyczny ACL przy każdym odczycie. SHA256 dotyczy kanonicznego JSON bez transportowego snapshot_sha256, nie kwalifikowanego podpisu lub zaufanego czasu."
      },
      "ReplaySnapshotInputV11": {
        "type": "object",
        "required": [
          "request_id",
          "version",
          "review_confirmed"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "review_confirmed": {
            "type": "boolean",
            "const": true
          },
          "retention_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 3650
          }
        },
        "additionalProperties": false,
        "description": "Efektywna ważność nie przekracza limitu operatora ani najwcześniej wygasającego źródła."
      },
      "ReplayAttestationV11": {
        "type": "object",
        "required": [
          "id",
          "actor_id",
          "actor_name",
          "role",
          "statement_text",
          "snapshot_sha256",
          "record_sha256",
          "created_at"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "actor_id": {
            "$ref": "#/components/schemas/Id"
          },
          "actor_name": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": [
              "participant",
              "witness",
              "technician",
              "reviewer"
            ]
          },
          "statement_text": {
            "type": "string",
            "minLength": 10,
            "maxLength": 2000
          },
          "snapshot_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "record_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": false
      },
      "ReplayAttestationResultV11": {
        "oneOf": [
          {
            "type": "object",
            "required": [
              "id",
              "actor_id",
              "actor_name",
              "role",
              "statement_text",
              "snapshot_sha256",
              "record_sha256",
              "created_at",
              "snapshot_id",
              "method",
              "qualified_signature"
            ],
            "properties": {
              "id": {
                "$ref": "#/components/schemas/Id"
              },
              "actor_id": {
                "$ref": "#/components/schemas/Id"
              },
              "actor_name": {
                "type": "string"
              },
              "role": {
                "type": "string",
                "enum": [
                  "participant",
                  "witness",
                  "technician",
                  "reviewer"
                ]
              },
              "statement_text": {
                "type": "string",
                "minLength": 10,
                "maxLength": 2000
              },
              "snapshot_sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$",
                "minLength": 64,
                "maxLength": 64
              },
              "record_sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$",
                "minLength": 64,
                "maxLength": 64
              },
              "created_at": {
                "$ref": "#/components/schemas/Timestamp"
              },
              "snapshot_id": {
                "$ref": "#/components/schemas/Id"
              },
              "method": {
                "type": "string",
                "const": "authenticated_account_confirmation"
              },
              "qualified_signature": {
                "type": "boolean",
                "const": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "id",
              "actor_name",
              "role",
              "statement_text",
              "snapshot_sha256",
              "record_sha256",
              "created_at",
              "duplicate"
            ],
            "properties": {
              "id": {
                "$ref": "#/components/schemas/Id"
              },
              "actor_name": {
                "type": "string"
              },
              "role": {
                "type": "string",
                "enum": [
                  "participant",
                  "witness",
                  "technician",
                  "reviewer"
                ]
              },
              "statement_text": {
                "type": "string",
                "minLength": 10,
                "maxLength": 2000
              },
              "snapshot_sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$",
                "minLength": 64,
                "maxLength": 64
              },
              "record_sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$",
                "minLength": 64,
                "maxLength": 64
              },
              "created_at": {
                "$ref": "#/components/schemas/Timestamp"
              },
              "duplicate": {
                "type": "boolean",
                "const": true
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "ReplayAttestationInputV11": {
        "type": "object",
        "required": [
          "request_id",
          "snapshot_sha256",
          "role",
          "statement",
          "reviewed",
          "signature_limit_acknowledged"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "snapshot_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "role": {
            "type": "string",
            "enum": [
              "participant",
              "witness",
              "technician",
              "reviewer"
            ]
          },
          "statement": {
            "type": "string",
            "minLength": 10,
            "maxLength": 2000
          },
          "reviewed": {
            "type": "boolean",
            "const": true
          },
          "signature_limit_acknowledged": {
            "type": "boolean",
            "const": true
          }
        },
        "additionalProperties": false
      },
      "ReplayExportManifestV11": {
        "type": "object",
        "required": [
          "schema",
          "snapshot_sha256",
          "format",
          "source_range",
          "frame_count",
          "map_representation",
          "notice",
          "signature_kind",
          "attestation_hashes",
          "generated_at"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "telemonit.incident-replay-export/v1"
          },
          "snapshot_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "geojson",
              "pdf",
              "gif",
              "mp4",
              "vtt",
              "srt"
            ]
          },
          "source_range": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReplayRangeV11"
              },
              {
                "type": "null"
              }
            ]
          },
          "frame_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 120
          },
          "map_representation": {
            "type": "string",
            "const": "local_wgs84_schematic_without_roads_or_tiles"
          },
          "notice": {
            "type": "string"
          },
          "signature_kind": {
            "type": "string",
            "const": "account_attestations_not_qualified_signature"
          },
          "attestation_hashes": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$",
              "minLength": 64,
              "maxLength": 64
            }
          },
          "generated_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "subtitle_time_basis": {
            "type": "string",
            "const": "milliseconds_since_source_range_start_not_accelerated_movie"
          },
          "playback_frames_per_second": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1
          },
          "playback_seconds": {
            "type": "integer",
            "minimum": 1,
            "maximum": 120
          },
          "video_evidence_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "audio_narration_evidence_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "captions": {
            "type": "string",
            "const": "burned_source_time_and_annotations"
          },
          "export_starts_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
            "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
          },
          "export_ends_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
            "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
          },
          "source_step_seconds": {
            "type": "number",
            "minimum": 0
          },
          "frames": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "source_time",
                "video_frame_included",
                "video_offset_seconds"
              ],
              "properties": {
                "source_time": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
                  "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
                },
                "video_frame_included": {
                  "type": "boolean"
                },
                "video_offset_seconds": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": false
            },
            "maxItems": 120
          }
        },
        "additionalProperties": false,
        "description": "Dla renderu frames wskazuje czas źródłowy, osobny od czasu przyspieszonego filmu. Brak zewnętrznych kafli, automatycznego TTS i wnioskowania o winie."
      },
      "ReplayExportV11": {
        "type": "object",
        "required": [
          "id",
          "snapshot_id",
          "format",
          "mime",
          "sha256",
          "size_bytes",
          "manifest",
          "created_at",
          "expires_at",
          "download_url"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "snapshot_id": {
            "$ref": "#/components/schemas/Id"
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "geojson",
              "pdf",
              "gif",
              "mp4",
              "vtt",
              "srt"
            ]
          },
          "mime": {
            "type": "string"
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "size_bytes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 33554432
          },
          "manifest": {
            "$ref": "#/components/schemas/ReplayExportManifestV11"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "download_url": {
            "type": "string"
          },
          "duplicate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Eksport ważny najwyżej 24 h i nie dłużej niż migawka/źródła. Każde pobranie sprawdza ACL i hash pliku."
      },
      "ReplayExportInputV11": {
        "type": "object",
        "required": [
          "request_id"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "geojson",
              "pdf",
              "gif",
              "mp4",
              "vtt",
              "srt"
            ]
          },
          "frame_count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 120
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
            "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
            "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
          },
          "video_evidence_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Domyślnie json. Render wymaga zakresu czasu. PDF <=24 klatki, render z wideo <=12. Dostępność zależy od capabilities i konfiguracji. Lektor to załączone audio, nie usługa OQLLM TTS."
      },
      "ReplayExportDocumentV11": {
        "type": "object",
        "required": [
          "snapshot_payload_json",
          "snapshot",
          "attestations",
          "export"
        ],
        "properties": {
          "snapshot_payload_json": {
            "type": "string",
            "description": "Dokładny kanoniczny ciąg UTF-8 do niezależnego SHA256; bez transportowego snapshot_sha256."
          },
          "snapshot": {
            "$ref": "#/components/schemas/ReplaySnapshotV11"
          },
          "attestations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReplayAttestationV11"
            }
          },
          "export": {
            "$ref": "#/components/schemas/ReplayExportManifestV11"
          }
        },
        "additionalProperties": false
      },
      "CommunityThreadV11": {
        "type": "object",
        "required": [
          "id",
          "title",
          "kind",
          "point_id",
          "lat",
          "lng",
          "audience",
          "team_id",
          "user_ids",
          "expires_at",
          "version",
          "created_at",
          "updated_at",
          "own",
          "can_post",
          "can_manage",
          "can_publish",
          "public_url"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "kind": {
            "type": "string",
            "enum": [
              "meeting",
              "work",
              "community",
              "event"
            ]
          },
          "point_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "audience": {
            "type": "string",
            "enum": [
              "user",
              "team",
              "org"
            ]
          },
          "team_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100,
            "uniqueItems": true
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "own": {
            "type": "boolean"
          },
          "can_post": {
            "type": "boolean"
          },
          "can_manage": {
            "type": "boolean"
          },
          "can_publish": {
            "type": "boolean"
          },
          "public_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "CommunityMessageV11": {
        "type": "object",
        "required": [
          "id",
          "author_id",
          "body",
          "created_at",
          "author_name"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "author_id": {
            "$ref": "#/components/schemas/Id"
          },
          "body": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "author_name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "CommunityMessageResultV11": {
        "type": "object",
        "required": [
          "id",
          "author_id",
          "body",
          "created_at"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "author_id": {
            "$ref": "#/components/schemas/Id"
          },
          "body": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "duplicate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CommunityThreadDetailV11": {
        "type": "object",
        "required": [
          "id",
          "title",
          "kind",
          "point_id",
          "lat",
          "lng",
          "audience",
          "team_id",
          "user_ids",
          "expires_at",
          "version",
          "created_at",
          "updated_at",
          "own",
          "can_post",
          "can_manage",
          "can_publish",
          "public_url",
          "messages"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "kind": {
            "type": "string",
            "enum": [
              "meeting",
              "work",
              "community",
              "event"
            ]
          },
          "point_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "audience": {
            "type": "string",
            "enum": [
              "user",
              "team",
              "org"
            ]
          },
          "team_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100,
            "uniqueItems": true
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "own": {
            "type": "boolean"
          },
          "can_post": {
            "type": "boolean"
          },
          "can_manage": {
            "type": "boolean"
          },
          "can_publish": {
            "type": "boolean"
          },
          "public_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommunityMessageV11"
            },
            "maxItems": 100
          },
          "duplicate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CommunityThreadInputV11": {
        "type": "object",
        "required": [
          "request_id",
          "title",
          "lat",
          "lng"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "kind": {
            "type": "string",
            "enum": [
              "meeting",
              "work",
              "community",
              "event"
            ]
          },
          "point_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "audience": {
            "type": "string",
            "enum": [
              "user",
              "team",
              "org"
            ]
          },
          "team_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100,
            "uniqueItems": true
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": false,
        "description": "Ważność w przyszłości <=30 dni, domyślnie 1 dzień. Podanie punktu nie pomija jego ACL. Domyślny zakres user."
      },
      "CommunityPublicationInputV11": {
        "type": "object",
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "published": {
            "type": "boolean"
          },
          "public_title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "public_body": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "public_lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "public_lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "public_until": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "publication_confirmed": {
            "type": "boolean",
            "const": true
          }
        },
        "additionalProperties": false,
        "description": "published=false cofa publikację; przy publikacji wymagane osobne public_title/body/lat/lng/until i potwierdzenie. Termin <=ważność wątku. Tylko owner."
      },
      "CommunityPublicNoticeV11": {
        "type": "object",
        "required": [
          "id",
          "public",
          "type",
          "title",
          "body",
          "lat",
          "lng",
          "kind",
          "expires_at",
          "private_conversation_included",
          "people_positions_included"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "public": {
            "type": "boolean",
            "const": true
          },
          "type": {
            "type": "string",
            "const": "place_notice"
          },
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "kind": {
            "type": "string",
            "enum": [
              "meeting",
              "work",
              "community",
              "event"
            ]
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "private_conversation_included": {
            "type": "boolean",
            "const": false
          },
          "people_positions_included": {
            "type": "boolean",
            "const": false
          }
        },
        "additionalProperties": false
      },
      "CommunityConfirmationV11": {
        "type": "object",
        "required": [
          "method",
          "confirmed_at",
          "physical_presence_proven"
        ],
        "properties": {
          "method": {
            "type": "string",
            "enum": [
              "manual",
              "gps"
            ]
          },
          "confirmed_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "physical_presence_proven": {
            "type": "boolean",
            "const": false
          },
          "distance_m": {
            "type": "number",
            "minimum": 0
          },
          "accuracy_m": {
            "type": "number",
            "minimum": 1,
            "maximum": 200
          },
          "observed_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": false,
        "description": "Oświadczenie konta; GPS może jedynie sprawdzić przybliżony dystans. Brak utrwalonych współrzędnych osoby i brak gwarancji fizycznej obecności."
      },
      "CommunityMeetingV11": {
        "type": "object",
        "required": [
          "id",
          "thread_id",
          "requester_id",
          "requester_name",
          "recipient_id",
          "recipient_name",
          "starts_at",
          "expires_at",
          "message",
          "status",
          "version",
          "requester_confirmation",
          "recipient_confirmation",
          "physical_presence_proven",
          "can_accept"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "thread_id": {
            "$ref": "#/components/schemas/Id"
          },
          "requester_id": {
            "$ref": "#/components/schemas/Id"
          },
          "requester_name": {
            "type": "string"
          },
          "recipient_id": {
            "$ref": "#/components/schemas/Id"
          },
          "recipient_name": {
            "type": "string"
          },
          "starts_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "message": {
            "type": "string",
            "maxLength": 500
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "accepted",
              "declined",
              "cancelled",
              "confirmed"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "requester_confirmation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityConfirmationV11"
              },
              {
                "type": "null"
              }
            ]
          },
          "recipient_confirmation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityConfirmationV11"
              },
              {
                "type": "null"
              }
            ]
          },
          "physical_presence_proven": {
            "type": "boolean",
            "const": false
          },
          "can_accept": {
            "type": "boolean"
          },
          "duplicate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CommunityMeetingInputV11": {
        "type": "object",
        "required": [
          "request_id",
          "thread_id",
          "recipient_id",
          "expires_at"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "thread_id": {
            "$ref": "#/components/schemas/Id"
          },
          "recipient_id": {
            "$ref": "#/components/schemas/Id"
          },
          "starts_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "message": {
            "type": "string",
            "maxLength": 500
          }
        },
        "additionalProperties": false,
        "description": "Odbiorca jest innym aktualnym członkiem z dostępem do tego samego wątku. Termin nie wykracza poza ważność rozmowy."
      },
      "CommunityConfirmationInputV11": {
        "type": "object",
        "required": [
          "version",
          "confirmation"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "confirmation": {
            "type": "boolean",
            "const": true
          },
          "method": {
            "type": "string",
            "enum": [
              "manual",
              "gps"
            ]
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "accuracy_m": {
            "type": "number",
            "minimum": 1,
            "maximum": 200
          },
          "observed_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": false,
        "description": "Domyślnie manual; manual odrzuca pola GPS. gps wymaga lat/lng/accuracy_m/observed_at (od -60 do +15 s), dystans <=300 m+dokładność. Od 15 min przed spotkaniem, jeden raz na uczestnika."
      },
      "CommunityPersonV11": {
        "type": "object",
        "required": [
          "id",
          "user_id",
          "name",
          "kind",
          "own",
          "lat",
          "lng",
          "accuracy_m",
          "observed_at",
          "expires_at",
          "precision_m",
          "stale",
          "source",
          "public"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "user_id": {
            "$ref": "#/components/schemas/Id"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "const": "person"
          },
          "own": {
            "type": "boolean"
          },
          "lat": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Latitude"
              },
              {
                "type": "null"
              }
            ]
          },
          "lng": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Longitude"
              },
              {
                "type": "null"
              }
            ]
          },
          "accuracy_m": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "observed_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "precision_m": {
            "type": "integer",
            "minimum": 0,
            "enum": [
              0,
              100,
              1000
            ]
          },
          "stale": {
            "type": "boolean"
          },
          "source": {
            "type": "string",
            "const": "pwa_foreground"
          },
          "public": {
            "type": "boolean",
            "const": false
          }
        },
        "additionalProperties": false
      },
      "CommunityStateV11": {
        "type": "object",
        "required": [
          "context",
          "threads",
          "meetings",
          "people",
          "members",
          "teams",
          "points",
          "kinds",
          "location_ttl_seconds",
          "server_now",
          "public_people_available",
          "bluetooth"
        ],
        "properties": {
          "context": {
            "$ref": "#/components/schemas/SessionContextV11"
          },
          "threads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommunityThreadV11"
            },
            "maxItems": 1000
          },
          "meetings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommunityMeetingV11"
            },
            "maxItems": 200
          },
          "people": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommunityPersonV11"
            },
            "maxItems": 200
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemberChoiceV11"
            },
            "maxItems": 200
          },
          "teams": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpsTeam"
            }
          },
          "points": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PointChoiceV11"
            },
            "maxItems": 500
          },
          "kinds": {
            "type": "object",
            "required": [
              "meeting",
              "work",
              "community",
              "event"
            ],
            "properties": {
              "meeting": {
                "type": "string"
              },
              "work": {
                "type": "string"
              },
              "community": {
                "type": "string"
              },
              "event": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "location_ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 3600
          },
          "server_now": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "public_people_available": {
            "type": "boolean",
            "const": false
          },
          "bluetooth": {
            "type": "object",
            "required": [
              "automatic_people_discovery",
              "ble_beacon_adapter",
              "supported_presence"
            ],
            "properties": {
              "automatic_people_discovery": {
                "type": "boolean",
                "const": false
              },
              "ble_beacon_adapter": {
                "type": "string",
                "const": "requires_external_adapter"
              },
              "supported_presence": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "manual",
                    "gps",
                    "existing_qr_checkpoint"
                  ]
                }
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "CommunityPresenceStartV11": {
        "type": "object",
        "required": [
          "consent",
          "user_ids"
        ],
        "properties": {
          "consent": {
            "type": "boolean",
            "const": true
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "minItems": 1,
            "maxItems": 50,
            "uniqueItems": true
          },
          "precision_m": {
            "type": "integer",
            "minimum": 0,
            "enum": [
              0,
              100,
              1000
            ],
            "default": 100
          },
          "ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 3600,
            "default": 300
          },
          "audience": {
            "type": "string",
            "const": "users"
          },
          "subject_id": {
            "$ref": "#/components/schemas/Id"
          }
        },
        "additionalProperties": false,
        "description": "Własna pozycja wyłącznie wskazanym osobom. Opcjonalny subject_id musi być własnym kontem; limit czasu operatora może być krótszy niż 3600 s."
      },
      "CommunityPresenceStartedV11": {
        "type": "object",
        "required": [
          "id",
          "audience",
          "point_id",
          "job_id",
          "recipient_ids",
          "expires_at",
          "active",
          "server_now",
          "precision_m",
          "source",
          "background_guaranteed"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "audience": {
            "type": "string",
            "const": "users"
          },
          "point_id": {
            "type": "null"
          },
          "job_id": {
            "type": "null"
          },
          "recipient_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 50
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "active": {
            "type": "boolean",
            "const": true
          },
          "server_now": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "precision_m": {
            "type": "integer",
            "minimum": 0,
            "enum": [
              0,
              100,
              1000
            ]
          },
          "source": {
            "type": "string",
            "const": "pwa_foreground"
          },
          "background_guaranteed": {
            "type": "boolean",
            "const": false
          }
        },
        "additionalProperties": false
      },
      "CommunityPresenceUpdateV11": {
        "type": "object",
        "required": [
          "share_id",
          "lat",
          "lng",
          "accuracy_m",
          "observed_at"
        ],
        "properties": {
          "share_id": {
            "$ref": "#/components/schemas/Id"
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "accuracy_m": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000,
            "exclusiveMinimum": 0
          },
          "observed_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": false,
        "description": "Świeży odczyt -120/+15 s; starszy lub nierealistyczny skok odrzucany. Przeglądarka nie gwarantuje GPS w tle."
      },
      "CommunityPresenceUpdatedV11": {
        "type": "object",
        "required": [
          "id",
          "active",
          "recorded_at",
          "expires_at",
          "server_now",
          "precision_m"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "active": {
            "type": "boolean",
            "const": true
          },
          "recorded_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "server_now": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "precision_m": {
            "type": "integer",
            "minimum": 0,
            "enum": [
              0,
              100,
              1000
            ]
          }
        },
        "additionalProperties": false
      },
      "JourneyManualInputV11": {
        "type": "object",
        "required": [
          "lat",
          "lng"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "const": "manual"
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "starts_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "ends_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          }
        },
        "additionalProperties": false,
        "description": "Domyślnie kind=manual i label=Miejsce; ends_at wymaga starts_at i nie może go poprzedzać."
      },
      "JourneyManualV11": {
        "type": "object",
        "required": [
          "kind",
          "label",
          "lat",
          "lng",
          "starts_at",
          "ends_at"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "const": "manual"
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "starts_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "ends_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          }
        },
        "additionalProperties": false
      },
      "JourneyStopInputV11": {
        "oneOf": [
          {
            "type": "object",
            "required": [
              "lat",
              "lng"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "const": "manual"
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "lat": {
                "$ref": "#/components/schemas/Latitude"
              },
              "lng": {
                "$ref": "#/components/schemas/Longitude"
              },
              "starts_at": {
                "$ref": "#/components/schemas/NullableTimestamp"
              },
              "ends_at": {
                "$ref": "#/components/schemas/NullableTimestamp"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "kind",
              "id"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "const": "point"
              },
              "id": {
                "$ref": "#/components/schemas/Id"
              },
              "starts_at": {
                "$ref": "#/components/schemas/NullableTimestamp"
              },
              "ends_at": {
                "$ref": "#/components/schemas/NullableTimestamp"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "kind",
              "id"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "const": "event"
              },
              "id": {
                "$ref": "#/components/schemas/Id"
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "JourneyStopReferenceV11": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/JourneyManualV11"
          },
          {
            "type": "object",
            "required": [
              "kind",
              "id",
              "starts_at",
              "ends_at"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "const": "point"
              },
              "id": {
                "$ref": "#/components/schemas/Id"
              },
              "starts_at": {
                "$ref": "#/components/schemas/NullableTimestamp"
              },
              "ends_at": {
                "$ref": "#/components/schemas/NullableTimestamp"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "kind",
              "id"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "const": "event"
              },
              "id": {
                "$ref": "#/components/schemas/Id"
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "JourneyResolvedPlaceV11": {
        "type": "object",
        "required": [
          "kind",
          "label",
          "lat",
          "lng",
          "starts_at",
          "ends_at"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "manual",
              "point",
              "event"
            ]
          },
          "label": {
            "type": "string"
          },
          "lat": {
            "$ref": "#/components/schemas/Latitude"
          },
          "lng": {
            "$ref": "#/components/schemas/Longitude"
          },
          "starts_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "ends_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "source": {
            "type": "string",
            "enum": [
              "user_input",
              "authorized_point",
              "authorized_event",
              "authorized_event_point"
            ]
          },
          "road_route_available": {
            "type": "boolean"
          },
          "event_status": {
            "type": "string",
            "enum": [
              "proposed",
              "confirmed",
              "postponed",
              "cancelled",
              "completed"
            ]
          },
          "needs_review": {
            "type": "boolean"
          },
          "return_to_start": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Punkt/termin są rozwiązywane ponownie z ACL. Ręczny origin i powrót nie mają source/id; przystanki je mają według rodzaju."
      },
      "JourneyLegV11": {
        "type": "object",
        "required": [
          "index",
          "from",
          "to",
          "distance_m",
          "distance_kind",
          "duration_seconds",
          "traffic",
          "road_route_available"
        ],
        "properties": {
          "index": {
            "type": "integer",
            "minimum": 0,
            "maximum": 30
          },
          "from": {
            "$ref": "#/components/schemas/JourneyResolvedPlaceV11"
          },
          "to": {
            "$ref": "#/components/schemas/JourneyResolvedPlaceV11"
          },
          "distance_m": {
            "type": "number",
            "minimum": 0
          },
          "distance_kind": {
            "type": "string",
            "const": "straight_line"
          },
          "duration_seconds": {
            "type": "null"
          },
          "traffic": {
            "type": "string",
            "const": "unknown"
          },
          "road_route_available": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "JourneyFuelV11": {
        "type": "object",
        "required": [
          "consumption_l_100km",
          "reserve_l",
          "available_l",
          "estimated_consumption_l",
          "estimated_refuel_l",
          "distance_basis",
          "road_conditions_included"
        ],
        "properties": {
          "consumption_l_100km": {
            "type": "number",
            "minimum": 0.1,
            "maximum": 100
          },
          "reserve_l": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "available_l": {
            "type": "number",
            "minimum": 0,
            "maximum": 500
          },
          "estimated_consumption_l": {
            "type": "number",
            "minimum": 0
          },
          "estimated_refuel_l": {
            "type": "number",
            "minimum": 0
          },
          "distance_basis": {
            "type": "string",
            "const": "straight_line"
          },
          "road_conditions_included": {
            "type": "boolean",
            "const": false
          }
        },
        "additionalProperties": false
      },
      "JourneyV11": {
        "type": "object",
        "required": [
          "id",
          "title",
          "journey_date",
          "timezone",
          "origin",
          "stops",
          "stop_references",
          "legs",
          "distance_km",
          "distance_kind",
          "duration_seconds",
          "traffic",
          "fuel",
          "return_to_start",
          "audience",
          "team_id",
          "user_ids",
          "own",
          "version",
          "created_at",
          "warnings",
          "notice"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "journey_date": {
            "type": "string",
            "format": "date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "Poprawna data kalendarzowa 1970–2199."
          },
          "timezone": {
            "type": "string",
            "description": "Identyfikator IANA; domyślnie Europe/Warsaw, nie sam offset."
          },
          "origin": {
            "$ref": "#/components/schemas/JourneyManualV11"
          },
          "stops": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JourneyResolvedPlaceV11"
            },
            "minItems": 1,
            "maxItems": 30
          },
          "stop_references": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JourneyStopReferenceV11"
            },
            "minItems": 1,
            "maxItems": 30
          },
          "legs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JourneyLegV11"
            },
            "minItems": 1,
            "maxItems": 31
          },
          "distance_km": {
            "type": "number",
            "minimum": 0
          },
          "distance_kind": {
            "type": "string",
            "const": "straight_line"
          },
          "duration_seconds": {
            "type": "null"
          },
          "traffic": {
            "type": "string",
            "const": "unknown"
          },
          "fuel": {
            "$ref": "#/components/schemas/JourneyFuelV11"
          },
          "return_to_start": {
            "type": "boolean"
          },
          "audience": {
            "type": "string",
            "enum": [
              "user",
              "team",
              "org"
            ]
          },
          "team_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100,
            "uniqueItems": true
          },
          "own": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "notice": {
            "type": "string"
          },
          "duplicate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "JourneyInputV11": {
        "type": "object",
        "required": [
          "request_id",
          "title",
          "journey_date",
          "origin",
          "stops"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "journey_date": {
            "type": "string",
            "format": "date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "Poprawna data kalendarzowa 1970–2199."
          },
          "timezone": {
            "type": "string",
            "description": "Identyfikator IANA; domyślnie Europe/Warsaw, nie sam offset."
          },
          "origin": {
            "$ref": "#/components/schemas/JourneyManualInputV11"
          },
          "stops": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JourneyStopInputV11"
            },
            "minItems": 1,
            "maxItems": 30
          },
          "audience": {
            "type": "string",
            "enum": [
              "user",
              "team",
              "org"
            ]
          },
          "team_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100,
            "uniqueItems": true
          },
          "consumption_l_100km": {
            "type": "number",
            "minimum": 0.1,
            "maximum": 100,
            "default": 7
          },
          "reserve_l": {
            "type": "number",
            "minimum": 0,
            "maximum": 100,
            "default": 0
          },
          "fuel_available_l": {
            "type": "number",
            "minimum": 0,
            "maximum": 500,
            "default": 0
          },
          "return_to_start": {
            "type": "boolean",
            "default": false
          }
        },
        "additionalProperties": false
      },
      "JourneyMileageV11": {
        "type": "object",
        "required": [
          "id",
          "journey_id",
          "journey_date",
          "vehicle_label",
          "purpose",
          "start_label",
          "end_label",
          "odometer_start_km",
          "odometer_end_km",
          "distance_km",
          "source",
          "created_at"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "journey_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "journey_date": {
            "type": "string",
            "format": "date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "Poprawna data kalendarzowa 1970–2199."
          },
          "vehicle_label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "purpose": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "start_label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "end_label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "odometer_start_km": {
            "type": "number",
            "minimum": 0,
            "maximum": 10000000
          },
          "odometer_end_km": {
            "type": "number",
            "minimum": 0,
            "maximum": 10000000
          },
          "distance_km": {
            "type": "number",
            "minimum": 0,
            "maximum": 3000,
            "exclusiveMinimum": 0
          },
          "source": {
            "type": "string",
            "const": "user_odometer"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "additionalProperties": false,
        "description": "Tylko własny użytkownik. Rzeczywisty zadeklarowany licznik, nie dystans wyliczony z mapy ani certyfikat podatkowy."
      },
      "JourneyMileageInputV11": {
        "type": "object",
        "required": [
          "request_id",
          "journey_date",
          "vehicle_label",
          "purpose",
          "start_label",
          "end_label",
          "odometer_start_km",
          "odometer_end_km",
          "confirmed"
        ],
        "properties": {
          "request_id": {
            "$ref": "#/components/schemas/RequestId"
          },
          "journey_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "journey_date": {
            "type": "string",
            "format": "date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "Poprawna data kalendarzowa 1970–2199."
          },
          "vehicle_label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "purpose": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "start_label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "end_label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "odometer_start_km": {
            "type": "number",
            "minimum": 0,
            "maximum": 10000000
          },
          "odometer_end_km": {
            "type": "number",
            "minimum": 0,
            "maximum": 10000000
          },
          "confirmed": {
            "type": "boolean",
            "const": true
          }
        },
        "additionalProperties": false,
        "description": "Data nie jest przyszła według Europe/Warsaw. Licznik końcowy > początkowy, różnica <=3000 km. Istniejący journey_id musi być dostępny."
      },
      "JourneyMileageResultV11": {
        "type": "object",
        "required": [
          "id",
          "distance_km",
          "source"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "distance_km": {
            "oneOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 3000
              },
              {
                "type": "string",
                "pattern": "^\\d+(?:\\.\\d+)?$"
              }
            ]
          },
          "source": {
            "type": "string",
            "const": "user_odometer"
          },
          "duplicate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Powtórzenie idempotentne czyta wartość z bazy; sterownik może zwrócić dziesiętny ciąg znaków."
      },
      "JourneyRoadEstimateV11": {
        "type": "object",
        "required": [
          "distance_m",
          "distance_kind",
          "duration_seconds",
          "traffic_delay_seconds",
          "traffic",
          "provider",
          "departure_at",
          "navigation_url"
        ],
        "properties": {
          "distance_m": {
            "type": "number",
            "minimum": 0
          },
          "distance_kind": {
            "type": "string",
            "enum": [
              "straight_line",
              "road"
            ]
          },
          "duration_seconds": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "traffic_delay_seconds": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "traffic": {
            "type": "string",
            "enum": [
              "unknown",
              "provider_estimate"
            ]
          },
          "provider": {
            "anyOf": [
              {
                "type": "string",
                "const": "tomtom"
              },
              {
                "type": "null"
              }
            ]
          },
          "departure_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "navigation_url": {
            "type": "string",
            "format": "uri"
          },
          "notice": {
            "type": "string"
          },
          "attribution": {
            "type": "string"
          },
          "arrival_at": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Opcjonalny skonfigurowany adapter TomTom; błąd/brak dostawcy pozostawia jawne straight_line i duration_seconds:null. Nie zmienia planu ani przebiegu."
      },
      "JourneyRouteResultV11": {
        "type": "object",
        "required": [
          "journey_id",
          "index",
          "version",
          "route",
          "saved_mileage_changed"
        ],
        "properties": {
          "journey_id": {
            "$ref": "#/components/schemas/Id"
          },
          "index": {
            "type": "integer",
            "minimum": 0,
            "maximum": 30
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "route": {
            "$ref": "#/components/schemas/JourneyRoadEstimateV11"
          },
          "saved_mileage_changed": {
            "type": "boolean",
            "const": false
          }
        },
        "additionalProperties": false
      },
      "JourneyEventPublicationV11": {
        "type": "object",
        "required": [
          "title",
          "description",
          "type",
          "status",
          "starts_at",
          "ends_at",
          "timezone",
          "all_day",
          "venue",
          "lat",
          "lng",
          "topics",
          "source",
          "visible_from",
          "visible_until",
          "media_ids",
          "reviewed",
          "reviewed_at"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "culture",
              "concert",
              "sport",
              "community",
              "training",
              "meeting",
              "market",
              "maintenance",
              "transport",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "proposed",
              "confirmed",
              "postponed",
              "cancelled",
              "completed"
            ]
          },
          "starts_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "ends_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "timezone": {
            "type": "string",
            "description": "Identyfikator IANA; domyślnie Europe/Warsaw, nie sam offset."
          },
          "all_day": {
            "type": "boolean"
          },
          "venue": {
            "type": "string"
          },
          "lat": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Latitude"
              },
              {
                "type": "null"
              }
            ]
          },
          "lng": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Longitude"
              },
              {
                "type": "null"
              }
            ]
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "source": {
            "type": "object",
            "required": [
              "url",
              "id",
              "label",
              "published_at"
            ],
            "properties": {
              "url": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "published_at": {
                "$ref": "#/components/schemas/NullableTimestamp"
              }
            },
            "additionalProperties": false
          },
          "visible_from": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "visible_until": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "media_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 5
          },
          "reviewed": {
            "type": "boolean"
          },
          "reviewed_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          }
        },
        "additionalProperties": false
      },
      "JourneyCalendarEventV11": {
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "object_id",
          "creator_id",
          "title",
          "description",
          "type",
          "status",
          "starts_at",
          "ends_at",
          "timezone",
          "all_day",
          "venue",
          "lat",
          "lng",
          "audience",
          "team_id",
          "user_ids",
          "source_type",
          "source_url",
          "source_id",
          "source_label",
          "source_published_at",
          "source_imported_at",
          "source_hash",
          "reviewed_at",
          "reviewed_by",
          "version",
          "deleted_at",
          "created_at",
          "updated_at",
          "topics",
          "media_ids",
          "can_edit",
          "can_publish",
          "published",
          "public_version",
          "publication",
          "visible_from",
          "visible_until",
          "public_url",
          "media",
          "needs_review"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "object_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "creator_id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "culture",
              "concert",
              "sport",
              "community",
              "training",
              "meeting",
              "market",
              "maintenance",
              "transport",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "proposed",
              "confirmed",
              "postponed",
              "cancelled",
              "completed"
            ]
          },
          "starts_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "ends_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "timezone": {
            "type": "string",
            "description": "Identyfikator IANA; domyślnie Europe/Warsaw, nie sam offset."
          },
          "all_day": {
            "type": "boolean"
          },
          "venue": {
            "type": "string"
          },
          "lat": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Latitude"
              },
              {
                "type": "null"
              }
            ]
          },
          "lng": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Longitude"
              },
              {
                "type": "null"
              }
            ]
          },
          "audience": {
            "type": "string",
            "enum": [
              "user",
              "team",
              "org"
            ]
          },
          "team_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100,
            "uniqueItems": true
          },
          "source_type": {
            "type": "string"
          },
          "source_url": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          },
          "source_label": {
            "type": "string"
          },
          "source_published_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "source_imported_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "source_hash": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$",
                "minLength": 64,
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ]
          },
          "reviewed_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "reviewed_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
          },
          "deleted_at": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "updated_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "media_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            }
          },
          "can_edit": {
            "type": "boolean"
          },
          "can_publish": {
            "type": "boolean"
          },
          "published": {
            "type": "boolean"
          },
          "public_version": {
            "type": "integer",
            "minimum": 0
          },
          "publication": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/JourneyEventPublicationV11"
              },
              {
                "type": "array",
                "maxItems": 0
              },
              {
                "type": "null"
              }
            ],
            "description": "Snapshot publikacji dla owner; [] przed publikacją; null dla pozostałych. Nie nadaje dostępu publicznego."
          },
          "visible_from": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "visible_until": {
            "$ref": "#/components/schemas/NullableTimestamp"
          },
          "public_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "media": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "url",
                "kind"
              ],
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "url": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "const": "photo"
                }
              },
              "additionalProperties": false
            }
          },
          "needs_review": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "JourneyStateV11": {
        "type": "object",
        "required": [
          "context",
          "date",
          "timezone",
          "journeys",
          "events",
          "events_total",
          "events_has_more",
          "points",
          "members",
          "teams",
          "mileage",
          "route_provider",
          "mileage_is_tax_certificate"
        ],
        "properties": {
          "context": {
            "$ref": "#/components/schemas/SessionContextV11"
          },
          "date": {
            "type": "string",
            "format": "date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "Poprawna data kalendarzowa 1970–2199."
          },
          "timezone": {
            "type": "string",
            "description": "Identyfikator IANA; domyślnie Europe/Warsaw, nie sam offset."
          },
          "journeys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JourneyV11"
            },
            "maxItems": 1000
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JourneyCalendarEventV11"
            },
            "maxItems": 100
          },
          "events_total": {
            "type": "integer",
            "minimum": 0
          },
          "events_has_more": {
            "type": "boolean"
          },
          "points": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PointChoiceV11"
            },
            "maxItems": 500
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemberChoiceV11"
            },
            "maxItems": 200
          },
          "teams": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpsTeam"
            }
          },
          "mileage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JourneyMileageV11"
            },
            "maxItems": 1000
          },
          "route_provider": {
            "type": "string"
          },
          "mileage_is_tax_certificate": {
            "type": "boolean",
            "const": false
          }
        },
        "additionalProperties": false
      },
      "JourneyGeoJsonV11": {
        "type": "object",
        "required": [
          "type",
          "features",
          "privacy",
          "journey_id"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "FeatureCollection"
          },
          "features": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "required": [
                    "type",
                    "geometry",
                    "properties"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "Feature"
                    },
                    "geometry": {
                      "type": "object",
                      "required": [
                        "type",
                        "coordinates"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "Point"
                        },
                        "coordinates": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          },
                          "minItems": 2,
                          "maxItems": 2,
                          "description": "[długość, szerokość] WGS84."
                        }
                      },
                      "additionalProperties": false
                    },
                    "properties": {
                      "type": "object",
                      "required": [
                        "order",
                        "label",
                        "starts_at",
                        "source"
                      ],
                      "properties": {
                        "order": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "label": {
                          "type": "string"
                        },
                        "starts_at": {
                          "$ref": "#/components/schemas/NullableTimestamp"
                        },
                        "source": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "required": [
                    "type",
                    "geometry",
                    "properties"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "Feature"
                    },
                    "geometry": {
                      "type": "object",
                      "required": [
                        "type",
                        "coordinates"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "LineString"
                        },
                        "coordinates": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "number"
                            },
                            "minItems": 2,
                            "maxItems": 2,
                            "description": "[długość, szerokość] WGS84."
                          },
                          "minItems": 2,
                          "maxItems": 32
                        }
                      },
                      "additionalProperties": false
                    },
                    "properties": {
                      "type": "object",
                      "required": [
                        "title",
                        "distance_kind",
                        "road_route"
                      ],
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "distance_kind": {
                          "type": "string",
                          "const": "straight_line"
                        },
                        "road_route": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            "minItems": 2,
            "maxItems": 31
          },
          "privacy": {
            "type": "string",
            "const": "authorized_export"
          },
          "journey_id": {
            "$ref": "#/components/schemas/Id"
          }
        },
        "additionalProperties": false
      },
      "IntegrationCatalogV11": {
        "type": "object",
        "required": [
          "schema",
          "version",
          "checked_at",
          "statuses",
          "items",
          "provider_connections_verified"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "telemonit.integration-catalog/v1"
          },
          "version": {
            "type": "string",
            "const": "0.14.0"
          },
          "checked_at": {
            "type": "string",
            "format": "date"
          },
          "statuses": {
            "type": "object",
            "required": [
              "implemented",
              "adapter",
              "planned"
            ],
            "properties": {
              "implemented": {
                "type": "string"
              },
              "adapter": {
                "type": "string"
              },
              "planned": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "status",
                "devices",
                "protocols",
                "scope",
                "requires",
                "route",
                "source"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "implemented",
                    "adapter",
                    "planned"
                  ]
                },
                "devices": {
                  "type": "string"
                },
                "protocols": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "scope": {
                  "type": "string"
                },
                "requires": {
                  "type": "string"
                },
                "route": {
                  "type": "string"
                },
                "source": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "additionalProperties": false
            }
          },
          "provider_connections_verified": {
            "type": "boolean",
            "const": false
          }
        },
        "additionalProperties": false,
        "description": "Katalog możliwości kodu i granic adapterów. Nie jest healthcheckiem dostawców, listą aktywowanych kont ani gwarancją zgodności urządzenia."
      },
      "ExportRecordV11": {
        "oneOf": [
          {
            "type": "object",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "community_thread"
              },
              "data": {
                "$ref": "#/components/schemas/CommunityThreadV11"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "community_message"
              },
              "data": {
                "type": "object",
                "required": [
                  "id",
                  "author_id",
                  "body",
                  "created_at",
                  "author_name",
                  "thread_id"
                ],
                "properties": {
                  "id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "author_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "body": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4000
                  },
                  "created_at": {
                    "$ref": "#/components/schemas/Timestamp"
                  },
                  "author_name": {
                    "type": "string"
                  },
                  "thread_id": {
                    "$ref": "#/components/schemas/Id"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "community_meeting"
              },
              "data": {
                "$ref": "#/components/schemas/CommunityMeetingV11"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "journey"
              },
              "data": {
                "$ref": "#/components/schemas/JourneyV11"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "journey_mileage"
              },
              "data": {
                "$ref": "#/components/schemas/JourneyMileageV11"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "map_source_feed"
              },
              "data": {
                "$ref": "#/components/schemas/MapSourceFeedV11"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "map_source_item"
              },
              "data": {
                "$ref": "#/components/schemas/MapSourceItemV11"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "map_source_analysis"
              },
              "data": {
                "$ref": "#/components/schemas/MapSourceAnalysisV11"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "partner_page"
              },
              "data": {
                "type": "object",
                "required": [
                  "id",
                  "portal_id",
                  "slug",
                  "title",
                  "summary",
                  "body",
                  "version",
                  "published_version",
                  "published_at",
                  "published",
                  "has_unpublished_changes",
                  "updated_at",
                  "format",
                  "approved_public_snapshot"
                ],
                "properties": {
                  "id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "portal_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "slug": {
                    "type": "string",
                    "enum": [
                      "about",
                      "contact",
                      "privacy",
                      "terms",
                      "accessibility"
                    ]
                  },
                  "title": {
                    "type": "string",
                    "maxLength": 180
                  },
                  "summary": {
                    "type": "string",
                    "maxLength": 350
                  },
                  "body": {
                    "type": "string",
                    "maxLength": 30000
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647,
                    "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
                  },
                  "published_version": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 2147483647,
                        "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "published_at": {
                    "$ref": "#/components/schemas/NullableTimestamp"
                  },
                  "published": {
                    "type": "boolean"
                  },
                  "has_unpublished_changes": {
                    "type": "boolean"
                  },
                  "updated_at": {
                    "$ref": "#/components/schemas/Timestamp"
                  },
                  "format": {
                    "type": "string",
                    "const": "plain_text"
                  },
                  "approved_public_snapshot": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/PartnerApprovedSnapshotV11"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false,
                "description": "Prywatny bieżący szkic. published opisuje osobny zatwierdzony snapshot, a nie automatyczną publikację zmian."
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "partner_page_revision"
              },
              "data": {
                "type": "object",
                "required": [
                  "page_id",
                  "portal_id",
                  "version",
                  "action",
                  "actor_id",
                  "created_at",
                  "snapshot"
                ],
                "properties": {
                  "page_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "portal_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647,
                    "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
                  },
                  "action": {
                    "type": "string"
                  },
                  "actor_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "created_at": {
                    "$ref": "#/components/schemas/Timestamp"
                  },
                  "snapshot": {
                    "$ref": "#/components/schemas/PartnerPageV11"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "partner_policy"
              },
              "data": {
                "type": "object",
                "required": [
                  "version",
                  "status",
                  "details",
                  "acknowledgements",
                  "reviewed_at",
                  "reviewed_by",
                  "certification",
                  "notice",
                  "portal_id"
                ],
                "properties": {
                  "version": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "review_needed",
                      "declared"
                    ]
                  },
                  "details": {
                    "$ref": "#/components/schemas/PartnerPolicyDetailsV11"
                  },
                  "acknowledgements": {
                    "$ref": "#/components/schemas/PartnerPolicyChecksV11"
                  },
                  "reviewed_at": {
                    "$ref": "#/components/schemas/NullableTimestamp"
                  },
                  "reviewed_by": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/Id"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "certification": {
                    "type": "boolean",
                    "const": false
                  },
                  "notice": {
                    "type": "string"
                  },
                  "portal_id": {
                    "$ref": "#/components/schemas/Id"
                  }
                },
                "additionalProperties": false,
                "description": "Deklaracja właściciela z osobą i datą przeglądu, nie certyfikat RODO/AI Act. declared wymaga wszystkich pól i potwierdzeń, w tym poprawnego email."
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "data"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "partner_policy_revision"
              },
              "data": {
                "type": "object",
                "required": [
                  "portal_id",
                  "version",
                  "actor_id",
                  "created_at",
                  "snapshot"
                ],
                "properties": {
                  "portal_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647,
                    "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
                  },
                  "actor_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "created_at": {
                    "$ref": "#/components/schemas/Timestamp"
                  },
                  "snapshot": {
                    "$ref": "#/components/schemas/PartnerPolicyV11"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "incident_id",
              "version",
              "expires_at",
              "document",
              "references"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "incident_replay_document"
              },
              "incident_id": {
                "$ref": "#/components/schemas/Id"
              },
              "version": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647,
                "description": "Dokładna bieżąca wersja; konflikt wymaga ponownego odczytu."
              },
              "expires_at": {
                "$ref": "#/components/schemas/Timestamp"
              },
              "document": {
                "$ref": "#/components/schemas/ReplayDocumentV11"
              },
              "references": {
                "$ref": "#/components/schemas/ReplayReferencesV11"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "incident_id",
              "source"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "incident_replay_source"
              },
              "incident_id": {
                "$ref": "#/components/schemas/Id"
              },
              "source": {
                "$ref": "#/components/schemas/ReplayEvidenceV11"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "snapshot",
              "snapshot_payload_json",
              "attestations"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "incident_replay_snapshot"
              },
              "snapshot": {
                "$ref": "#/components/schemas/ReplaySnapshotV11"
              },
              "snapshot_payload_json": {
                "type": "string"
              },
              "attestations": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ReplayAttestationV11"
                }
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "maximum_incidents",
              "notice"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "incident_replay_export_limit"
              },
              "maximum_incidents": {
                "type": "integer",
                "minimum": 5000,
                "maximum": 5000
              },
              "notice": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        ],
        "description": "Nowe warianty v0.11. Replay ma jawnie inną strukturę niż {type,data}; nie spłaszczaj ani nie interpretuj payloadu jako poleceń."
      },
      "PoaRunIdV12": {
        "type": "string",
        "pattern": "^run-[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$",
        "minLength": 40,
        "maxLength": 40,
        "description": "Id procesu: prefiks run- oraz UUID. Sam UUID nie jest identyfikatorem tej trasy."
      },
      "PoaVerificationV12": {
        "type": "object",
        "required": [
          "capability_ref",
          "expectation_schema_ref"
        ],
        "properties": {
          "capability_ref": {
            "type": "string",
            "const": "capability://telemonit.pl/incidents/replay-verify/v1"
          },
          "expectation_schema_ref": {
            "type": "string",
            "const": "schema://telemonit.pl/incident-replay-export-verification/v1"
          }
        },
        "additionalProperties": false
      },
      "PoaProcessV12": {
        "type": "object",
        "required": [
          "schema",
          "process_ref",
          "title",
          "owner",
          "input_schema_ref",
          "output_schema_ref",
          "policy_refs",
          "steps"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "poa.process/v1"
          },
          "process_ref": {
            "type": "string",
            "const": "poa://telemonit.pl/process/incident-replay-export/v1"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "owner": {
            "type": "string",
            "const": "service:telemonit-core"
          },
          "input_schema_ref": {
            "type": "string",
            "const": "schema://telemonit.pl/incident-replay-export-input/v1"
          },
          "output_schema_ref": {
            "type": "string",
            "const": "schema://telemonit.pl/incident-replay-export-output/v1"
          },
          "policy_refs": {
            "type": "array",
            "items": {
              "type": "string",
              "const": "policy://telemonit.pl/incident-replay-export/v1"
            },
            "minItems": 1,
            "maxItems": 1
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "capability_ref",
                "kind",
                "effects",
                "depends_on",
                "requires_approval",
                "timeout_seconds",
                "max_attempts",
                "idempotency",
                "verification"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "const": "export"
                },
                "capability_ref": {
                  "type": "string",
                  "const": "capability://telemonit.pl/incidents/replay-export/v1"
                },
                "kind": {
                  "type": "string",
                  "const": "command"
                },
                "effects": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "read_data",
                      "local_write"
                    ]
                  },
                  "minItems": 2,
                  "maxItems": 2,
                  "uniqueItems": true
                },
                "depends_on": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9._:-]*$",
                    "minLength": 1,
                    "maxLength": 96
                  },
                  "maxItems": 0
                },
                "requires_approval": {
                  "type": "boolean",
                  "const": true
                },
                "timeout_seconds": {
                  "type": "integer",
                  "minimum": 120,
                  "maximum": 120
                },
                "max_attempts": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1
                },
                "idempotency": {
                  "type": "string",
                  "const": "required"
                },
                "verification": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PoaVerificationV12"
                  },
                  "minItems": 1,
                  "maxItems": 1
                }
              },
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 1
          }
        },
        "additionalProperties": false,
        "description": "Jeden zainstalowany profil: lokalny eksport i odrębny readback. Definicja opisuje capability, nie URI wykonania, i nie udziela uprawnień."
      },
      "PoaRequestInspectV12": {
        "type": "object",
        "required": [
          "schema",
          "operation",
          "process_ref"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "poa.request/v1"
          },
          "operation": {
            "type": "string",
            "const": "inspect"
          },
          "process_ref": {
            "type": "string",
            "const": "poa://telemonit.pl/process/incident-replay-export/v1"
          }
        },
        "additionalProperties": false
      },
      "PoaRequestPlanV12": {
        "type": "object",
        "required": [
          "schema",
          "operation",
          "process_ref",
          "input_ref",
          "input_sha256"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "poa.request/v1"
          },
          "operation": {
            "type": "string",
            "const": "plan"
          },
          "process_ref": {
            "type": "string",
            "const": "poa://telemonit.pl/process/incident-replay-export/v1"
          },
          "input_ref": {
            "type": "string",
            "pattern": "^artifact://telemonit\\.pl/poa/inputs/[a-z0-9][a-z0-9._:-]{0,95}/r1$",
            "maxLength": 320
          },
          "input_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          }
        },
        "additionalProperties": false
      },
      "PoaRequestV12": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/PoaRequestInspectV12"
          },
          {
            "$ref": "#/components/schemas/PoaRequestPlanV12"
          }
        ],
        "description": "Zamknięta granica authoring: inspect albo plan istniejącego wejścia. Bez payload, process_uri, grant_ref, tokenów i opcji transportu. Powtórzone klucze, także po odkodowaniu escape, są odrzucane."
      },
      "PoaDslContractV12": {
        "type": "object",
        "required": [
          "schema_ref",
          "grammar_ref",
          "schema_sha256",
          "grammar_sha256",
          "canonical_sha256",
          "canonicalization",
          "hash_algorithm",
          "validated",
          "additional_properties"
        ],
        "properties": {
          "schema_ref": {
            "type": "string",
            "const": "schema://telemonit.pl/incident-replay-request/v1"
          },
          "grammar_ref": {
            "type": "string",
            "const": "grammar://telemonit.pl/incident-replay-request/v1"
          },
          "schema_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "grammar_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "canonical_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "canonicalization": {
            "type": "string",
            "const": "RFC8785"
          },
          "hash_algorithm": {
            "type": "string",
            "const": "SHA-256"
          },
          "validated": {
            "type": "boolean",
            "const": true
          },
          "additional_properties": {
            "type": "boolean",
            "const": false
          }
        },
        "additionalProperties": false
      },
      "PoaPlanV12": {
        "type": "object",
        "required": [
          "schema",
          "plan_id",
          "process_ref",
          "request_sha256",
          "valid_until",
          "steps",
          "dsl_contract",
          "authority_requirements",
          "execution_boundary",
          "hash_profile",
          "plan_hash"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "poa.plan/v1"
          },
          "plan_id": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9._:-]*$",
            "minLength": 1,
            "maxLength": 96
          },
          "process_ref": {
            "type": "string",
            "const": "poa://telemonit.pl/process/incident-replay-export/v1"
          },
          "request_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "valid_until": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
            "minLength": 20,
            "maxLength": 20
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "capability_ref",
                "process_uri",
                "target_ref",
                "kind",
                "effects",
                "depends_on",
                "input_ref",
                "input_sha256",
                "timeout_seconds",
                "max_attempts",
                "idempotency_key",
                "verification"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "const": "export"
                },
                "capability_ref": {
                  "type": "string",
                  "const": "capability://telemonit.pl/incidents/replay-export/v1"
                },
                "process_uri": {
                  "type": "string",
                  "const": "telemonit://core/incidents/replay/command/export"
                },
                "target_ref": {
                  "type": "string",
                  "const": "target://telemonit.pl/local/incident-replay-export"
                },
                "kind": {
                  "type": "string",
                  "const": "command"
                },
                "effects": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "read_data",
                      "local_write"
                    ]
                  },
                  "minItems": 2,
                  "maxItems": 2,
                  "uniqueItems": true
                },
                "depends_on": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9._:-]*$",
                    "minLength": 1,
                    "maxLength": 96
                  },
                  "maxItems": 0
                },
                "input_ref": {
                  "type": "string",
                  "pattern": "^artifact://telemonit\\.pl/poa/inputs/[a-z0-9][a-z0-9._:-]{0,95}/r1$",
                  "maxLength": 320
                },
                "input_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "timeout_seconds": {
                  "type": "integer",
                  "minimum": 120,
                  "maximum": 120
                },
                "max_attempts": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1
                },
                "idempotency_key": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9._:-]+$",
                  "minLength": 8,
                  "maxLength": 160
                },
                "verification": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PoaVerificationV12"
                  },
                  "minItems": 1,
                  "maxItems": 1
                }
              },
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 1
          },
          "dsl_contract": {
            "$ref": "#/components/schemas/PoaDslContractV12"
          },
          "authority_requirements": {
            "type": "object",
            "required": [
              "subject",
              "scopes",
              "grant_ttl_seconds",
              "intent_required",
              "plan_hash_binding"
            ],
            "properties": {
              "subject": {
                "type": "string",
                "pattern": "^(?:human|agent|service|mcp):[a-zA-Z0-9._:-]+$",
                "maxLength": 160
              },
              "scopes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "const": "incidents:read"
                },
                "minItems": 1,
                "maxItems": 1
              },
              "grant_ttl_seconds": {
                "type": "integer",
                "minimum": 180,
                "maximum": 180
              },
              "intent_required": {
                "type": "boolean",
                "const": true
              },
              "plan_hash_binding": {
                "type": "boolean",
                "const": true
              }
            },
            "additionalProperties": false
          },
          "execution_boundary": {
            "type": "object",
            "required": [
              "boundary_ref",
              "host_shell",
              "arbitrary_executable",
              "transport_from_registry"
            ],
            "properties": {
              "boundary_ref": {
                "type": "string",
                "const": "target://telemonit.pl/local/incident-replay-export"
              },
              "host_shell": {
                "type": "boolean",
                "const": false
              },
              "arbitrary_executable": {
                "type": "boolean",
                "const": false
              },
              "transport_from_registry": {
                "type": "boolean",
                "const": true
              }
            },
            "additionalProperties": false
          },
          "hash_profile": {
            "type": "string",
            "const": "RFC8785+SHA-256"
          },
          "plan_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          }
        },
        "additionalProperties": false,
        "description": "Plan dry-run, ważny do 300 s i nie dłużej niż źródła. Hash usuwa własne pole plan_hash. Liczby kontrolne to wyłącznie safe integers; nie jest to ogólny wykonawca URI ani deklaracja pełnej zgodności POA."
      },
      "PoaEventV12": {
        "type": "object",
        "required": [
          "schema",
          "event_id",
          "run_id",
          "sequence",
          "process_ref",
          "plan_ref",
          "event_type",
          "occurred_at",
          "artifact_refs",
          "raw_output_included",
          "secret_material_included"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "poa.event/v1"
          },
          "event_id": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9._:-]*$",
            "minLength": 1,
            "maxLength": 96
          },
          "run_id": {
            "$ref": "#/components/schemas/PoaRunIdV12"
          },
          "sequence": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "process_ref": {
            "type": "string",
            "const": "poa://telemonit.pl/process/incident-replay-export/v1"
          },
          "plan_ref": {
            "type": "string",
            "pattern": "^sha256:[a-f0-9]{64}$",
            "minLength": 71,
            "maxLength": 71
          },
          "event_type": {
            "type": "string",
            "enum": [
              "requested",
              "planned",
              "authorized",
              "started",
              "lease_renewed",
              "completed",
              "verified",
              "failed",
              "compensated",
              "cancelled",
              "timed_out",
              "denied",
              "expired"
            ]
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
            "minLength": 20,
            "maxLength": 20
          },
          "step_id": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9._:-]*$",
            "minLength": 1,
            "maxLength": 96
          },
          "artifact_refs": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^artifact://[a-z0-9.-]+/[A-Za-z0-9._:/-]+/r[1-9][0-9]*$",
              "maxLength": 320
            },
            "maxItems": 16,
            "uniqueItems": true
          },
          "raw_output_included": {
            "type": "boolean",
            "const": false
          },
          "secret_material_included": {
            "type": "boolean",
            "const": false
          }
        },
        "additionalProperties": false
      },
      "PoaReceiptV12": {
        "type": "object",
        "required": [
          "schema",
          "run_id",
          "process_ref",
          "plan_ref",
          "grant_ref",
          "intent_ref",
          "state",
          "started_at",
          "completed_at",
          "steps",
          "raw_output_included",
          "secret_material_included",
          "hash_profile",
          "receipt_hash"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "poa.receipt/v1"
          },
          "run_id": {
            "$ref": "#/components/schemas/PoaRunIdV12"
          },
          "process_ref": {
            "type": "string",
            "const": "poa://telemonit.pl/process/incident-replay-export/v1"
          },
          "plan_ref": {
            "type": "string",
            "pattern": "^sha256:[a-f0-9]{64}$",
            "minLength": 71,
            "maxLength": 71
          },
          "grant_ref": {
            "type": "string",
            "pattern": "^grant:[a-zA-Z0-9._:-]+$",
            "maxLength": 160
          },
          "intent_ref": {
            "type": "string",
            "pattern": "^intent:[a-zA-Z0-9._:-]+$",
            "maxLength": 160
          },
          "state": {
            "type": "string",
            "enum": [
              "succeeded",
              "failed",
              "compensated",
              "cancelled",
              "timed_out",
              "denied",
              "expired"
            ]
          },
          "started_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
            "minLength": 20,
            "maxLength": 20
          },
          "completed_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
            "minLength": 20,
            "maxLength": 20
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "step_id",
                "process_uri",
                "state",
                "attempts",
                "output_sha256",
                "output_bytes",
                "effect_verified",
                "verification_refs"
              ],
              "properties": {
                "step_id": {
                  "type": "string",
                  "const": "export"
                },
                "process_uri": {
                  "type": "string",
                  "const": "telemonit://core/incidents/replay/command/export"
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "succeeded",
                    "failed",
                    "compensated",
                    "cancelled",
                    "timed_out",
                    "denied",
                    "expired",
                    "skipped"
                  ]
                },
                "attempts": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1
                },
                "output_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$",
                  "minLength": 64,
                  "maxLength": 64
                },
                "output_bytes": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 100000000
                },
                "effect_verified": {
                  "type": "boolean"
                },
                "verification_refs": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^artifact://[a-z0-9.-]+/[A-Za-z0-9._:/-]+/r[1-9][0-9]*$",
                    "maxLength": 320
                  },
                  "maxItems": 16,
                  "uniqueItems": true
                },
                "error_code": {
                  "type": "string",
                  "pattern": "^[A-Z][A-Z0-9_-]{2,63}$"
                }
              },
              "additionalProperties": false,
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "state": {
                        "const": "succeeded"
                      }
                    }
                  },
                  "then": {
                    "properties": {
                      "effect_verified": {
                        "type": "boolean",
                        "const": true
                      },
                      "attempts": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1
                      },
                      "verification_refs": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^artifact://[a-z0-9.-]+/[A-Za-z0-9._:/-]+/r[1-9][0-9]*$",
                          "maxLength": 320
                        },
                        "minItems": 1,
                        "maxItems": 16
                      }
                    }
                  }
                }
              ]
            },
            "minItems": 1,
            "maxItems": 1
          },
          "raw_output_included": {
            "type": "boolean",
            "const": false
          },
          "secret_material_included": {
            "type": "boolean",
            "const": false
          },
          "hash_profile": {
            "type": "string",
            "const": "RFC8785+SHA-256"
          },
          "receipt_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          }
        },
        "additionalProperties": false,
        "description": "Niezmienny wynik końcowy, także dla odmowy lub wygaśnięcia. succeeded wymaga readbacku pliku i artefaktu weryfikacji. needs_reconciliation w DTO ma receipt.state=failed. Hash usuwa własne receipt_hash; brak kwalifikowanego podpisu i zaufanego znacznika czasu."
      },
      "PoaReplayOptionsV12": {
        "type": "object",
        "required": [],
        "properties": {
          "frame_count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 120
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
            "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
            "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
          },
          "video_evidence_id": {
            "$ref": "#/components/schemas/Id"
          }
        },
        "additionalProperties": false,
        "description": "Prawdziwy obiekt JSON; {} jest poprawne, [] jest odrzucane. Domyślnie 6 klatek PDF lub 30 pozostałych; PDF <=24, z wideo <=12. Przedział musi mieścić się w migawce. Brak URL do plików."
      },
      "PoaReplayInputV12": {
        "type": "object",
        "required": [
          "snapshot_id",
          "snapshot_sha256"
        ],
        "properties": {
          "snapshot_id": {
            "$ref": "#/components/schemas/Id"
          },
          "snapshot_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "geojson",
              "pdf",
              "gif",
              "mp4",
              "vtt",
              "srt"
            ],
            "default": "json"
          },
          "options": {
            "$ref": "#/components/schemas/PoaReplayOptionsV12",
            "default": {}
          }
        },
        "additionalProperties": false,
        "description": "Tworzy niezmienne wejście prywatnego procesu powiązane z kontem, organizacją, kluczem API i migawką. Ten etap nie renderuje pliku. Identyczne wejście zwraca istniejący rekord.",
        "allOf": [
          {
            "if": {
              "properties": {
                "format": {
                  "const": "pdf"
                }
              },
              "required": [
                "format"
              ]
            },
            "then": {
              "properties": {
                "options": {
                  "properties": {
                    "frame_count": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 24
                    }
                  }
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "options": {
                  "required": [
                    "video_evidence_id"
                  ]
                }
              },
              "required": [
                "options"
              ]
            },
            "then": {
              "properties": {
                "options": {
                  "properties": {
                    "frame_count": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 12
                    }
                  }
                }
              }
            }
          }
        ]
      },
      "PoaReplayInputResultV12": {
        "type": "object",
        "required": [
          "input_ref",
          "input_sha256",
          "expires_at",
          "author_request"
        ],
        "properties": {
          "input_ref": {
            "type": "string",
            "pattern": "^artifact://telemonit\\.pl/poa/inputs/[a-z0-9][a-z0-9._:-]{0,95}/r1$",
            "maxLength": 320
          },
          "input_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "author_request": {
            "$ref": "#/components/schemas/PoaRequestPlanV12"
          }
        },
        "additionalProperties": false
      },
      "PoaReplayActionV12": {
        "type": "object",
        "required": [
          "plan_hash",
          "queue_revision"
        ],
        "properties": {
          "plan_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "queue_revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          }
        },
        "additionalProperties": false,
        "description": "Dokładny hash planu i bieżąca rewizja kolejki. Brak ogólnego grant/payload/URI. Rewizja jest liczbą całkowitą, nie tekstem ani liczbą zmiennoprzecinkową."
      },
      "PoaReplayCapabilitiesV12": {
        "type": "object",
        "required": [
          "process",
          "execution_configured",
          "execution_channel",
          "worker_liveness"
        ],
        "properties": {
          "process": {
            "$ref": "#/components/schemas/PoaProcessV12"
          },
          "execution_configured": {
            "type": "boolean"
          },
          "execution_channel": {
            "type": "string",
            "const": "separate_authenticated_cli_services"
          },
          "worker_liveness": {
            "type": "string",
            "const": "not_observed"
          }
        },
        "additionalProperties": false,
        "description": "execution_configured potwierdza jedynie konfigurację dwóch różnych credential hashes. Nie potwierdza uruchomienia admission/executor ani dostępności renderera; tę ostatnią sprawdź w GET /api/incidents/{incident_id}/replay."
      },
      "PoaReplayInspectV12": {
        "type": "object",
        "required": [
          "process",
          "supported_formats",
          "execution_enabled",
          "author_operations",
          "adoption"
        ],
        "properties": {
          "process": {
            "$ref": "#/components/schemas/PoaProcessV12"
          },
          "supported_formats": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "json",
                "geojson",
                "pdf",
                "gif",
                "mp4",
                "vtt",
                "srt"
              ]
            },
            "minItems": 7,
            "maxItems": 7,
            "uniqueItems": true
          },
          "execution_enabled": {
            "type": "boolean"
          },
          "author_operations": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "inspect",
                "plan"
              ]
            },
            "minItems": 2,
            "maxItems": 2,
            "uniqueItems": true
          },
          "adoption": {
            "type": "string",
            "const": "local-profile; full POA-X conformance is not claimed"
          }
        },
        "additionalProperties": false
      },
      "PoaReplayRunV12": {
        "type": "object",
        "required": [
          "id",
          "status",
          "ticket_id",
          "queue_revision",
          "plan_hash",
          "plan",
          "input_ref",
          "input_sha256",
          "input_summary",
          "expires_at",
          "created_at",
          "updated_at",
          "grant_expires_at",
          "lease_expires_at",
          "lease_revision",
          "download_url",
          "receipt_url",
          "events_url",
          "result",
          "error_code",
          "admission"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/PoaRunIdV12"
          },
          "status": {
            "type": "string",
            "enum": [
              "planned",
              "authorized",
              "admitted",
              "running",
              "succeeded",
              "failed",
              "denied",
              "expired",
              "cancelled",
              "needs_reconciliation"
            ]
          },
          "ticket_id": {
            "$ref": "#/components/schemas/Id"
          },
          "queue_revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "plan_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "plan": {
            "$ref": "#/components/schemas/PoaPlanV12"
          },
          "input_ref": {
            "type": "string",
            "pattern": "^artifact://telemonit\\.pl/poa/inputs/[a-z0-9][a-z0-9._:-]{0,95}/r1$",
            "maxLength": 320
          },
          "input_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "input_summary": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "snapshot_id",
                  "format",
                  "options",
                  "attestation_count"
                ],
                "properties": {
                  "snapshot_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "json",
                      "geojson",
                      "pdf",
                      "gif",
                      "mp4",
                      "vtt",
                      "srt"
                    ]
                  },
                  "options": {
                    "type": "object",
                    "required": [
                      "frame_count"
                    ],
                    "properties": {
                      "frame_count": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 120
                      },
                      "starts_at": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
                        "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
                      },
                      "ends_at": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?(?:Z|[+-]\\d{2}:\\d{2})$",
                        "description": "Poprawny czas 1970–2100 ze strefą i dokładnością do ms; serwer normalizuje do UTC z trzema cyframi ms."
                      },
                      "video_evidence_id": {
                        "$ref": "#/components/schemas/Id"
                      }
                    },
                    "additionalProperties": false
                  },
                  "attestation_count": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
            "minLength": 20,
            "maxLength": 20
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
            "minLength": 20,
            "maxLength": 20
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
            "minLength": 20,
            "maxLength": 20
          },
          "grant_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
                "minLength": 20,
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ]
          },
          "lease_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
                "minLength": 20,
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ]
          },
          "lease_revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "download_url": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^/api/poa/replay-export/processes/run-[a-f0-9-]{36}/file$"
              },
              {
                "type": "null"
              }
            ]
          },
          "receipt_url": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^/api/poa/replay-export/processes/run-[a-f0-9-]{36}/receipt$"
              },
              {
                "type": "null"
              }
            ]
          },
          "events_url": {
            "type": "string",
            "pattern": "^/api/poa/replay-export/processes/run-[a-f0-9-]{36}/events$"
          },
          "result": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "export_id",
                  "sha256",
                  "size_bytes",
                  "mime"
                ],
                "properties": {
                  "export_id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$",
                    "minLength": 64,
                    "maxLength": 64
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 33554432
                  },
                  "mime": {
                    "type": "string",
                    "enum": [
                      "application/json",
                      "application/geo+json",
                      "application/pdf",
                      "image/gif",
                      "video/mp4",
                      "text/vtt",
                      "application/x-subrip"
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "error_code": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Z][A-Z0-9_-]{2,63}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "admission": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "actor",
                  "decision",
                  "admission_sha256",
                  "created_at"
                ],
                "properties": {
                  "actor": {
                    "type": "string",
                    "const": "service:telemonit-replay-admission-v1"
                  },
                  "decision": {
                    "type": "string",
                    "enum": [
                      "accepted",
                      "denied"
                    ]
                  },
                  "admission_sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$",
                    "minLength": 64,
                    "maxLength": 64
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$",
                    "minLength": 20,
                    "maxLength": 20
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Prywatny proces własnego konta i organizacji. URL są względne, także w odpowiedzi /api/v1, i wymagają autoryzacji. Czysty odczyt nie uruchamia workerów ani sweepu. Wygasły czas w DTO nie zastępuje decyzji runtime; executor ponownie sprawdza lease, grant, ACL i integralność. needs_reconciliation blokuje automatyczne ponowienie."
      },
      "PoaReplayRunListV12": {
        "type": "object",
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PoaReplayRunV12"
            },
            "maxItems": 20
          }
        },
        "additionalProperties": false
      },
      "PoaReplayEventListV12": {
        "type": "object",
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PoaEventV12"
            }
          }
        },
        "additionalProperties": false
      },
      "ReplayExportInfoV12": {
        "type": "object",
        "required": [
          "id",
          "snapshot_id",
          "format",
          "mime",
          "sha256",
          "size_bytes",
          "manifest",
          "created_at",
          "expires_at",
          "download_url"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "snapshot_id": {
            "$ref": "#/components/schemas/Id"
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "geojson",
              "pdf",
              "gif",
              "mp4",
              "vtt",
              "srt"
            ]
          },
          "mime": {
            "type": "string"
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "size_bytes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 33554432
          },
          "manifest": {
            "$ref": "#/components/schemas/ReplayExportManifestV11"
          },
          "created_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "expires_at": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "download_url": {
            "type": "string"
          },
          "duplicate": {
            "type": "boolean"
          },
          "process_id": {
            "$ref": "#/components/schemas/PoaRunIdV12"
          }
        },
        "additionalProperties": false,
        "description": "Eksport ważny najwyżej 24 h i nie dłużej niż migawka/źródła. Każde pobranie sprawdza ACL i hash pliku. Eksport POA dodaje process_id po ponownej weryfikacji receipt i pliku; historyczny eksport bez procesu go nie ma."
      },
      "MapHistorySourceRefV13": {
        "type": "object",
        "required": [
          "kind",
          "id"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "point",
              "sensor",
              "person",
              "asset"
            ]
          },
          "id": {
            "$ref": "#/components/schemas/Id"
          }
        },
        "additionalProperties": false
      },
      "MapHistoryQueryV13": {
        "type": "object",
        "required": [
          "date_from",
          "date_to",
          "sources"
        ],
        "properties": {
          "date_from": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "date_to": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapHistorySourceRefV13"
            },
            "minItems": 1,
            "maxItems": 12,
            "uniqueItems": true
          }
        },
        "additionalProperties": false,
        "description": "Okres zamknięty, maksymalnie 24 godziny. Wszystkie wskazane źródła wymagają aktualnych uprawnień; błąd jednego odrzuca całe zapytanie. Bez URL dostawcy i bez wykonywania URI."
      },
      "MapHistoryExportQueryV13": {
        "type": "object",
        "required": [
          "date_from",
          "date_to",
          "sources"
        ],
        "properties": {
          "date_from": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "date_to": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapHistorySourceRefV13"
            },
            "minItems": 1,
            "maxItems": 12,
            "uniqueItems": true
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "geojson"
            ],
            "default": "json"
          }
        },
        "additionalProperties": false
      },
      "PositionHistoryPolicyChangeV13": {
        "type": "object",
        "required": [
          "enabled",
          "version"
        ],
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "consent": {
            "type": "boolean"
          },
          "audience": {
            "type": "string",
            "enum": [
              "owner",
              "source"
            ]
          },
          "retention_seconds": {
            "type": "integer",
            "minimum": 3600,
            "maximum": 2592000
          },
          "version": {
            "type": "integer",
            "minimum": 0
          }
        },
        "additionalProperties": false,
        "description": "Sesja interaktywna. Włączenie wymaga consent=true. Tylko właściciel źródła; właściciel organizacji nie zastępuje zgody drugiej osoby. Wyłączenie usuwa próbki, skrócenie retencji działa od razu."
      },
      "PositionHistoryPolicyV13": {
        "type": "object",
        "required": [
          "kind",
          "id",
          "enabled",
          "recording_active",
          "audience",
          "retention_seconds",
          "version",
          "consent_at",
          "enabled_at",
          "precision_m",
          "source_expires_at",
          "can_manage",
          "public",
          "retention_increase_applies_to",
          "stop_deletes_history"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "person",
              "asset"
            ]
          },
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "enabled": {
            "type": "boolean"
          },
          "recording_active": {
            "type": "boolean"
          },
          "audience": {
            "type": "string",
            "enum": [
              "owner",
              "source"
            ]
          },
          "retention_seconds": {
            "type": "integer",
            "minimum": 3600,
            "maximum": 2592000
          },
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "consent_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
              },
              {
                "type": "null"
              }
            ]
          },
          "precision_m": {
            "type": "integer",
            "minimum": 0
          },
          "source_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
              },
              {
                "type": "null"
              }
            ]
          },
          "can_manage": {
            "type": "boolean"
          },
          "public": {
            "type": "boolean",
            "const": false
          },
          "retention_increase_applies_to": {
            "type": "string",
            "const": "new_samples"
          },
          "stop_deletes_history": {
            "type": "boolean",
            "const": true
          },
          "samples_deleted": {
            "type": "integer",
            "minimum": 0
          }
        },
        "additionalProperties": false
      },
      "MapHistoryPointEventV13": {
        "type": "object",
        "required": [
          "id",
          "at",
          "received_at",
          "lat",
          "lng",
          "source",
          "basis",
          "label",
          "state",
          "version",
          "action",
          "snapshot"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "received_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "lat": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -90,
                "maximum": 90
              },
              {
                "type": "null"
              }
            ]
          },
          "lng": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "type": "string",
            "const": "point_snapshot"
          },
          "basis": {
            "type": "string",
            "const": "recorded"
          },
          "label": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "archived"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "action": {
            "type": "string"
          },
          "snapshot": {
            "type": "object"
          }
        },
        "additionalProperties": false
      },
      "MapHistorySensorEventV13": {
        "type": "object",
        "required": [
          "id",
          "at",
          "received_at",
          "lat",
          "lng",
          "source",
          "basis",
          "location_basis",
          "value",
          "state",
          "summary",
          "metric",
          "unit",
          "stale_at",
          "expires_at",
          "state_basis",
          "stale_policy_basis",
          "measurement_definition_basis"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "received_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "lat": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -90,
                "maximum": 90
              },
              {
                "type": "null"
              }
            ]
          },
          "lng": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "type": "string",
            "const": "sensor_reading"
          },
          "basis": {
            "type": "string",
            "const": "reported"
          },
          "location_basis": {
            "type": "string",
            "const": "current_asset_location"
          },
          "value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "metric": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "stale_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "state_basis": {
            "type": "string",
            "const": "reported"
          },
          "stale_policy_basis": {
            "type": "string",
            "const": "current_sensor_configuration"
          },
          "measurement_definition_basis": {
            "type": "string",
            "const": "current_sensor_configuration"
          }
        },
        "additionalProperties": false
      },
      "MapHistoryPositionEventV13": {
        "type": "object",
        "required": [
          "id",
          "at",
          "received_at",
          "lat",
          "lng",
          "source",
          "basis",
          "accuracy_m",
          "speed_mps",
          "precision_m",
          "expires_at",
          "physical_position_verified"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "received_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "lat": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -90,
                "maximum": 90
              },
              {
                "type": "null"
              }
            ]
          },
          "lng": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "type": "string"
          },
          "basis": {
            "type": "string",
            "const": "measured"
          },
          "accuracy_m": {
            "type": "number"
          },
          "speed_mps": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "precision_m": {
            "type": "integer",
            "minimum": 0
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "physical_position_verified": {
            "type": "boolean",
            "const": false
          }
        },
        "additionalProperties": false
      },
      "MapHistoryEventV13": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/MapHistoryPointEventV13"
          },
          {
            "$ref": "#/components/schemas/MapHistorySensorEventV13"
          },
          {
            "$ref": "#/components/schemas/MapHistoryPositionEventV13"
          }
        ]
      },
      "MapHistorySeriesV13": {
        "type": "object",
        "required": [
          "kind",
          "id",
          "label",
          "events",
          "coverage"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "point",
              "sensor",
              "person",
              "asset"
            ]
          },
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "label": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapHistoryEventV13"
            },
            "maxItems": 2000
          },
          "initial": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MapHistoryEventV13"
              },
              {
                "type": "null"
              }
            ]
          },
          "coverage": {
            "type": "object"
          },
          "time_basis": {
            "type": "string"
          },
          "location_basis": {
            "type": "string"
          },
          "stale_seconds": {
            "type": "integer",
            "minimum": 0
          },
          "stale_policy_basis": {
            "type": "string"
          },
          "state_basis": {
            "type": "string"
          },
          "measurement_definition_basis": {
            "type": "string"
          },
          "metric": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "policy": {
            "$ref": "#/components/schemas/PositionHistoryPolicyV13"
          },
          "retention_seconds": {
            "type": "integer",
            "minimum": 3600,
            "maximum": 2592000
          },
          "source_active": {
            "type": "boolean"
          },
          "server_now": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          }
        },
        "additionalProperties": false,
        "description": "Punkty i czujniki mają initial sprzed okresu; serie pozycji nie ekstrapolują i mają initial=null w agregacie. Pola typu coverage są odrębne dla poszczególnych źródeł. Lokalizacja/metyka/jednostka/okno świeżości czujnika pochodzą z bieżącej konfiguracji; reported state nie odtwarza dawnych progów i histerezy."
      },
      "MapHistoryResultV13": {
        "type": "object",
        "required": [
          "schema",
          "date_from",
          "date_to",
          "server_now",
          "series",
          "event_count",
          "limits",
          "interpolation",
          "complete",
          "notice"
        ],
        "properties": {
          "schema": {
            "type": "string",
            "const": "telemonit.map-history.v1"
          },
          "date_from": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "date_to": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "server_now": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "series": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapHistorySeriesV13"
            },
            "minItems": 1,
            "maxItems": 12
          },
          "event_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2000
          },
          "limits": {
            "type": "object",
            "required": [
              "max_sources",
              "max_events",
              "max_duration_seconds",
              "max_response_bytes"
            ],
            "properties": {
              "max_sources": {
                "type": "integer",
                "minimum": 12,
                "maximum": 12
              },
              "max_events": {
                "type": "integer",
                "minimum": 2000,
                "maximum": 2000
              },
              "max_duration_seconds": {
                "type": "integer",
                "minimum": 86400,
                "maximum": 86400
              },
              "max_response_bytes": {
                "type": "integer",
                "minimum": 4194304,
                "maximum": 4194304
              }
            },
            "additionalProperties": false
          },
          "interpolation": {
            "type": "string",
            "const": "none"
          },
          "complete": {
            "type": "boolean",
            "const": false
          },
          "notice": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "MapHistoryCatalogV13": {
        "type": "object",
        "required": [
          "sources"
        ],
        "properties": {
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "kind",
                "id",
                "label",
                "can_manage"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "point",
                    "sensor",
                    "person",
                    "asset"
                  ]
                },
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "label": {
                  "type": "string"
                },
                "can_manage": {
                  "type": "boolean"
                },
                "has_history": {
                  "type": "boolean"
                },
                "archived": {
                  "type": "boolean"
                },
                "time_basis": {
                  "type": "string"
                },
                "location_basis": {
                  "type": "string"
                },
                "metric": {
                  "type": "string"
                },
                "unit": {
                  "type": "string"
                },
                "policy": {
                  "$ref": "#/components/schemas/PositionHistoryPolicyV13"
                },
                "source": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "MapHistoryGeoJsonV13": {
        "type": "object",
        "required": [
          "type",
          "schema",
          "date_from",
          "date_to",
          "server_now",
          "interpolation",
          "notice",
          "coverage",
          "features"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "FeatureCollection"
          },
          "schema": {
            "type": "string",
            "const": "telemonit.map-history.geojson.v1"
          },
          "date_from": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "date_to": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "server_now": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "interpolation": {
            "type": "string",
            "const": "none"
          },
          "notice": {
            "type": "string"
          },
          "coverage": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "features": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "maxItems": 2000
          }
        },
        "additionalProperties": false,
        "description": "Osobny Feature Point lub null dla każdego zapisu, także initial. properties zawiera czas i podstawę obserwacji oraz identyfikację serii. Bez LineString, bez wyznaczania trasy i bez historycznych kafelków."
      },
      "WorkSelectorsInputV14": {
        "type": "object",
        "required": [],
        "properties": {
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100,
            "uniqueItems": true
          },
          "team_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "owner",
                "editor",
                "member"
              ]
            },
            "maxItems": 3,
            "uniqueItems": true
          }
        },
        "additionalProperties": false
      },
      "WorkSelectorsV14": {
        "type": "object",
        "required": [
          "user_ids",
          "team_ids",
          "roles"
        ],
        "properties": {
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100,
            "uniqueItems": true
          },
          "team_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "owner",
                "editor",
                "member"
              ]
            },
            "maxItems": 3,
            "uniqueItems": true
          }
        },
        "additionalProperties": false
      },
      "WorkScopeInputV14": {
        "type": "object",
        "required": [],
        "properties": {
          "org": {
            "type": "boolean"
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100,
            "uniqueItems": true
          },
          "team_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "owner",
                "editor",
                "member"
              ]
            },
            "maxItems": 3,
            "uniqueItems": true
          }
        },
        "additionalProperties": false
      },
      "WorkScopeV14": {
        "type": "object",
        "required": [
          "org",
          "user_ids",
          "team_ids",
          "roles"
        ],
        "properties": {
          "org": {
            "type": "boolean"
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100,
            "uniqueItems": true
          },
          "team_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "owner",
                "editor",
                "member"
              ]
            },
            "maxItems": 3,
            "uniqueItems": true
          }
        },
        "additionalProperties": false
      },
      "WorkGrantsInputV14": {
        "type": "object",
        "required": [],
        "properties": {
          "read": {
            "$ref": "#/components/schemas/WorkScopeInputV14"
          },
          "edit": {
            "$ref": "#/components/schemas/WorkScopeInputV14"
          }
        },
        "additionalProperties": false
      },
      "WorkGrantsV14": {
        "type": "object",
        "required": [
          "read",
          "edit"
        ],
        "properties": {
          "read": {
            "$ref": "#/components/schemas/WorkScopeV14"
          },
          "edit": {
            "$ref": "#/components/schemas/WorkScopeV14"
          }
        },
        "additionalProperties": false
      },
      "WorkClockWindowV14": {
        "type": "object",
        "required": [
          "start",
          "end"
        ],
        "properties": {
          "start": {
            "type": "string",
            "pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$"
          },
          "end": {
            "type": "string",
            "pattern": "^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$"
          }
        },
        "additionalProperties": false,
        "description": "Koniec późniejszy niż początek; nocne okno należy podzielić na dwa dni."
      },
      "WorkWeeklyWindowV14": {
        "type": "object",
        "required": [
          "weekdays",
          "start",
          "end"
        ],
        "properties": {
          "weekdays": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 7
            },
            "minItems": 1,
            "maxItems": 7,
            "uniqueItems": true
          },
          "start": {
            "type": "string",
            "pattern": "^(?:[01][0-9]|2[0-3]):[0-5][0-9]$"
          },
          "end": {
            "type": "string",
            "pattern": "^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$"
          }
        },
        "additionalProperties": false
      },
      "WorkDateWindowV14": {
        "type": "object",
        "required": [
          "date",
          "windows"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "windows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkClockWindowV14"
            },
            "maxItems": 8
          }
        },
        "additionalProperties": false
      },
      "WorkAccessWindowsInputV14": {
        "type": "object",
        "required": [],
        "properties": {
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Identyfikator strefy IANA, np. Europe/Warsaw lub UTC."
          },
          "weekly": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkWeeklyWindowV14"
            },
            "maxItems": 28
          },
          "exceptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkDateWindowV14"
            },
            "maxItems": 32
          }
        },
        "additionalProperties": false,
        "description": "Wyjątek daty zastępuje okna tygodniowe. Pusta lista okien zamyka dzień; null oznacza brak deklaracji."
      },
      "WorkAccessWindowsV14": {
        "type": "object",
        "required": [
          "timezone",
          "weekly",
          "exceptions"
        ],
        "properties": {
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Identyfikator strefy IANA, np. Europe/Warsaw lub UTC."
          },
          "weekly": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkWeeklyWindowV14"
            },
            "maxItems": 28
          },
          "exceptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkDateWindowV14"
            },
            "maxItems": 32
          }
        },
        "additionalProperties": false
      },
      "WorkConstraintsInputV14": {
        "type": "object",
        "required": [],
        "properties": {
          "min_temperature_c": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -100,
                "maximum": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "max_temperature_c": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -100,
                "maximum": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "max_wind_gust_kmh": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 500
              },
              {
                "type": "null"
              }
            ]
          },
          "max_precipitation_mm": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 1000
              },
              {
                "type": "null"
              }
            ]
          },
          "min_visibility_m": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 100000
              },
              {
                "type": "null"
              }
            ]
          },
          "daylight_only": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Min temperatura nie może przekraczać max. Progi deklaruje użytkownik; nie stanowią zgody na pracę."
      },
      "WorkConstraintsV14": {
        "type": "object",
        "required": [
          "min_temperature_c",
          "max_temperature_c",
          "max_wind_gust_kmh",
          "max_precipitation_mm",
          "min_visibility_m",
          "daylight_only"
        ],
        "properties": {
          "min_temperature_c": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -100,
                "maximum": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "max_temperature_c": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -100,
                "maximum": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "max_wind_gust_kmh": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 500
              },
              {
                "type": "null"
              }
            ]
          },
          "max_precipitation_mm": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 1000
              },
              {
                "type": "null"
              }
            ]
          },
          "min_visibility_m": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 100000
              },
              {
                "type": "null"
              }
            ]
          },
          "daylight_only": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "WorkVisitInputV14": {
        "type": "object",
        "required": [
          "title",
          "object_id",
          "starts_at",
          "ends_at"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "object_id": {
            "$ref": "#/components/schemas/Id"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Identyfikator strefy IANA, np. Europe/Warsaw lub UTC."
          },
          "technical_requirements": {
            "type": "string",
            "maxLength": 5000
          },
          "access_contact": {
            "type": "string",
            "maxLength": 500
          },
          "environment": {
            "type": "string",
            "enum": [
              "indoor",
              "outdoor",
              "mixed"
            ]
          },
          "assignments": {
            "$ref": "#/components/schemas/WorkSelectorsInputV14"
          },
          "depends_on": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 30,
            "uniqueItems": true
          },
          "access_windows": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkAccessWindowsInputV14"
              },
              {
                "type": "null"
              }
            ]
          },
          "constraints": {
            "$ref": "#/components/schemas/WorkConstraintsInputV14"
          }
        },
        "additionalProperties": false,
        "description": "Pełna wizyta trwa 1–86400 sekund. Terminy mają sekundy i jawny offset/Z; offset lokalny musi odpowiadać strefie i DST. Przypisania nie nadają dostępu do punktu. Zależności tylko w tym planie, bez cykli."
      },
      "WorkVisitPatchV14": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "object_id": {
            "$ref": "#/components/schemas/Id"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Identyfikator strefy IANA, np. Europe/Warsaw lub UTC."
          },
          "technical_requirements": {
            "type": "string",
            "maxLength": 5000
          },
          "access_contact": {
            "type": "string",
            "maxLength": 500
          },
          "environment": {
            "type": "string",
            "enum": [
              "indoor",
              "outdoor",
              "mixed"
            ]
          },
          "assignments": {
            "$ref": "#/components/schemas/WorkSelectorsInputV14"
          },
          "depends_on": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 30,
            "uniqueItems": true
          },
          "access_windows": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkAccessWindowsInputV14"
              },
              {
                "type": "null"
              }
            ]
          },
          "constraints": {
            "$ref": "#/components/schemas/WorkConstraintsInputV14"
          }
        },
        "additionalProperties": false,
        "description": "Aktualizacja istniejącej wizyty przez id. Pola definition są zapisywalne; status ma osobny endpoint."
      },
      "WorkVisitUpsertInputV14": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/WorkVisitInputV14"
          },
          {
            "$ref": "#/components/schemas/WorkVisitPatchV14"
          }
        ]
      },
      "WorkVisitDefinitionV14": {
        "type": "object",
        "required": [
          "id",
          "title",
          "object_id",
          "starts_at",
          "ends_at",
          "timezone",
          "technical_requirements",
          "access_contact",
          "environment",
          "assignments",
          "depends_on",
          "access_windows",
          "constraints"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "object_id": {
            "$ref": "#/components/schemas/Id"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Identyfikator strefy IANA, np. Europe/Warsaw lub UTC."
          },
          "technical_requirements": {
            "type": "string",
            "maxLength": 5000
          },
          "access_contact": {
            "type": "string",
            "maxLength": 500
          },
          "environment": {
            "type": "string",
            "enum": [
              "indoor",
              "outdoor",
              "mixed"
            ]
          },
          "assignments": {
            "$ref": "#/components/schemas/WorkSelectorsV14"
          },
          "depends_on": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 30,
            "uniqueItems": true
          },
          "access_windows": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkAccessWindowsV14"
              },
              {
                "type": "null"
              }
            ]
          },
          "constraints": {
            "$ref": "#/components/schemas/WorkConstraintsV14"
          }
        },
        "additionalProperties": false
      },
      "WorkPointSnapshotV14": {
        "type": "object",
        "required": [
          "id",
          "version",
          "name",
          "lat",
          "lng"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "name": {
            "type": "string"
          },
          "lat": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "lng": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          }
        },
        "additionalProperties": false
      },
      "WorkVisitV14": {
        "type": "object",
        "required": [
          "id",
          "title",
          "object_id",
          "starts_at",
          "ends_at",
          "timezone",
          "technical_requirements",
          "access_contact",
          "environment",
          "assignments",
          "depends_on",
          "access_windows",
          "constraints",
          "definition",
          "status",
          "can_update_status",
          "lat",
          "lng",
          "point_name",
          "point_archived",
          "point_at_revision",
          "point_changed",
          "resolved_user_ids",
          "assignment_issues",
          "assignment_changed",
          "duration_minutes"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "object_id": {
            "$ref": "#/components/schemas/Id"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Identyfikator strefy IANA, np. Europe/Warsaw lub UTC."
          },
          "technical_requirements": {
            "type": "string",
            "maxLength": 5000
          },
          "access_contact": {
            "type": "string",
            "maxLength": 500
          },
          "environment": {
            "type": "string",
            "enum": [
              "indoor",
              "outdoor",
              "mixed"
            ]
          },
          "assignments": {
            "$ref": "#/components/schemas/WorkSelectorsV14"
          },
          "depends_on": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 30,
            "uniqueItems": true
          },
          "access_windows": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkAccessWindowsV14"
              },
              {
                "type": "null"
              }
            ]
          },
          "constraints": {
            "$ref": "#/components/schemas/WorkConstraintsV14"
          },
          "definition": {
            "$ref": "#/components/schemas/WorkVisitDefinitionV14"
          },
          "status": {
            "type": "string",
            "enum": [
              "planned",
              "in_progress",
              "done",
              "cancelled"
            ]
          },
          "can_update_status": {
            "type": "boolean"
          },
          "lat": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "lng": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "point_name": {
            "type": "string"
          },
          "point_archived": {
            "type": "boolean"
          },
          "point_at_revision": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkPointSnapshotV14"
              },
              {
                "type": "null"
              }
            ]
          },
          "point_changed": {
            "type": "boolean"
          },
          "resolved_user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100
          },
          "assignment_issues": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "assignment_changed": {
            "type": "boolean"
          },
          "duration_minutes": {
            "type": "number",
            "minimum": 0.016666666666666666,
            "maximum": 1440
          }
        },
        "additionalProperties": false
      },
      "WorkGeometryV14": {
        "oneOf": [
          {
            "type": "object",
            "required": [
              "type",
              "coordinates"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "LineString"
              },
              "coordinates": {
                "type": "array",
                "items": {
                  "type": "array",
                  "prefixItems": [
                    {
                      "type": "number",
                      "minimum": -180,
                      "maximum": 180
                    },
                    {
                      "type": "number",
                      "minimum": -90,
                      "maximum": 90
                    }
                  ],
                  "items": false,
                  "minItems": 2,
                  "maxItems": 2
                },
                "minItems": 2,
                "maxItems": 200
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "type",
              "coordinates"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "Polygon"
              },
              "coordinates": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "number",
                        "minimum": -180,
                        "maximum": 180
                      },
                      {
                        "type": "number",
                        "minimum": -90,
                        "maximum": 90
                      }
                    ],
                    "items": false,
                    "minItems": 2,
                    "maxItems": 2
                  },
                  "minItems": 4,
                  "maxItems": 200
                },
                "minItems": 1,
                "maxItems": 1
              }
            },
            "additionalProperties": false
          }
        ],
        "description": "GeoJSON [lng,lat]. Polygon: jeden zamknięty pierścień bez otworów i samoprzecięć. Brak odcinków przez antypołudnik; łącznie do 500 wierzchołków planu."
      },
      "WorkFeatureInputV14": {
        "type": "object",
        "required": [
          "title",
          "kind",
          "geometry",
          "valid_from",
          "valid_to"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "kind": {
            "type": "string",
            "enum": [
              "route",
              "operation_area",
              "hazard_area"
            ]
          },
          "geometry": {
            "$ref": "#/components/schemas/WorkGeometryV14"
          },
          "valid_from": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "valid_to": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "lifecycle": {
            "type": "string",
            "enum": [
              "proposed",
              "approved",
              "active",
              "retired"
            ]
          },
          "description": {
            "type": "string",
            "maxLength": 2000
          }
        },
        "additionalProperties": false,
        "description": "Ważność najwyżej 366 dni. route wymaga LineString, obszary Polygon. Ręczna deklaracja nie modyfikuje sieci drogowej dostawcy ani publicznych pozwoleń.",
        "allOf": [
          {
            "if": {
              "required": [
                "kind"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "route"
                }
              }
            },
            "then": {
              "properties": {
                "geometry": {
                  "type": "object",
                  "required": [
                    "type",
                    "coordinates"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "LineString"
                    },
                    "coordinates": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number",
                            "minimum": -180,
                            "maximum": 180
                          },
                          {
                            "type": "number",
                            "minimum": -90,
                            "maximum": 90
                          }
                        ],
                        "items": false,
                        "minItems": 2,
                        "maxItems": 2
                      },
                      "minItems": 2,
                      "maxItems": 200
                    }
                  },
                  "additionalProperties": false
                }
              }
            },
            "else": {
              "properties": {
                "geometry": {
                  "type": "object",
                  "required": [
                    "type",
                    "coordinates"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "Polygon"
                    },
                    "coordinates": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "prefixItems": [
                            {
                              "type": "number",
                              "minimum": -180,
                              "maximum": 180
                            },
                            {
                              "type": "number",
                              "minimum": -90,
                              "maximum": 90
                            }
                          ],
                          "items": false,
                          "minItems": 2,
                          "maxItems": 2
                        },
                        "minItems": 4,
                        "maxItems": 200
                      },
                      "minItems": 1,
                      "maxItems": 1
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        ]
      },
      "WorkFeaturePatchV14": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "kind": {
            "type": "string",
            "enum": [
              "route",
              "operation_area",
              "hazard_area"
            ]
          },
          "geometry": {
            "$ref": "#/components/schemas/WorkGeometryV14"
          },
          "valid_from": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "valid_to": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "lifecycle": {
            "type": "string",
            "enum": [
              "proposed",
              "approved",
              "active",
              "retired"
            ]
          },
          "description": {
            "type": "string",
            "maxLength": 2000
          }
        },
        "additionalProperties": false
      },
      "WorkFeatureUpsertInputV14": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/WorkFeatureInputV14"
          },
          {
            "$ref": "#/components/schemas/WorkFeaturePatchV14"
          }
        ]
      },
      "WorkFeatureDefinitionV14": {
        "type": "object",
        "required": [
          "id",
          "title",
          "kind",
          "geometry",
          "valid_from",
          "valid_to",
          "lifecycle",
          "description"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "kind": {
            "type": "string",
            "enum": [
              "route",
              "operation_area",
              "hazard_area"
            ]
          },
          "geometry": {
            "$ref": "#/components/schemas/WorkGeometryV14"
          },
          "valid_from": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "valid_to": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "lifecycle": {
            "type": "string",
            "enum": [
              "proposed",
              "approved",
              "active",
              "retired"
            ]
          },
          "description": {
            "type": "string",
            "maxLength": 2000
          }
        },
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "required": [
                "kind"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "route"
                }
              }
            },
            "then": {
              "properties": {
                "geometry": {
                  "type": "object",
                  "required": [
                    "type",
                    "coordinates"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "LineString"
                    },
                    "coordinates": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number",
                            "minimum": -180,
                            "maximum": 180
                          },
                          {
                            "type": "number",
                            "minimum": -90,
                            "maximum": 90
                          }
                        ],
                        "items": false,
                        "minItems": 2,
                        "maxItems": 2
                      },
                      "minItems": 2,
                      "maxItems": 200
                    }
                  },
                  "additionalProperties": false
                }
              }
            },
            "else": {
              "properties": {
                "geometry": {
                  "type": "object",
                  "required": [
                    "type",
                    "coordinates"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "Polygon"
                    },
                    "coordinates": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "prefixItems": [
                            {
                              "type": "number",
                              "minimum": -180,
                              "maximum": 180
                            },
                            {
                              "type": "number",
                              "minimum": -90,
                              "maximum": 90
                            }
                          ],
                          "items": false,
                          "minItems": 2,
                          "maxItems": 2
                        },
                        "minItems": 4,
                        "maxItems": 200
                      },
                      "minItems": 1,
                      "maxItems": 1
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        ]
      },
      "WorkFeatureV14": {
        "type": "object",
        "required": [
          "id",
          "title",
          "kind",
          "geometry",
          "valid_from",
          "valid_to",
          "lifecycle",
          "description",
          "definition",
          "source",
          "authoritative_public_road"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "kind": {
            "type": "string",
            "enum": [
              "route",
              "operation_area",
              "hazard_area"
            ]
          },
          "geometry": {
            "$ref": "#/components/schemas/WorkGeometryV14"
          },
          "valid_from": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "valid_to": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "lifecycle": {
            "type": "string",
            "enum": [
              "proposed",
              "approved",
              "active",
              "retired"
            ]
          },
          "description": {
            "type": "string",
            "maxLength": 2000
          },
          "definition": {
            "$ref": "#/components/schemas/WorkFeatureDefinitionV14"
          },
          "source": {
            "type": "string",
            "const": "manual_declaration"
          },
          "authoritative_public_road": {
            "type": "boolean",
            "const": false
          }
        },
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "required": [
                "kind"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "route"
                }
              }
            },
            "then": {
              "properties": {
                "geometry": {
                  "type": "object",
                  "required": [
                    "type",
                    "coordinates"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "LineString"
                    },
                    "coordinates": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number",
                            "minimum": -180,
                            "maximum": 180
                          },
                          {
                            "type": "number",
                            "minimum": -90,
                            "maximum": 90
                          }
                        ],
                        "items": false,
                        "minItems": 2,
                        "maxItems": 2
                      },
                      "minItems": 2,
                      "maxItems": 200
                    }
                  },
                  "additionalProperties": false
                }
              }
            },
            "else": {
              "properties": {
                "geometry": {
                  "type": "object",
                  "required": [
                    "type",
                    "coordinates"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "Polygon"
                    },
                    "coordinates": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "prefixItems": [
                            {
                              "type": "number",
                              "minimum": -180,
                              "maximum": 180
                            },
                            {
                              "type": "number",
                              "minimum": -90,
                              "maximum": 90
                            }
                          ],
                          "items": false,
                          "minItems": 2,
                          "maxItems": 2
                        },
                        "minItems": 4,
                        "maxItems": 200
                      },
                      "minItems": 1,
                      "maxItems": 1
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        ]
      },
      "WorkPlanCreateV14": {
        "type": "object",
        "required": [
          "request_id",
          "title",
          "contractor_user_id"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[a-zA-Z0-9_-]{8,80}$"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "technical_scope": {
            "type": "string",
            "maxLength": 8000
          },
          "requirements": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            },
            "maxItems": 40
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Identyfikator strefy IANA, np. Europe/Warsaw lub UTC."
          },
          "client_user_id": {
            "$ref": "#/components/schemas/Id"
          },
          "contractor_user_id": {
            "$ref": "#/components/schemas/Id"
          },
          "link": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "kind",
                  "id"
                ],
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "contract",
                      "service_order",
                      "marketplace_job"
                    ]
                  },
                  "id": {
                    "$ref": "#/components/schemas/Id"
                  }
                },
                "additionalProperties": false,
                "description": "Powiązanie zachowuje prywatne uprawnienia źródła; obie strony muszą mieć do niego dostęp."
              },
              {
                "type": "null"
              }
            ]
          },
          "visits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkVisitInputV14"
            },
            "maxItems": 30
          },
          "features": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkFeatureInputV14"
            },
            "maxItems": 20
          }
        },
        "additionalProperties": false,
        "description": "Tylko właściciel organizacji. Domyślnie prywatny szkic. Strony muszą być różnymi aktualnymi członkami; klient domyślnie jest twórcą. Do 30 wizyt, 20 figur i 256 KiB znormalizowanej propozycji. Powtórzenie tego samego request_id i danych zwraca duplicate=true."
      },
      "WorkPlanPatchV14": {
        "type": "object",
        "required": [
          "request_id",
          "version"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[a-zA-Z0-9_-]{8,80}$"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "technical_scope": {
            "type": "string",
            "maxLength": 8000
          },
          "requirements": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            },
            "maxItems": 40
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Identyfikator strefy IANA, np. Europe/Warsaw lub UTC."
          },
          "client_user_id": {
            "$ref": "#/components/schemas/Id"
          },
          "contractor_user_id": {
            "$ref": "#/components/schemas/Id"
          },
          "link": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "kind",
                  "id"
                ],
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "contract",
                      "service_order",
                      "marketplace_job"
                    ]
                  },
                  "id": {
                    "$ref": "#/components/schemas/Id"
                  }
                },
                "additionalProperties": false,
                "description": "Powiązanie zachowuje prywatne uprawnienia źródła; obie strony muszą mieć do niego dostęp."
              },
              {
                "type": "null"
              }
            ]
          },
          "visits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkVisitInputV14"
            },
            "maxItems": 30
          },
          "features": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkFeatureInputV14"
            },
            "maxItems": 20
          }
        },
        "additionalProperties": false,
        "description": "Częściowa zmiana propozycji. Listy visits/features zastępują całe listy. Zwiększa version i revision, wraca do draft i unieważnia aktualne zgody obu stron. Pola punktów/ekip bazowych wylicza serwer."
      },
      "WorkVisitSaveV14": {
        "type": "object",
        "required": [
          "request_id",
          "version",
          "visit"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[a-zA-Z0-9_-]{8,80}$"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "visit": {
            "$ref": "#/components/schemas/WorkVisitUpsertInputV14"
          }
        },
        "additionalProperties": false
      },
      "WorkGeometrySaveV14": {
        "type": "object",
        "required": [
          "request_id",
          "version",
          "feature"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[a-zA-Z0-9_-]{8,80}$"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "feature": {
            "$ref": "#/components/schemas/WorkFeatureUpsertInputV14"
          }
        },
        "additionalProperties": false
      },
      "WorkPlanAckInputV14": {
        "type": "object",
        "required": [
          "request_id",
          "version",
          "revision",
          "party",
          "consent"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[a-zA-Z0-9_-]{8,80}$"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "party": {
            "type": "string",
            "enum": [
              "client",
              "contractor"
            ]
          },
          "consent": {
            "type": "boolean",
            "const": true
          }
        },
        "additionalProperties": false,
        "description": "Tylko osobista sesja wskazanej strony. Bieżący plan bez konfliktów, ze zgodnymi źródłami i co najmniej jedną wizytą. To zapis uzgodnienia, nie kwalifikowany podpis elektroniczny."
      },
      "WorkPlanGrantsInputV14": {
        "type": "object",
        "required": [
          "request_id",
          "version",
          "grants"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[a-zA-Z0-9_-]{8,80}$"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "grants": {
            "$ref": "#/components/schemas/WorkGrantsInputV14"
          }
        },
        "additionalProperties": false
      },
      "WorkPlanStatusInputV14": {
        "type": "object",
        "required": [
          "request_id",
          "version",
          "status"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[a-zA-Z0-9_-]{8,80}$"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "proposed",
              "in_progress",
              "completed",
              "cancelled"
            ]
          }
        },
        "additionalProperties": false,
        "description": "Przejścia: draft→proposed/cancelled; proposed→draft/in_progress/cancelled; in_progress→proposed/completed/cancelled; completed/cancelled→draft tylko właściciel. Start wymaga obu aktualnych zgód, zakończenie wszystkich wizyt done/cancelled."
      },
      "WorkVisitStatusInputV14": {
        "type": "object",
        "required": [
          "request_id",
          "version",
          "status"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[a-zA-Z0-9_-]{8,80}$"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "status": {
            "type": "string",
            "enum": [
              "planned",
              "in_progress",
              "done",
              "cancelled"
            ]
          }
        },
        "additionalProperties": false,
        "description": "Edytor lub aktualny wykonawca wizyty. planned→in_progress/cancelled, in_progress→done/cancelled, cancelled→planned. Start: plan in_progress, aktualne zgody, brak konfliktów i wszystkie depends_on zakończone."
      },
      "WorkVerificationV14": {
        "type": "object",
        "required": [
          "valid",
          "issues",
          "checked_at",
          "cross_plan_conflicts",
          "travel_time_checked",
          "automatic_schedule_solver"
        ],
        "properties": {
          "valid": {
            "type": "boolean"
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "code",
                "severity",
                "message",
                "visit_ids"
              ],
              "properties": {
                "code": {
                  "type": "string"
                },
                "severity": {
                  "type": "string",
                  "enum": [
                    "warning",
                    "error"
                  ]
                },
                "message": {
                  "type": "string"
                },
                "visit_ids": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Id"
                  }
                }
              },
              "additionalProperties": false
            }
          },
          "checked_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "cross_plan_conflicts": {
            "type": "string",
            "const": "authorized_proposed_or_active_plans_only"
          },
          "travel_time_checked": {
            "type": "boolean",
            "const": false
          },
          "automatic_schedule_solver": {
            "type": "boolean",
            "const": false
          }
        },
        "additionalProperties": false
      },
      "WorkPlanV14": {
        "type": "object",
        "required": [
          "title",
          "technical_scope",
          "requirements",
          "timezone",
          "client_user_id",
          "contractor_user_id",
          "link",
          "visits",
          "features",
          "point_snapshots",
          "assignment_snapshots",
          "id",
          "workspace_id",
          "creator_id",
          "status",
          "version",
          "revision",
          "proposal_hash",
          "acknowledgements",
          "agreement_status",
          "can_edit",
          "can_share",
          "can_ack_client",
          "can_ack_contractor",
          "grants",
          "verification",
          "created_at",
          "updated_at",
          "public"
        ],
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "technical_scope": {
            "type": "string",
            "maxLength": 8000
          },
          "requirements": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            },
            "maxItems": 40
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Identyfikator strefy IANA, np. Europe/Warsaw lub UTC."
          },
          "client_user_id": {
            "$ref": "#/components/schemas/Id"
          },
          "contractor_user_id": {
            "$ref": "#/components/schemas/Id"
          },
          "link": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "kind",
                  "id"
                ],
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "contract",
                      "service_order",
                      "marketplace_job"
                    ]
                  },
                  "id": {
                    "$ref": "#/components/schemas/Id"
                  }
                },
                "additionalProperties": false,
                "description": "Powiązanie zachowuje prywatne uprawnienia źródła; obie strony muszą mieć do niego dostęp."
              },
              {
                "type": "null"
              }
            ]
          },
          "visits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkVisitV14"
            },
            "maxItems": 30
          },
          "features": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkFeatureV14"
            },
            "maxItems": 20
          },
          "point_snapshots": {
            "type": "object",
            "maxProperties": 30,
            "propertyNames": {
              "type": "string",
              "format": "uuid"
            },
            "additionalProperties": {
              "$ref": "#/components/schemas/WorkPointSnapshotV14"
            },
            "description": "Mapa według UUID wizyty; pusty plan zwraca {}."
          },
          "assignment_snapshots": {
            "type": "object",
            "maxProperties": 30,
            "propertyNames": {
              "type": "string",
              "format": "uuid"
            },
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/Id"
              },
              "maxItems": 100
            },
            "description": "Mapa według UUID wizyty; pusty plan zwraca {}."
          },
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "workspace_id": {
            "$ref": "#/components/schemas/Id"
          },
          "creator_id": {
            "$ref": "#/components/schemas/Id"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "proposed",
              "in_progress",
              "completed",
              "cancelled"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "proposal_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "acknowledgements": {
            "type": "object",
            "required": [
              "client",
              "contractor"
            ],
            "properties": {
              "client": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "user_id",
                      "revision",
                      "at",
                      "proposal_hash"
                    ],
                    "properties": {
                      "user_id": {
                        "$ref": "#/components/schemas/Id"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 2147483647
                      },
                      "at": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                      },
                      "proposal_hash": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "contractor": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "user_id",
                      "revision",
                      "at",
                      "proposal_hash"
                    ],
                    "properties": {
                      "user_id": {
                        "$ref": "#/components/schemas/Id"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 2147483647
                      },
                      "at": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                      },
                      "proposal_hash": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "agreement_status": {
            "type": "string",
            "enum": [
              "pending",
              "acknowledged"
            ]
          },
          "can_edit": {
            "type": "boolean"
          },
          "can_share": {
            "type": "boolean"
          },
          "can_ack_client": {
            "type": "boolean"
          },
          "can_ack_contractor": {
            "type": "boolean"
          },
          "grants": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkGrantsV14"
              },
              {
                "type": "null"
              }
            ]
          },
          "verification": {
            "$ref": "#/components/schemas/WorkVerificationV14"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "public": {
            "type": "boolean",
            "const": false
          },
          "duplicate": {
            "type": "boolean",
            "const": true
          }
        },
        "additionalProperties": false,
        "description": "Version rośnie przy każdym zapisie; revision przy zmianie propozycji. Bazowe punkty i resolved assignments wiążą proposal_hash. Aktualny odczyt ponawia uprawnienia do organizacji, planu, wszystkich punktów i powiązanego zlecenia."
      },
      "WorkPlanSummaryV14": {
        "type": "object",
        "required": [
          "id",
          "title",
          "timezone",
          "status",
          "version",
          "revision",
          "visit_count",
          "can_edit",
          "updated_at"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string"
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Identyfikator strefy IANA, np. Europe/Warsaw lub UTC."
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "proposed",
              "in_progress",
              "completed",
              "cancelled"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "visit_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 30
          },
          "can_edit": {
            "type": "boolean"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          }
        },
        "additionalProperties": false
      },
      "WorkPlanListV14": {
        "type": "object",
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkPlanSummaryV14"
            },
            "maxItems": 200
          }
        },
        "additionalProperties": false
      },
      "WorkContextV14": {
        "type": "object",
        "required": [
          "user",
          "workspace",
          "scope",
          "permissions"
        ],
        "properties": {
          "user": {
            "type": "object",
            "required": [
              "id",
              "name",
              "email",
              "is_admin"
            ],
            "properties": {
              "id": {
                "$ref": "#/components/schemas/Id"
              },
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string",
                "format": "email"
              },
              "is_admin": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          },
          "workspace": {
            "type": "object",
            "required": [
              "id",
              "name"
            ],
            "properties": {
              "id": {
                "$ref": "#/components/schemas/Id"
              },
              "name": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "scope": {
            "type": "string",
            "enum": [
              "workspace",
              "points"
            ]
          },
          "permissions": {
            "$ref": "#/components/schemas/ThinClientPermissionsV9"
          },
          "api_key_id": {
            "$ref": "#/components/schemas/Id"
          },
          "work_plan_api_scopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "uniqueItems": true
          }
        },
        "additionalProperties": false,
        "description": "Aktualny kontekst; klucz może dodać swój identyfikator i zakresy, bez tokenu i CSRF."
      },
      "WorkTeamV14": {
        "type": "object",
        "required": [
          "id",
          "name",
          "created_at",
          "revoked_at",
          "user_ids"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "name": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "revoked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
              },
              {
                "type": "null"
              }
            ]
          },
          "user_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "maxItems": 100
          }
        },
        "additionalProperties": false
      },
      "WorkStateV14": {
        "type": "object",
        "required": [
          "context",
          "plans",
          "points",
          "members",
          "teams",
          "roles",
          "permissions",
          "limits"
        ],
        "properties": {
          "context": {
            "$ref": "#/components/schemas/WorkContextV14"
          },
          "plans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkPlanSummaryV14"
            },
            "maxItems": 200
          },
          "points": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "number",
                "lat",
                "lng",
                "type"
              ],
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "name": {
                  "type": "string"
                },
                "number": {
                  "type": "string"
                },
                "lat": {
                  "type": "number",
                  "minimum": -90,
                  "maximum": 90
                },
                "lng": {
                  "type": "number",
                  "minimum": -180,
                  "maximum": 180
                },
                "type": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "maxItems": 500
          },
          "members": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "role"
              ],
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "name": {
                  "type": "string"
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "owner",
                    "editor",
                    "member"
                  ]
                }
              },
              "additionalProperties": false
            },
            "maxItems": 500
          },
          "teams": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkTeamV14"
            }
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "label"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "enum": [
                    "owner",
                    "editor",
                    "member"
                  ]
                },
                "label": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "minItems": 3,
            "maxItems": 3
          },
          "permissions": {
            "type": "object",
            "required": [
              "can_create"
            ],
            "properties": {
              "can_create": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "required": [
              "visits",
              "features",
              "vertices",
              "proposal_bytes"
            ],
            "properties": {
              "visits": {
                "type": "integer",
                "minimum": 30,
                "maximum": 30
              },
              "features": {
                "type": "integer",
                "minimum": 20,
                "maximum": 20
              },
              "vertices": {
                "type": "integer",
                "minimum": 500,
                "maximum": 500
              },
              "proposal_bytes": {
                "type": "integer",
                "minimum": 262144,
                "maximum": 262144
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "WorkConditionsInputV14": {
        "type": "object",
        "required": [
          "version",
          "consent"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "consent": {
            "type": "boolean",
            "const": true
          },
          "origin": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "lat",
                  "lng"
                ],
                "properties": {
                  "lat": {
                    "type": "number",
                    "minimum": -90,
                    "maximum": 90
                  },
                  "lng": {
                    "type": "number",
                    "minimum": -180,
                    "maximum": 180
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "depart_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Edytor potwierdza przekazanie punktu i terminu skonfigurowanym dostawcom oraz udostępnienie podsumowania czytelnikom planu. origin wymaga depart_at: od teraz−60 s do roku. Surowy origin nie jest przechowywany; wynik 5 min, retencja 24 h. Zmiana punktu lub revision unieważnia dopasowanie.",
        "allOf": [
          {
            "if": {
              "required": [
                "origin"
              ],
              "properties": {
                "origin": {
                  "type": "object"
                }
              }
            },
            "then": {
              "required": [
                "depart_at"
              ],
              "properties": {
                "depart_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
                }
              }
            }
          },
          {
            "if": {
              "required": [
                "depart_at"
              ],
              "properties": {
                "depart_at": {
                  "type": "string"
                }
              }
            },
            "then": {
              "required": [
                "origin"
              ],
              "properties": {
                "origin": {
                  "type": "object",
                  "required": [
                    "lat",
                    "lng"
                  ],
                  "properties": {
                    "lat": {
                      "type": "number",
                      "minimum": -90,
                      "maximum": 90
                    },
                    "lng": {
                      "type": "number",
                      "minimum": -180,
                      "maximum": 180
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        ]
      },
      "WorkProvidersV14": {
        "type": "object",
        "required": [
          "weather",
          "traffic"
        ],
        "properties": {
          "weather": {
            "type": "object",
            "required": [
              "provider",
              "tier",
              "configured",
              "terms_confirmed"
            ],
            "properties": {
              "provider": {
                "type": "string",
                "enum": [
                  "none",
                  "open_meteo"
                ]
              },
              "tier": {
                "type": "string",
                "enum": [
                  "commercial",
                  "noncommercial"
                ]
              },
              "configured": {
                "type": "boolean"
              },
              "terms_confirmed": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          },
          "traffic": {
            "type": "object",
            "required": [
              "provider",
              "configured"
            ],
            "properties": {
              "provider": {
                "type": "string",
                "enum": [
                  "none",
                  "tomtom"
                ]
              },
              "configured": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "WorkWeatherV14": {
        "type": "object",
        "required": [
          "status",
          "provider",
          "source_url",
          "attribution",
          "hourly",
          "summary",
          "basis",
          "notice"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "not_configured",
              "outside_forecast",
              "unavailable",
              "available",
              "partial"
            ]
          },
          "provider": {
            "type": "string",
            "enum": [
              "none",
              "open_meteo"
            ]
          },
          "source_url": {
            "type": "string",
            "format": "uri"
          },
          "attribution": {
            "type": "string"
          },
          "hourly": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "at",
                "temperature_c",
                "wind_gust_kmh",
                "precipitation_mm",
                "visibility_m",
                "is_day"
              ],
              "properties": {
                "at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
                },
                "temperature_c": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": -100,
                      "maximum": 80
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "wind_gust_kmh": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 500
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "precipitation_mm": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "visibility_m": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1000000
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "is_day": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": false
            },
            "maxItems": 27
          },
          "summary": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "min_temperature_c",
                  "max_temperature_c",
                  "max_wind_gust_kmh",
                  "max_precipitation_mm",
                  "min_visibility_m"
                ],
                "properties": {
                  "min_temperature_c": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": -100,
                        "maximum": 80
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "max_temperature_c": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": -100,
                        "maximum": 80
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "max_wind_gust_kmh": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "max_precipitation_mm": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "min_visibility_m": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1000000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "basis": {
            "type": "string",
            "const": "hourly_forecast"
          },
          "notice": {
            "type": "string"
          },
          "interval_basis": {
            "type": "string"
          },
          "fetched_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          }
        },
        "additionalProperties": false,
        "description": "Godzinowa prognoza otaczająca termin (do 24 h), nie pomiar na stanowisku pracy. Porywy i opad odnoszą się do poprzedniej godziny. Brak pełnych danych pozostaje unknown/partial."
      },
      "WorkTrafficV14": {
        "type": "object",
        "required": [
          "status",
          "provider",
          "distance_m",
          "duration_seconds",
          "traffic_delay_seconds",
          "departure_at",
          "arrival_at",
          "traffic_basis"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "origin_required",
              "not_configured",
              "unavailable",
              "available"
            ]
          },
          "provider": {
            "type": "string",
            "enum": [
              "none",
              "tomtom"
            ]
          },
          "distance_m": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "duration_seconds": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "traffic_delay_seconds": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "departure_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
              },
              {
                "type": "null"
              }
            ]
          },
          "arrival_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
              },
              {
                "type": "null"
              }
            ]
          },
          "traffic_basis": {
            "type": "string",
            "enum": [
              "unknown",
              "provider_time_dependent_estimate"
            ]
          },
          "distance_kind": {
            "type": "string",
            "enum": [
              "straight_line",
              "road"
            ]
          },
          "source_url": {
            "type": "string",
            "format": "uri"
          },
          "notice": {
            "type": "string"
          },
          "no_traffic_seconds": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "historical_traffic_seconds": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "live_traffic_seconds": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "fetched_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "attribution": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "Podsumowanie dostawcy bez geometrii trasy. Przy braku dostawcy może być odległość w linii prostej, bez wymyślonego ETA. Ręczne figury nie zmieniają map drogowych dostawcy."
      },
      "WorkConditionsV14": {
        "type": "object",
        "required": [
          "weather",
          "traffic",
          "assessment",
          "origin_retained",
          "shared_with",
          "source_fingerprint",
          "id",
          "plan_id",
          "plan_revision",
          "visit_id",
          "fetched_at",
          "expires_at",
          "stale"
        ],
        "properties": {
          "weather": {
            "$ref": "#/components/schemas/WorkWeatherV14"
          },
          "traffic": {
            "$ref": "#/components/schemas/WorkTrafficV14"
          },
          "assessment": {
            "type": "object",
            "required": [
              "status",
              "configured_limits",
              "warnings",
              "notice"
            ],
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "attention",
                  "within_configured_limits",
                  "unknown"
                ]
              },
              "configured_limits": {
                "type": "integer",
                "minimum": 0,
                "maximum": 6
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "notice": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "origin_retained": {
            "type": "boolean",
            "const": false
          },
          "shared_with": {
            "type": "string",
            "const": "current_plan_readers"
          },
          "source_fingerprint": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "plan_id": {
            "$ref": "#/components/schemas/Id"
          },
          "plan_revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "visit_id": {
            "$ref": "#/components/schemas/Id"
          },
          "fetched_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "stale": {
            "type": "boolean"
          },
          "cached": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "WorkConditionsListV14": {
        "type": "object",
        "required": [
          "items",
          "providers",
          "notice"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkConditionsV14"
            },
            "maxItems": 5
          },
          "providers": {
            "$ref": "#/components/schemas/WorkProvidersV14"
          },
          "notice": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "WorkHazardV14": {
        "type": "object",
        "required": [
          "id",
          "title",
          "description",
          "severity",
          "status",
          "version",
          "plan_revision",
          "feature",
          "valid_from",
          "valid_to",
          "stale_revision",
          "expired",
          "source_kind",
          "source_event_id",
          "review_required",
          "reviewed_at",
          "created_at"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "description": {
            "type": "string",
            "maxLength": 4000
          },
          "severity": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high",
              "unknown"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "proposed",
              "confirmed",
              "rejected",
              "resolved"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "plan_revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "feature": {
            "$ref": "#/components/schemas/WorkFeatureV14"
          },
          "valid_from": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "valid_to": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "stale_revision": {
            "type": "boolean"
          },
          "expired": {
            "type": "boolean"
          },
          "source_kind": {
            "type": "string",
            "enum": [
              "manual",
              "camera"
            ]
          },
          "source_event_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          },
          "review_required": {
            "type": "boolean"
          },
          "reviewed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
          },
          "duplicate": {
            "type": "boolean",
            "const": true
          }
        },
        "additionalProperties": false
      },
      "WorkHazardCreateV14": {
        "type": "object",
        "required": [
          "version",
          "request_id",
          "feature_id",
          "title",
          "valid_from",
          "valid_to"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[a-zA-Z0-9_-]{8,80}$"
          },
          "feature_id": {
            "$ref": "#/components/schemas/Id"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "description": {
            "type": "string",
            "maxLength": 4000
          },
          "severity": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high",
              "unknown"
            ]
          },
          "valid_from": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "valid_to": {
            "type": "string",
            "format": "date-time",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})$"
          },
          "source_event_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Id"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Nowa propozycja w aktywnym hazard_area. Okres do 7 dni, jeszcze niewygasły i w granicach figury. Źródło kamery musi istnieć, być niewygasłe i uprawnione. Zawsze wymaga osobnego zatwierdzenia."
      },
      "WorkHazardReviewInputV14": {
        "type": "object",
        "required": [
          "version",
          "plan_version",
          "decision"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "plan_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "decision": {
            "type": "string",
            "enum": [
              "confirm",
              "reject",
              "resolve"
            ]
          }
        },
        "additionalProperties": false,
        "description": "confirm/reject dla proposed; resolve dla confirmed. Potwierdzenie sprawdza revision planu, okres i aktualne źródło kamery. Nie uruchamia SMS."
      },
      "WorkHazardBindingInputV14": {
        "type": "object",
        "required": [
          "version",
          "rule_id",
          "feature_id"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "rule_id": {
            "$ref": "#/components/schemas/Id"
          },
          "feature_id": {
            "$ref": "#/components/schemas/Id"
          },
          "enabled": {
            "type": "boolean"
          },
          "consent": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Do 30 połączeń na plan. Włączenie wymaga consent=true i prawa oceny analizy punktu. Tworzy propozycje z wyników analiz klatek edge, bez automatycznego SMS."
      },
      "WorkHazardBindingV14": {
        "type": "object",
        "required": [
          "id",
          "rule_id",
          "feature_id",
          "enabled",
          "plan_revision",
          "automatic_sms"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "rule_id": {
            "$ref": "#/components/schemas/Id"
          },
          "feature_id": {
            "$ref": "#/components/schemas/Id"
          },
          "enabled": {
            "type": "boolean"
          },
          "plan_revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "automatic_sms": {
            "type": "boolean",
            "const": false
          }
        },
        "additionalProperties": false
      },
      "WorkHazardListV14": {
        "type": "object",
        "required": [
          "items",
          "bindings",
          "camera_rules",
          "sms",
          "notice"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkHazardV14"
            },
            "maxItems": 200
          },
          "bindings": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "rule_id",
                "feature_id",
                "enabled",
                "plan_revision",
                "stale_revision"
              ],
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "rule_id": {
                  "$ref": "#/components/schemas/Id"
                },
                "feature_id": {
                  "$ref": "#/components/schemas/Id"
                },
                "enabled": {
                  "type": "boolean"
                },
                "plan_revision": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                },
                "stale_revision": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            },
            "maxItems": 30
          },
          "camera_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "object_id"
              ],
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "name": {
                  "type": "string"
                },
                "object_id": {
                  "$ref": "#/components/schemas/Id"
                }
              },
              "additionalProperties": false
            }
          },
          "sms": {
            "type": "object",
            "required": [
              "available",
              "configured_connectors"
            ],
            "properties": {
              "available": {
                "type": "boolean",
                "const": true
              },
              "configured_connectors": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name"
                  ],
                  "properties": {
                    "id": {
                      "$ref": "#/components/schemas/Id"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              }
            },
            "additionalProperties": false
          },
          "notice": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "WorkHazardDispatchInputV14": {
        "type": "object",
        "required": [
          "version",
          "plan_version",
          "recipient_ids",
          "connector_id",
          "request_id",
          "confirm"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "plan_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "recipient_ids": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Id"
            },
            "minItems": 1,
            "maxItems": 20,
            "uniqueItems": true
          },
          "connector_id": {
            "$ref": "#/components/schemas/Id"
          },
          "request_id": {
            "type": "string",
            "minLength": 8,
            "maxLength": 80,
            "pattern": "^[a-zA-Z0-9_-]{8,80}$"
          },
          "confirm": {
            "type": "boolean",
            "const": true
          }
        },
        "additionalProperties": false,
        "description": "Wyraźnie zatwierdzona kolejka SMS dla aktualnego confirmed alertu w ważnym okresie. Każdy odbiorca potrzebuje dostępu do planu, zweryfikowanego telefonu i niewygasłej zgody SMS dla tej sprawy. Limit 3/h na odbiorcę i sprawę, idempotencja per odbiorca. To nie jest interwencyjne powiadomienie służb."
      },
      "WorkHazardDispatchV14": {
        "type": "object",
        "required": [
          "messages",
          "preview",
          "delivery_confirmed",
          "notice"
        ],
        "properties": {
          "messages": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "status"
              ],
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "queued",
                    "awaiting_configuration",
                    "processing",
                    "provider_accepted",
                    "needs_reconciliation",
                    "cancelled"
                  ]
                }
              },
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 20
          },
          "preview": {
            "type": "string"
          },
          "delivery_confirmed": {
            "type": "boolean",
            "const": false
          },
          "notice": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "HTTP 202 potwierdza kolejkę, nie dostarczenie. integrations:work ponawia kontrolę dostępu, zgody i ważności przed kontaktem z bramką."
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Nieprawidłowy JSON lub obsługiwana wersja protokołu.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "invalid_json",
                "message": "Nieprawidłowy JSON lub obsługiwana wersja protokołu.",
                "details": []
              }
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Brak poprawnego nagłówka Bearer lub użytkownik nie ma już członkostwa w przestrzeni klucza.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "api_key",
                "message": "Brak poprawnego nagłówka Bearer lub użytkownik nie ma już członkostwa w przestrzeni klucza.",
                "details": []
              }
            }
          }
        }
      },
      "Forbidden": {
        "description": "Klucz wygasł, został cofnięty, nie ma wymaganego zakresu albo bieżąca rola/ACL nie dopuszcza operacji.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "api_scope",
                "message": "Klucz wygasł, został cofnięty, nie ma wymaganego zakresu albo bieżąca rola/ACL nie dopuszcza operacji.",
                "details": []
              }
            }
          }
        }
      },
      "NotFound": {
        "description": "Zasób nie istnieje lub nie jest dostępny w bieżącym zakresie punktów.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "not_found",
                "message": "Zasób nie istnieje lub nie jest dostępny w bieżącym zakresie punktów.",
                "details": []
              }
            }
          }
        }
      },
      "Conflict": {
        "description": "Konflikt danych, limit planu, punkt w archiwum lub ponowne użycie request_id z inną treścią.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "request_reused",
                "message": "Konflikt danych, limit planu, punkt w archiwum lub ponowne użycie request_id z inną treścią.",
                "details": []
              }
            }
          }
        }
      },
      "PayloadTooLarge": {
        "description": "Treść przekracza limit 1 048 576 bajtów.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "body_size",
                "message": "Treść przekracza limit 1 048 576 bajtów.",
                "details": []
              }
            }
          }
        }
      },
      "UnsupportedMediaType": {
        "description": "POST wymaga Content-Type: application/json.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "content_type",
                "message": "POST wymaga Content-Type: application/json.",
                "details": []
              }
            }
          }
        }
      },
      "Validation": {
        "description": "Niepoprawne pola, zakres współrzędnych, kategoria lub identyfikator żądania.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "validation",
                "message": "Niepoprawne pola, zakres współrzędnych, kategoria lub identyfikator żądania.",
                "details": []
              }
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Limit prób w oknie 60 sekund. Serwer nie gwarantuje nagłówka Retry-After; zastosuj opóźnienie i backoff.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "rate_limit",
                "message": "Limit prób w oknie 60 sekund. Serwer nie gwarantuje nagłówka Retry-After; zastosuj opóźnienie i backoff.",
                "details": []
              }
            }
          }
        }
      },
      "ServerError": {
        "description": "Błąd serwera. Szczegóły dostawców, hasła i sekrety nie są zwracane.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "server_error",
                "message": "Błąd serwera. Szczegóły dostawców, hasła i sekrety nie są zwracane.",
                "details": []
              }
            }
          }
        }
      },
      "Unavailable": {
        "description": "Marketplace jest wyłączony lub konfiguracja prowizji wymaga poprawy.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "marketplace_disabled",
                "message": "Marketplace jest wyłączony lub konfiguracja prowizji wymaga poprawy.",
                "details": []
              }
            }
          }
        }
      },
      "MethodNotAllowed": {
        "description": "Nieobsługiwana metoda HTTP; sprawdź metody wskazane przy konkretnej trasie. V0.4 używa także PATCH dla infrastruktury.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "code": "method",
                "message": "Nieobsługiwana metoda HTTP; sprawdź metody wskazane przy konkretnej trasie. V0.4 używa także PATCH dla infrastruktury.",
                "details": []
              }
            }
          }
        }
      },
      "CsrfExpired": {
        "description": "Nieprawidłowy lub wygasły CSRF tej sesji (HTTP 419).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Gone": {
        "description": "Wygasł token, termin udostępnienia/QR lub limit odczytów; utwórz nowe uprawnione żądanie.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "ProviderError": {
        "description": "Nie potwierdzono odpowiedzi zewnętrznego operatora; stan może wymagać ręcznego uzgodnienia.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "IntegrationUnavailable": {
        "description": "Brak konfiguracji, wymaganej zależności PHP, zgody operatora lub aktywacji integracji.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  },
  "x-implementation-sources": [
    "app/routes/public.php",
    "app/ApiAccess.php",
    "app/MapService.php",
    "app/PointAccess.php",
    "app/MarketplaceService.php",
    "app/PublicPortal.php",
    "app/ExportService.php",
    "app/Settings.php",
    "public/index.php",
    "app/routes/v4_api.php",
    "app/routes/infrastructure.php",
    "app/routes/operations.php",
    "app/routes/operations_public.php",
    "app/routes/integrations.php",
    "app/routes/integrations-public.php",
    "app/InfrastructureService.php",
    "app/CivicService.php",
    "app/TemporalAccess.php",
    "app/OperationsService.php",
    "app/OperationsPayments.php",
    "app/CameraAnalysisService.php",
    "app/IntegrationModelService.php",
    "app/MediaArchiveService.php",
    "app/routes/media_archive.php"
  ],
  "x-specification-source": "https://spec.openapis.org/oas/v3.1.2.html",
  "x-poa-profile": {
    "name": "telemonit.incident-replay-export/v1",
    "control_numbers": "safe integers only; float input rejected",
    "control_timestamps": "UTC seconds",
    "author_operations": [
      "inspect",
      "plan"
    ],
    "worker_transport": "authenticated CLI only",
    "upstream_process_contract": "poa-process.schema.v1.json",
    "full_conformance_claim": false
  }
}
