{
  "openapi": "3.1.0",
  "info": {
    "title": "Motano Listing API",
    "version": "1.0.0",
    "description": "Kontrakt integracji serwer–serwer. Dostęp produkcyjny jest zamknięty. Przykłady uruchamiaj w uprawnionym środowisku testowym."
  },
  "servers": [
    {
      "url": "https://api.motano.pl/api/v1",
      "description": "Produkcja — dostęp zamknięty"
    }
  ],
  "security": [
    {
      "integrationKey": []
    }
  ],
  "paths": {
    "/listing-types": {
      "get": {
        "operationId": "listListingTypes",
        "responses": {
          "200": {
            "description": "Typy ogłoszeń i wymagania formularza.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "formVersion",
                    "types"
                  ],
                  "properties": {
                    "formVersion": {
                      "type": "integer"
                    },
                    "types": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "label",
                          "category",
                          "minimumPhotos",
                          "required",
                          "optional",
                          "conditionallyRequired"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "category": {
                            "type": "string"
                          },
                          "minimumPhotos": {
                            "type": "integer"
                          },
                          "required": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "optional": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "conditionallyRequired": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "object",
                              "required": [
                                "field",
                                "notEquals"
                              ],
                              "properties": {
                                "field": {
                                  "type": "string"
                                },
                                "notEquals": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "x-required-scope": "listings:read",
        "summary": "Pobierz typy ogłoszeń",
        "tags": [
          "Ogłoszenia"
        ]
      }
    },
    "/listings": {
      "get": {
        "operationId": "listListings",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 250
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Strona ogłoszeń właściciela klucza.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Listing"
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "x-required-scope": "listings:read",
        "summary": "Pobierz własne ogłoszenia",
        "tags": [
          "Ogłoszenia"
        ]
      },
      "post": {
        "operationId": "submitListing",
        "description": "Płatne zgłoszenie przygotowuje koszyk do potwierdzenia w portalu. Wymaga włączonej flagi LISTING_API_PAYMENTS_ENABLED.",
        "x-required-scope": "listings:write",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateListingInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Zgłoszenie przyjęte.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                },
                "description": "Wersja do nagłówka If-Match."
              },
              "Location": {
                "schema": {
                  "type": "string"
                },
                "description": "Ścieżka utworzonego zasobu."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationReceipt"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Failure"
          },
          "422": {
            "$ref": "#/components/responses/Failure"
          },
          "503": {
            "$ref": "#/components/responses/Failure",
            "description": "Przy wyłączonej fladze płatności płatne żądanie zwraca PAYMENTS_DISABLED."
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Utwórz i zgłoś ogłoszenie",
        "tags": [
          "Ogłoszenia"
        ]
      }
    },
    "/listings/{id}": {
      "get": {
        "operationId": "getListing",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Szczegóły ogłoszenia właściciela klucza.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingDetail"
                }
              }
            },
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                },
                "description": "Wersja do nagłówka If-Match."
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "x-required-scope": "listings:read",
        "summary": "Pobierz szczegóły własnego ogłoszenia",
        "tags": [
          "Ogłoszenia"
        ]
      },
      "patch": {
        "operationId": "updateListing",
        "x-required-scope": "listings:write",
        "parameters": [
          {
            "$ref": "#/components/parameters/ResourceId"
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateListingInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Zapisane ogłoszenie.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                },
                "description": "Wersja do nagłówka If-Match."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationReceipt"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Failure"
          },
          "412": {
            "$ref": "#/components/responses/Failure"
          },
          "422": {
            "$ref": "#/components/responses/Failure"
          },
          "428": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Edytuj ogłoszenie",
        "tags": [
          "Ogłoszenia"
        ]
      }
    },
    "/listings/{id}/close": {
      "post": {
        "operationId": "closeListing",
        "x-required-scope": "listings:write",
        "parameters": [
          {
            "$ref": "#/components/parameters/ResourceId"
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloseListingInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Zapisane ogłoszenie.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                },
                "description": "Wersja do nagłówka If-Match."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationReceipt"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Failure"
          },
          "412": {
            "$ref": "#/components/responses/Failure"
          },
          "422": {
            "$ref": "#/components/responses/Failure"
          },
          "428": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Zamknij ogłoszenie",
        "tags": [
          "Ogłoszenia"
        ]
      }
    },
    "/media": {
      "post": {
        "operationId": "reserveListingPhoto",
        "x-required-scope": "media:write",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PhotoReservationInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Podpisana rezerwacja pliku.",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string"
                },
                "description": "Ścieżka utworzonego zasobu."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhotoReservation"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Zarezerwuj przesłanie zdjęcia",
        "tags": [
          "Zdjęcia"
        ]
      }
    },
    "/media/{id}": {
      "get": {
        "operationId": "getListingPhotoStatus",
        "x-required-scope": "media:write",
        "parameters": [
          {
            "$ref": "#/components/parameters/ResourceId"
          }
        ],
        "responses": {
          "200": {
            "description": "Stan zdjęcia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhotoStatus"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Sprawdź stan zdjęcia",
        "tags": [
          "Zdjęcia"
        ]
      }
    },
    "/media/{id}/preview": {
      "get": {
        "operationId": "downloadOwnedListingImagePreview",
        "x-required-scope": "listings:read",
        "description": "Prywatny podgląd gotowego zdjęcia właściciela.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ResourceId"
          }
        ],
        "responses": {
          "200": {
            "description": "Zdjęcie w formacie AVIF z zakazem zapisywania w cache.",
            "content": {
              "image/avif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Failure"
          },
          "403": {
            "$ref": "#/components/responses/Failure"
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Pobierz prywatny podgląd zdjęcia",
        "tags": [
          "Zdjęcia"
        ]
      }
    },
    "/media/{id}/complete": {
      "post": {
        "operationId": "completeListingPhoto",
        "x-required-scope": "media:write",
        "parameters": [
          {
            "$ref": "#/components/parameters/ResourceId"
          }
        ],
        "responses": {
          "200": {
            "description": "Plik przyjęty do przetworzenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhotoStatus"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Failure"
          },
          "422": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Potwierdź przesłanie zdjęcia",
        "tags": [
          "Zdjęcia"
        ]
      }
    },
    "/catalog/makes": {
      "get": {
        "operationId": "getCatalogMakes",
        "x-required-scope": "listings:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/CatalogScope"
          },
          {
            "$ref": "#/components/parameters/CatalogListingType"
          }
        ],
        "responses": {
          "200": {
            "description": "Marki w wybranym zakresie.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "enum": [
                        "passenger",
                        "delivery",
                        "truck",
                        "motorcycle",
                        "camper",
                        "trailer",
                        "agriculture",
                        "construction"
                      ]
                    },
                    "manifestVersion": {
                      "type": "string"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "slug",
                          "custom",
                          "popular"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "custom": {
                            "type": "boolean"
                          },
                          "popular": {
                            "type": "boolean"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Pobierz marki",
        "tags": [
          "Katalogi i CEPiK"
        ]
      }
    },
    "/catalog/models": {
      "get": {
        "operationId": "getCatalogModels",
        "x-required-scope": "listings:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/CatalogScope"
          },
          {
            "$ref": "#/components/parameters/CatalogListingType"
          },
          {
            "name": "makeId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Modele wybranej marki.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "enum": [
                        "passenger",
                        "delivery",
                        "truck",
                        "motorcycle",
                        "camper",
                        "trailer",
                        "agriculture",
                        "construction"
                      ]
                    },
                    "manifestVersion": {
                      "type": "string"
                    },
                    "makeId": {
                      "type": "string"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "slug",
                          "custom",
                          "popular"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "custom": {
                            "type": "boolean"
                          },
                          "popular": {
                            "type": "boolean"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Pobierz modele",
        "tags": [
          "Katalogi i CEPiK"
        ]
      }
    },
    "/catalog/generations": {
      "get": {
        "operationId": "getCatalogGenerations",
        "x-required-scope": "listings:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/CatalogScope"
          },
          {
            "$ref": "#/components/parameters/CatalogListingType"
          },
          {
            "name": "modelId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Generacje modelu z latami produkcji. Dla wpisu statycznego użyj nazwy, gdy ID jest puste.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "enum": [
                        "passenger",
                        "delivery",
                        "truck",
                        "motorcycle",
                        "camper",
                        "trailer",
                        "agriculture",
                        "construction"
                      ]
                    },
                    "manifestVersion": {
                      "type": "string"
                    },
                    "modelId": {
                      "type": "string"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "modelId",
                          "name",
                          "slug",
                          "yearFrom",
                          "yearTo"
                        ],
                        "properties": {
                          "id": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "modelId": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "yearFrom": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "yearTo": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Pobierz generacje",
        "tags": [
          "Katalogi i CEPiK"
        ]
      }
    },
    "/catalog/equipment": {
      "get": {
        "operationId": "getCatalogEquipment",
        "x-required-scope": "listings:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/CatalogScope"
          },
          {
            "$ref": "#/components/parameters/CatalogListingType"
          }
        ],
        "responses": {
          "200": {
            "description": "Grupy wyposażenia i dodatkowych opcji.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "enum": [
                        "passenger",
                        "delivery",
                        "truck",
                        "motorcycle",
                        "camper",
                        "trailer",
                        "agriculture",
                        "construction"
                      ]
                    },
                    "manifestVersion": {
                      "type": "string"
                    },
                    "groups": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "kind": {
                            "enum": [
                              "equipment",
                              "attribute"
                            ]
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "type": "string"
                                },
                                "label": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Pobierz wyposażenie i opcje",
        "tags": [
          "Katalogi i CEPiK"
        ]
      }
    },
    "/catalog/promotions": {
      "get": {
        "operationId": "getCatalogPromotions",
        "x-required-scope": "listings:read",
        "responses": {
          "200": {
            "description": "Pakiety i dostępne dodatki.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "packages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "systemKey",
                          "name",
                          "priceCents"
                        ],
                        "properties": {
                          "systemKey": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "priceCents": {
                            "type": "integer"
                          },
                          "durationDays": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "description": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "singlePromotions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "systemKey",
                          "name",
                          "priceCents"
                        ],
                        "properties": {
                          "systemKey": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "priceCents": {
                            "type": "integer"
                          },
                          "durationDays": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "description": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Pobierz pakiety i promocje",
        "tags": [
          "Katalogi i CEPiK"
        ]
      }
    },
    "/listings/drafts": {
      "post": {
        "operationId": "createListingDraft",
        "x-required-scope": "listings:write",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDraftInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Utworzony szkic ogłoszenia.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                },
                "description": "Wersja do nagłówka If-Match."
              },
              "Location": {
                "schema": {
                  "type": "string"
                },
                "description": "Ścieżka nowego szkicu."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationReceipt"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Failure"
          },
          "422": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Utwórz szkic ogłoszenia",
        "tags": [
          "Ogłoszenia"
        ]
      }
    },
    "/listings/{id}/duplicate": {
      "post": {
        "operationId": "duplicateListing",
        "x-required-scope": "listings:write",
        "parameters": [
          {
            "$ref": "#/components/parameters/ResourceId"
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DuplicateInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Nowy szkic skopiowany z ogłoszenia.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                },
                "description": "Wersja do nagłówka If-Match."
              },
              "Location": {
                "schema": {
                  "type": "string"
                },
                "description": "Ścieżka nowego szkicu."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationReceipt"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Failure"
          },
          "412": {
            "$ref": "#/components/responses/Failure"
          },
          "422": {
            "$ref": "#/components/responses/Failure"
          },
          "428": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Skopiuj ogłoszenie do szkicu",
        "tags": [
          "Ogłoszenia"
        ]
      }
    },
    "/listings/{id}/publish": {
      "post": {
        "operationId": "publishListingDraft",
        "description": "Publikacja płatna przygotowuje koszyk do potwierdzenia w portalu. Wymaga włączonej flagi LISTING_API_PAYMENTS_ENABLED.",
        "x-required-scope": "listings:write",
        "parameters": [
          {
            "$ref": "#/components/parameters/ResourceId"
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishOrRenewInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Opublikowany szkic lub przygotowana płatność.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                },
                "description": "Wersja do nagłówka If-Match."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationReceipt"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Failure"
          },
          "412": {
            "$ref": "#/components/responses/Failure"
          },
          "422": {
            "$ref": "#/components/responses/Failure"
          },
          "428": {
            "$ref": "#/components/responses/Failure"
          },
          "503": {
            "$ref": "#/components/responses/Failure",
            "description": "Przy wyłączonej fladze płatności płatne żądanie zwraca PAYMENTS_DISABLED."
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Zgłoś szkic do publikacji",
        "tags": [
          "Ogłoszenia"
        ]
      }
    },
    "/listings/{id}/renew": {
      "post": {
        "operationId": "renewListing",
        "description": "Odnowienie płatne przygotowuje koszyk do potwierdzenia w portalu. Wymaga włączonej flagi LISTING_API_PAYMENTS_ENABLED.",
        "x-required-scope": "listings:write",
        "parameters": [
          {
            "$ref": "#/components/parameters/ResourceId"
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishOrRenewInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Odnowione ogłoszenie lub przygotowana płatność.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                },
                "description": "Wersja do nagłówka If-Match."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationReceipt"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Failure"
          },
          "412": {
            "$ref": "#/components/responses/Failure"
          },
          "422": {
            "$ref": "#/components/responses/Failure"
          },
          "428": {
            "$ref": "#/components/responses/Failure"
          },
          "503": {
            "$ref": "#/components/responses/Failure",
            "description": "Przy wyłączonej fladze płatności płatne żądanie zwraca PAYMENTS_DISABLED."
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Odnów ogłoszenie",
        "tags": [
          "Ogłoszenia"
        ]
      }
    },
    "/listings/{id}/promotions": {
      "post": {
        "operationId": "prepareListingPromotion",
        "description": "Przygotowuje koszyk do potwierdzenia w portalu. Wymaga włączonej flagi LISTING_API_PAYMENTS_ENABLED.",
        "x-required-scope": "listings:write",
        "parameters": [
          {
            "$ref": "#/components/parameters/ResourceId"
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromoteInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Przygotowana płatność za zmianę pakietu lub dodatki.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                },
                "description": "Wersja do nagłówka If-Match."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationReceipt"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Failure"
          },
          "412": {
            "$ref": "#/components/responses/Failure"
          },
          "422": {
            "$ref": "#/components/responses/Failure"
          },
          "428": {
            "$ref": "#/components/responses/Failure"
          },
          "503": {
            "$ref": "#/components/responses/Failure",
            "description": "Przy wyłączonej fladze płatności płatne żądanie zwraca PAYMENTS_DISABLED."
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Przygotuj zakup promocji",
        "tags": [
          "Ogłoszenia"
        ]
      }
    },
    "/listings/preview": {
      "post": {
        "operationId": "previewListingDraft",
        "x-required-scope": "listings:write",
        "responses": {
          "200": {
            "description": "Prywatny podgląd bez zapisania ogłoszenia.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingPreview"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Failure"
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          },
          "422": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListingPreviewInput"
              }
            }
          }
        },
        "summary": "Sprawdź podgląd bez zapisu",
        "tags": [
          "Ogłoszenia"
        ]
      }
    },
    "/listings/{id}/preview": {
      "get": {
        "operationId": "previewSavedListing",
        "x-required-scope": "listings:read",
        "responses": {
          "200": {
            "description": "Prywatny podgląd zapisanego ogłoszenia właściciela.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingPreview"
                }
              }
            },
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                },
                "description": "Wersja do nagłówka If-Match."
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ResourceId"
          }
        ],
        "summary": "Pobierz podgląd zapisanej oferty",
        "tags": [
          "Ogłoszenia"
        ]
      }
    },
    "/catalog/cepik": {
      "post": {
        "operationId": "lookupCepikVehicle",
        "description": "Wymaga włączonej flagi LISTING_API_CEPIK_ENABLED. Wyłączona flaga powoduje odpowiedź 503 z kodem CEPIK_DISABLED.",
        "x-required-scope": "listings:write",
        "responses": {
          "200": {
            "description": "Propozycje danych pojazdu z CEPiK.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CepikLookupResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Failure"
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          },
          "422": {
            "$ref": "#/components/responses/Failure"
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          },
          "502": {
            "$ref": "#/components/responses/Failure"
          },
          "503": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CepikLookupInput"
              }
            }
          }
        },
        "summary": "Uzupełnij dane z CEPiK",
        "tags": [
          "Katalogi i CEPiK"
        ]
      }
    },
    "/listings/{id}/archive-feedback": {
      "post": {
        "operationId": "submitArchiveFeedback",
        "x-required-scope": "listings:write",
        "parameters": [
          {
            "$ref": "#/components/parameters/ResourceId"
          },
          {
            "$ref": "#/components/parameters/IfMatch"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ArchiveFeedbackInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Zapisana ankieta po zakończeniu ogłoszenia.",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                },
                "description": "Wersja do nagłówka If-Match."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MutationReceipt"
                }
              }
            }
          },
          "409": {
            "$ref": "#/components/responses/Failure"
          },
          "412": {
            "$ref": "#/components/responses/Failure"
          },
          "422": {
            "$ref": "#/components/responses/Failure"
          },
          "428": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Zapisz ankietę po archiwizacji",
        "tags": [
          "Ogłoszenia"
        ]
      }
    },
    "/catalog/part-categories": {
      "get": {
        "operationId": "listPartCategories",
        "x-required-scope": "listings:read",
        "description": "Drzewo i wyszukiwanie kategorii części. Użyj q albo path.",
        "parameters": [
          {
            "in": "query",
            "name": "listingTypeValue",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 160
              }
            },
            "style": "form",
            "explode": true
          },
          {
            "in": "query",
            "name": "q",
            "description": "Fraza dopasowywana do nazwy liścia i jego ścieżki.",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 120
            }
          },
          {
            "in": "query",
            "name": "limit",
            "description": "Limit wyników wyszukiwania. Wymaga q.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Żądanie zakończone pomyślnie.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartsCategoryPage"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          },
          "422": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Przeglądaj i wyszukuj kategorie części",
        "tags": [
          "Katalogi i CEPiK"
        ]
      }
    },
    "/catalog/addresses": {
      "post": {
        "operationId": "suggestListingAddresses",
        "x-required-scope": "listings:read",
        "description": "Podpowiedzi adresów w Polsce.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddressSuggestionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Żądanie zakończone pomyślnie.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddressSuggestions"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          },
          "502": {
            "$ref": "#/components/responses/Failure"
          },
          "503": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Pobierz podpowiedzi adresów",
        "tags": [
          "Katalogi i CEPiK"
        ]
      }
    },
    "/catalog/price-barometer": {
      "get": {
        "operationId": "estimateListingPrice",
        "x-required-scope": "listings:read",
        "description": "Porównanie ceny z podobnymi ogłoszeniami sprzedaży.",
        "parameters": [
          {
            "in": "query",
            "name": "category",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          },
          {
            "in": "query",
            "name": "make",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          },
          {
            "in": "query",
            "name": "model",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          },
          {
            "in": "query",
            "name": "price",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 999999999
            }
          },
          {
            "in": "query",
            "name": "generation",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "in": "query",
            "name": "condition",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "in": "query",
            "name": "offerMode",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "sale",
                "rent"
              ],
              "default": "sale"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Żądanie zakończone pomyślnie.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PriceBarometerEstimate"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Porównaj cenę ogłoszenia",
        "tags": [
          "Katalogi i CEPiK"
        ]
      }
    },
    "/statistics/filters": {
      "get": {
        "operationId": "listStatisticsFilters",
        "x-required-scope": "statistics:read",
        "description": "Wartości filtrów dla ogłoszeń właściciela.",
        "responses": {
          "200": {
            "description": "Żądanie zakończone pomyślnie.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "categories": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "makes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "models": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "generations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "fuelTypes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "gearboxes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "voivodeships": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "packageTiers": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "statuses": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Failure"
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Pobierz filtry statystyk",
        "tags": [
          "Statystyki"
        ]
      }
    },
    "/statistics/listings": {
      "post": {
        "operationId": "listOwnerStatistics",
        "x-required-scope": "statistics:read",
        "description": "Podsumowanie i strona statystyk właściciela.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatisticsQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Żądanie zakończone pomyślnie.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatisticsPage"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Failure"
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Pobierz statystyki sprzedawcy",
        "tags": [
          "Statystyki"
        ]
      }
    },
    "/statistics/listings/{id}": {
      "get": {
        "operationId": "getOwnerListingStatistics",
        "x-required-scope": "statistics:read",
        "description": "Szczegóły statystyk ogłoszenia właściciela.",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,119}$"
            }
          },
          {
            "in": "query",
            "name": "preset",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "7",
                "30",
                "90",
                "365",
                "custom"
              ]
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Żądanie zakończone pomyślnie.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatisticsListingDetail"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Failure"
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Pobierz statystyki ogłoszenia",
        "tags": [
          "Statystyki"
        ]
      }
    },
    "/statistics/export": {
      "post": {
        "operationId": "exportOwnerStatistics",
        "x-required-scope": "statistics:read",
        "description": "Pobranie pliku CSV dla wybranych filtrów.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StatisticsQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Żądanie zakończone pomyślnie.",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Failure"
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Eksportuj statystyki do CSV",
        "tags": [
          "Statystyki"
        ]
      }
    },
    "/payments": {
      "get": {
        "operationId": "listOwnerPayments",
        "x-required-scope": "payments:read",
        "description": "Historia opłaconych i zwróconych płatności wraz ze ścieżkami dokumentów.",
        "parameters": [
          {
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "in": "query",
            "name": "dateFrom",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "in": "query",
            "name": "dateTo",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 600
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Żądanie zakończone pomyślnie.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentHistory"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Failure"
          },
          "422": {
            "$ref": "#/components/responses/Failure"
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Pobierz historię płatności",
        "tags": [
          "Płatności i faktury"
        ]
      }
    },
    "/payments/invoice-billing": {
      "get": {
        "operationId": "getOwnerSavedInvoiceBilling",
        "x-required-scope": "payments:read",
        "description": "Dane zapisane podczas ostatniego opłaconego zakupu z danymi do faktury.",
        "responses": {
          "200": {
            "description": "Dane właściciela klucza.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedInvoiceBilling"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Failure"
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Pobierz zapisane dane do faktury",
        "tags": [
          "Płatności i faktury"
        ]
      }
    },
    "/payments/{id}/checkout": {
      "get": {
        "operationId": "getOwnerCheckoutStatus",
        "x-required-scope": "payments:read",
        "description": "Stan konkretnej płatności zapisany przez Motano. Użyj payment.id zwróconego przez operację ogłoszenia.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ResourceId"
          }
        ],
        "responses": {
          "200": {
            "description": "Stan checkoutu i kwota w groszach.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutStatus"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Failure"
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Sprawdź stan checkoutu",
        "tags": [
          "Płatności i faktury"
        ]
      }
    },
    "/payments/{id}/invoice/retry": {
      "post": {
        "operationId": "retryOwnerInvoice",
        "x-required-scope": "invoices:retry",
        "description": "Ponawia wystawienie faktury dla opłaconej płatności na podstawie zapisanych danych.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ResourceId"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Faktura przyjęta lub próba zakończona niepowodzeniem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceRetryResult"
                }
              }
            }
          },
          "202": {
            "description": "Wystawianie faktury jest w toku.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceRetryResult"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Failure"
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          },
          "409": {
            "$ref": "#/components/responses/Failure"
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          },
          "503": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Ponów wystawienie faktury",
        "tags": [
          "Płatności i faktury"
        ]
      }
    },
    "/payments/{id}/invoice": {
      "get": {
        "operationId": "downloadOwnerInvoice",
        "x-required-scope": "payments:read",
        "description": "Pobranie przyjętej faktury właściciela.",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,119}$"
            }
          },
          {
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "html",
                "xml"
              ],
              "default": "html"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Żądanie zakończone pomyślnie.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              },
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Failure"
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          },
          "409": {
            "$ref": "#/components/responses/Failure"
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Pobierz fakturę",
        "tags": [
          "Płatności i faktury"
        ]
      }
    },
    "/payments/{id}/corrections/{correctionId}": {
      "get": {
        "operationId": "downloadOwnerCorrection",
        "x-required-scope": "payments:read",
        "description": "Pobranie przyjętej korekty właściciela.",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,119}$"
            }
          },
          {
            "in": "path",
            "name": "correctionId",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,119}$"
            }
          },
          {
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "html",
                "xml"
              ],
              "default": "html"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Żądanie zakończone pomyślnie.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              },
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Failure"
          },
          "404": {
            "$ref": "#/components/responses/Failure"
          },
          "409": {
            "$ref": "#/components/responses/Failure"
          },
          "429": {
            "$ref": "#/components/responses/Failure"
          },
          "default": {
            "$ref": "#/components/responses/Failure"
          }
        },
        "summary": "Pobierz korektę faktury",
        "tags": [
          "Płatności i faktury"
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "integrationKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Klucz Motano. Wymagany zakres zależy od operacji."
      }
    },
    "schemas": {
      "PartsCategoryPage": {
        "type": "object",
        "properties": {
          "listingTypeValue": {
            "type": "string"
          },
          "path": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "branch",
                    "leaf"
                  ]
                },
                "path": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "label": {
                  "type": "string"
                },
                "details": {
                  "type": "object",
                  "properties": {
                    "partMainCategory": {
                      "type": "string"
                    },
                    "partSubCategory": {
                      "type": "string"
                    },
                    "partCategoryPath": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "partMainCategory",
                    "partSubCategory",
                    "partCategoryPath"
                  ]
                }
              },
              "required": [
                "kind",
                "path",
                "label"
              ]
            }
          }
        }
      },
      "AddressSuggestionRequest": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 3,
            "maxLength": 160
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 8,
            "default": 6
          }
        },
        "required": [
          "query"
        ]
      },
      "AddressSuggestions": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "lat": {
                  "type": "number"
                },
                "lng": {
                  "type": "number"
                },
                "city": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "region": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "postalCode": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "street": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "houseNumber": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "PriceBarometerEstimate": {
        "type": "object",
        "properties": {
          "estimate": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "level": {
                    "type": "integer"
                  },
                  "sampleSize": {
                    "type": "integer"
                  },
                  "marketAvg": {
                    "type": "integer"
                  },
                  "marketMin": {
                    "type": "integer"
                  },
                  "marketMax": {
                    "type": "integer"
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "generation",
                      "model"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "below",
                      "avg",
                      "above"
                    ]
                  },
                  "label": {
                    "type": "string"
                  },
                  "usedFactors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "estimate"
        ]
      },
      "StatisticsQuery": {
        "type": "object",
        "properties": {
          "range": {
            "type": "object",
            "properties": {
              "preset": {
                "type": "string",
                "enum": [
                  "7",
                  "30",
                  "90",
                  "365",
                  "custom"
                ]
              },
              "from": {
                "type": "string",
                "format": "date"
              },
              "to": {
                "type": "string",
                "format": "date"
              }
            }
          },
          "filters": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "active",
                  "ended",
                  "all",
                  "draft",
                  "expired",
                  "sold"
                ]
              },
              "category": {
                "type": "string"
              },
              "make": {
                "type": "string"
              },
              "model": {
                "type": "string"
              },
              "generation": {
                "type": "string"
              },
              "fuelType": {
                "type": "string"
              },
              "gearbox": {
                "type": "string"
              },
              "location": {
                "type": "string"
              },
              "voivodeship": {
                "type": "string"
              },
              "packageTier": {
                "type": "string"
              },
              "priceFrom": {
                "type": "integer",
                "minimum": 0
              },
              "priceTo": {
                "type": "integer",
                "minimum": 0
              },
              "mileageFrom": {
                "type": "integer",
                "minimum": 0
              },
              "mileageTo": {
                "type": "integer",
                "minimum": 0
              },
              "yearFrom": {
                "type": "integer",
                "minimum": 0
              },
              "yearTo": {
                "type": "integer",
                "minimum": 0
              },
              "onlyActionRequired": {
                "type": "boolean"
              }
            }
          },
          "page": {
            "type": "integer",
            "minimum": 1
          },
          "limit": {
            "type": "integer",
            "minimum": 5,
            "maximum": 100
          },
          "sort": {
            "type": "string",
            "enum": [
              "views",
              "contacts",
              "conversion",
              "quality",
              "price",
              "updated",
              "action"
            ]
          },
          "direction": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ]
          }
        }
      },
      "StatisticsPage": {
        "type": "object",
        "properties": {
          "range": {
            "type": "object"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "accountType": {
            "type": "string",
            "enum": [
              "private",
              "dealer"
            ]
          },
          "summary": {
            "type": "object"
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "page": {
                "type": "integer"
              },
              "limit": {
                "type": "integer"
              },
              "total": {
                "type": "integer"
              },
              "pages": {
                "type": "integer"
              }
            }
          }
        }
      },
      "StatisticsListingDetail": {
        "type": "object",
        "properties": {
          "range": {
            "type": "object"
          },
          "listing": {
            "type": "object"
          },
          "funnel": {
            "type": "object"
          },
          "market": {
            "type": "object"
          },
          "quality": {
            "type": "object"
          },
          "recommendation": {
            "type": "object"
          },
          "history": {
            "type": "object"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "daily": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "priceHistory": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "SavedInvoiceBilling": {
        "type": "object",
        "required": [
          "billing"
        ],
        "properties": {
          "billing": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "recipientType": {
                    "type": "string",
                    "enum": [
                      "private",
                      "company"
                    ]
                  },
                  "name": {
                    "type": "string"
                  },
                  "nip": {
                    "type": "string"
                  },
                  "street": {
                    "type": "string"
                  },
                  "buildingNumber": {
                    "type": "string"
                  },
                  "apartmentNumber": {
                    "type": "string"
                  },
                  "address": {
                    "type": "string"
                  },
                  "postalCode": {
                    "type": "string"
                  },
                  "city": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "phone": {
                    "type": "string"
                  }
                },
                "required": [
                  "recipientType",
                  "name",
                  "address",
                  "postalCode",
                  "city"
                ]
              }
            ]
          }
        }
      },
      "CheckoutStatus": {
        "type": "object",
        "required": [
          "id",
          "listingId",
          "status",
          "checkoutState",
          "amountCents",
          "currency",
          "checkoutStartedAt",
          "createdAt",
          "updatedAt",
          "paidAt"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "listingId": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "paid",
              "failed",
              "partially_refunded",
              "refunded"
            ]
          },
          "checkoutState": {
            "type": "string",
            "enum": [
              "awaiting_confirmation",
              "opening",
              "awaiting_payment",
              "paid",
              "failed",
              "partially_refunded",
              "refunded"
            ]
          },
          "amountCents": {
            "type": "integer"
          },
          "currency": {
            "type": "string"
          },
          "checkoutStartedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "paidAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "InvoiceRetryResult": {
        "type": "object",
        "required": [
          "status",
          "invoiceNumber",
          "ksefNumber",
          "downloadPath"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "accepted",
              "sending",
              "failed"
            ]
          },
          "invoiceNumber": {
            "type": [
              "string",
              "null"
            ]
          },
          "ksefNumber": {
            "type": [
              "string",
              "null"
            ]
          },
          "downloadPath": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "PaymentHistory": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer"
          },
          "totalSpent": {
            "type": "number"
          },
          "paidCount": {
            "type": "integer"
          },
          "pendingCount": {
            "type": "integer"
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "serviceName": {
                  "type": "string"
                },
                "provider": {
                  "type": "string"
                },
                "currency": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "paid",
                    "partially_refunded",
                    "refunded"
                  ]
                },
                "amount": {
                  "type": "integer"
                },
                "amountCents": {
                  "type": "integer"
                },
                "grossAmountCents": {
                  "type": "integer"
                },
                "refundedAmountCents": {
                  "type": "integer"
                },
                "netAmountCents": {
                  "type": "integer"
                },
                "invoicePath": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "invoiceStatus": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "invoiceNumber": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ksefNumber": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "invoiceIssuedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "paidAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "refundedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "listing": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "make": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "model": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "title": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "corrections": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "invoiceNumber": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      },
                      "amountCents": {
                        "type": "integer"
                      },
                      "issuedAt": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "downloadPath": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  }
                },
                "refunds": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                },
                "disputes": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      },
      "Listing": {
        "type": "object",
        "required": [
          "id",
          "title",
          "price",
          "category",
          "createdAt",
          "updatedAt",
          "expiresAt",
          "status",
          "publicationState",
          "publicPath"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "price": {
            "type": "integer"
          },
          "category": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "status": {
            "enum": [
              "draft",
              "payment_required",
              "active",
              "expired",
              "sold"
            ]
          },
          "publicationState": {
            "enum": [
              "public",
              "pending",
              "hidden"
            ]
          },
          "publicPath": {
            "type": [
              "string",
              "null"
            ]
          },
          "paymentPath": {
            "type": "string"
          }
        }
      },
      "ListingDetail": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Listing"
          },
          {
            "type": "object",
            "properties": {
              "description": {
                "type": "string"
              },
              "shortDescription": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "make": {
                "type": "string"
              },
              "model": {
                "type": "string"
              },
              "generation": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "year": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "mileage": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "fuelType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "bodyType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "gearbox": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "driveType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "color": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "power": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "engineCc": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "condition": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "priceType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "location": {
                "type": "string"
              },
              "voivodeship": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "equipment": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Lista wyposażenia i dodatkowych opcji katalogowych."
              },
              "packageTier": {
                "type": "string"
              },
              "listingTypeValue": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "images": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "details": {
                "$ref": "#/components/schemas/ListingReadableOptions"
              },
              "noAccident": {
                "type": "boolean"
              },
              "firstOwner": {
                "type": "boolean"
              },
              "vatInvoice": {
                "type": "boolean"
              },
              "negotiable": {
                "type": "boolean"
              },
              "dealerLocationId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lat": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "lng": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "makeId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "modelId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "generationId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "promotions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "systemKey",
                    "name"
                  ],
                  "properties": {
                    "systemKey": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "startsAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "endsAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          }
        ]
      },
      "MutationReceipt": {
        "type": "object",
        "required": [
          "id",
          "status",
          "publicationState",
          "updatedAt",
          "publicPath"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "draft",
              "payment_required",
              "active",
              "expired",
              "sold"
            ]
          },
          "publicationState": {
            "enum": [
              "public",
              "pending",
              "hidden"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "publicPath": {
            "type": [
              "string",
              "null"
            ]
          },
          "paymentPath": {
            "type": "string"
          },
          "payment": {
            "$ref": "#/components/schemas/PaymentReceipt"
          },
          "archiveFeedback": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "outcome": {
                "enum": [
                  "sold",
                  "not_sold",
                  "other"
                ]
              },
              "recommendationScore": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 1,
                "maximum": 10
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "outcome",
              "recommendationScore",
              "updatedAt"
            ]
          }
        }
      },
      "PhotoReservation": {
        "type": "object",
        "required": [
          "id",
          "uploadUrl",
          "method",
          "headers",
          "expiresIn"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "uploadUrl": {
            "type": "string",
            "format": "uri"
          },
          "method": {
            "const": "PUT"
          },
          "headers": {
            "type": "object",
            "required": [
              "Content-Type",
              "Content-Length",
              "If-None-Match"
            ],
            "properties": {
              "Content-Type": {
                "type": "string"
              },
              "Content-Length": {
                "type": "string"
              },
              "If-None-Match": {
                "const": "*"
              }
            }
          },
          "expiresIn": {
            "const": 600
          }
        }
      },
      "PhotoStatus": {
        "type": "object",
        "required": [
          "id",
          "status",
          "category",
          "width",
          "height"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "uploading",
              "uploaded",
              "processing",
              "ready",
              "failed"
            ]
          },
          "category": {
            "type": "string"
          },
          "width": {
            "type": [
              "integer",
              "null"
            ]
          },
          "height": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "CreateListingInput": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 10,
            "maxLength": 100,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "shortDescription": {
            "type": "string",
            "maxLength": 80
          },
          "description": {
            "type": "string",
            "minLength": 50,
            "maxLength": 16000,
            "pattern": "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]*$"
          },
          "price": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000000000
          },
          "make": {
            "default": "",
            "type": "string",
            "maxLength": 120
          },
          "model": {
            "type": "string",
            "maxLength": 120
          },
          "generation": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ]
          },
          "makeId": {
            "type": "string",
            "maxLength": 180
          },
          "modelId": {
            "type": "string",
            "maxLength": 300
          },
          "generationId": {
            "type": "string",
            "maxLength": 180
          },
          "year": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1900,
                "maximum": 2027
              },
              {
                "type": "null"
              }
            ]
          },
          "mileage": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000000
              },
              {
                "type": "null"
              }
            ]
          },
          "fuelType": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "petrol",
                  "diesel",
                  "electric",
                  "hybrid",
                  "lpg"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "bodyType": {
            "type": "string",
            "maxLength": 80
          },
          "gearbox": {
            "type": "string",
            "maxLength": 80
          },
          "driveType": {
            "type": "string",
            "maxLength": 80
          },
          "power": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5000
          },
          "engineCc": {
            "type": "integer",
            "minimum": 0,
            "maximum": 30000
          },
          "color": {
            "type": "string",
            "maxLength": 50
          },
          "condition": {
            "type": "string",
            "enum": [
              "new",
              "used"
            ]
          },
          "noAccident": {
            "type": "boolean"
          },
          "firstOwner": {
            "type": "boolean"
          },
          "vatInvoice": {
            "type": "boolean"
          },
          "negotiable": {
            "type": "boolean"
          },
          "contactName": {
            "type": "string",
            "maxLength": 120
          },
          "contactPhone": {
            "type": "string",
            "maxLength": 40
          },
          "dealerLocationId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ]
          },
          "location": {
            "default": "",
            "type": "string"
          },
          "voivodeship": {
            "type": "string",
            "maxLength": 80
          },
          "priceType": {
            "type": "string",
            "maxLength": 40
          },
          "packageTier": {
            "type": "string",
            "enum": [
              "free",
              "basic",
              "plus",
              "pro"
            ]
          },
          "equipment": {
            "maxItems": 300,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 120
            },
            "description": "Wyposażenie i dodatkowe opcje dla typu pojazdu."
          },
          "images": {
            "maxItems": 18,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,119}$"
                },
                {
                  "type": "string",
                  "pattern": "^existing:[a-f0-9]{64}$"
                }
              ]
            }
          },
          "details": {
            "type": "object",
            "properties": {
              "vin": {
                "type": "string",
                "minLength": 1,
                "maxLength": 17,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "serialNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "registrationNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "firstRegistrationDate": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "lifetimeHours": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "trailerAxleCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 8
              },
              "trailerCargo": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "trailerGrossWeightKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "trailerPayloadKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperBedLayout": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "camperSleepingPlaces": {
                "type": "integer",
                "minimum": 0,
                "maximum": 50
              },
              "camperTravelSeats": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "camperBase": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "camperGvwKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperKitchen": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "camperBathroom": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "propulsion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "maxExcavatingDepthMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "maxExcavatingCapacityM3": {
                "type": "number",
                "minimum": 0,
                "maximum": 10000
              },
              "maxLiftingWeightKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "maxLiftingHeightMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "offHighway": {
                "type": "boolean"
              },
              "refrigeratorUnit": {
                "type": "boolean"
              },
              "partMainCategory": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partSubCategory": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partCategoryPath": {
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                }
              },
              "partProducer": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partProducerCustom": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partCondition": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partStockQuantity": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "partVehicleTypes": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                }
              },
              "partCompatibilityVehicles": {
                "maxItems": 80,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "enum": [
                        "passenger",
                        "delivery",
                        "truck",
                        "motorcycle",
                        "camper",
                        "trailer",
                        "agriculture",
                        "construction"
                      ]
                    },
                    "make": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "model": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "generation": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "makeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 180,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "modelId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 300,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "generationId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 180,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "customMake": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "customModel": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "yearFrom": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2200
                    },
                    "yearTo": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2200
                    },
                    "engineVersion": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "partYearFrom": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2200
              },
              "partYearTo": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2200
              },
              "partTireWidth": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 500
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d{2,3}$"
                  }
                ]
              },
              "partTireProfile": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d{1,3}$"
                  }
                ]
              },
              "partRimSize": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 100
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d{1,2}(?:[.,]\\d{1,2})?$"
                  }
                ]
              },
              "partTireType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partRimsType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partDelivery": {
                "type": "object",
                "properties": {
                  "dpdEnabled": {
                    "type": "boolean"
                  },
                  "dpdCost": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "inpostEnabled": {
                    "type": "boolean"
                  },
                  "inpostCost": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "postEnabled": {
                    "type": "boolean"
                  },
                  "postCost": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "pickupEnabled": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              "partOeNumbers": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                }
              },
              "partQuantityLabel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partEngineVersion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partTireBrand": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partSpeedIndex": {
                "type": "string",
                "minLength": 1,
                "maxLength": 12,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partRollingResistance": {
                "type": "string",
                "minLength": 1,
                "maxLength": 12,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partWetGrip": {
                "type": "string",
                "minLength": 1,
                "maxLength": 12,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partExternalNoiseDb": {
                "type": "integer",
                "minimum": 0,
                "maximum": 150
              },
              "partInstallationPositions": {
                "maxItems": 12,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                }
              },
              "partSteeringSide": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partAdditionalCompatibility": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partDeliveryTime": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partReturnPolicy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partSalesDocument": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partCustomName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "offerMode": {
                "type": "string",
                "enum": [
                  "sale",
                  "rent"
                ]
              },
              "financingAvailable": {
                "type": "boolean"
              },
              "leasingAvailable": {
                "type": "boolean"
              },
              "exchangePossible": {
                "type": "boolean"
              },
              "showPhone": {
                "type": "boolean"
              },
              "mapPinnedManually": {
                "type": "boolean"
              },
              "damaged": {
                "type": "boolean"
              },
              "rightHandDrive": {
                "type": "boolean"
              },
              "doubleRearWheels": {
                "type": "boolean"
              },
              "engineCode": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "seats": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 120
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 12,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  }
                ]
              },
              "doors": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 30
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 12,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  }
                ]
              },
              "colorType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "upholsteryMaterial": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "upholsteryColor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "motorcycleLicenseCategory": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "truckCabinType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "dpfStatus": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "accidentHistory": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "serviceHistory": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "ownerCount": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "firstRegistrationCountry": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "registrationInPolandDate": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "technicalInspectionUntil": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "warrantyUntil": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "makerWarrantyUntilKm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000000
              },
              "lengthMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "widthMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "heightMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "wheelbaseMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "curbWeightKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperInteriorLengthMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperInteriorWidthMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperInteriorHeightMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperTotalHeightMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperFreshWaterL": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "camperGreyWaterL": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "camperLpgTankL": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "powerKw": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "topSpeedKmh": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2000
              },
              "torqueNm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "co2Emission": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "euroStandard": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "fuelConsumptionCity": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000
              },
              "fuelConsumptionHighway": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000
              },
              "fuelConsumptionCombined": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000
              },
              "tankCapacityL": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "trunkCapacityL": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "acceleration0100": {
                "type": "number",
                "minimum": 0,
                "maximum": 120
              },
              "batteryRangeKm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "chargerPowerKw": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "maxChargingPowerKw": {
                "type": "number",
                "minimum": 0,
                "maximum": 10000
              },
              "chargingTime80Min": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "chargingTime100Min": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "chargingTimeHomeMin": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "chargingConnectorType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "chargingCurrentType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "batteryCapacityKwh": {
                "type": "number",
                "minimum": 0,
                "maximum": 100000
              },
              "batteryType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "batteryCondition": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "batteryCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000
              },
              "batteryCycleCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "electricPowerPeakKw": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "evBattery": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "evCable": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "evFastCharge": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "evRegen": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "customMake": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "customModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              }
            },
            "additionalProperties": false
          },
          "lat": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "lng": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "listingTypeValue": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "formContractVersion": {
            "type": "number",
            "const": 2
          },
          "singlePromotionKeys": {
            "maxItems": 5,
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "refresh_bump",
                "top_list",
                "homepage",
                "premium_map",
                "hot_buyer_push"
              ]
            }
          },
          "invoiceBilling": {
            "type": "object",
            "properties": {
              "recipientType": {
                "type": "string",
                "enum": [
                  "private",
                  "company"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 180,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "nip": {
                "type": "string",
                "pattern": "^\\d{10}$"
              },
              "street": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "buildingNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 30,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "apartmentNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 30,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "address": {
                "type": "string",
                "minLength": 1,
                "maxLength": 220,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "postalCode": {
                "type": "string",
                "pattern": "^\\d{2}-\\d{3}$"
              },
              "city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "email": {
                "type": "string",
                "maxLength": 160,
                "format": "email",
                "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              },
              "phone": {
                "type": "string",
                "maxLength": 40,
                "pattern": "^[\\d+\\s()-]+$"
              }
            },
            "required": [
              "recipientType",
              "name",
              "postalCode",
              "city"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "title",
          "description",
          "price",
          "images",
          "listingTypeValue"
        ],
        "additionalProperties": false
      },
      "UpdateListingInput": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 100,
            "pattern": "^[^\\p{Cc}\\p{Cf}]*$"
          },
          "shortDescription": {
            "type": "string",
            "maxLength": 80
          },
          "description": {
            "type": "string",
            "maxLength": 16000,
            "pattern": "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]*$"
          },
          "price": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "make": {
            "type": "string",
            "maxLength": 120
          },
          "model": {
            "type": "string",
            "maxLength": 120
          },
          "generation": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ]
          },
          "makeId": {
            "type": "string",
            "maxLength": 180
          },
          "modelId": {
            "type": "string",
            "maxLength": 300
          },
          "generationId": {
            "type": "string",
            "maxLength": 180
          },
          "year": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1900,
                "maximum": 2027
              },
              {
                "type": "null"
              }
            ]
          },
          "location": {
            "type": "string"
          },
          "voivodeship": {
            "type": "string",
            "maxLength": 80
          },
          "mileage": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000000
              },
              {
                "type": "null"
              }
            ]
          },
          "fuelType": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "petrol",
                  "diesel",
                  "electric",
                  "hybrid",
                  "lpg"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "bodyType": {
            "type": "string",
            "maxLength": 80
          },
          "gearbox": {
            "type": "string",
            "maxLength": 80
          },
          "driveType": {
            "type": "string",
            "maxLength": 80
          },
          "power": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5000
          },
          "engineCc": {
            "type": "integer",
            "minimum": 0,
            "maximum": 30000
          },
          "color": {
            "type": "string",
            "maxLength": 50
          },
          "condition": {
            "type": "string",
            "enum": [
              "new",
              "used"
            ]
          },
          "noAccident": {
            "type": "boolean"
          },
          "firstOwner": {
            "type": "boolean"
          },
          "vatInvoice": {
            "type": "boolean"
          },
          "negotiable": {
            "type": "boolean"
          },
          "contactName": {
            "type": "string",
            "maxLength": 120
          },
          "contactPhone": {
            "type": "string",
            "maxLength": 40
          },
          "dealerLocationId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ]
          },
          "priceType": {
            "type": "string",
            "maxLength": 40
          },
          "equipment": {
            "maxItems": 300,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 120
            },
            "description": "Pełna docelowa lista opcji. Pusta tablica czyści opcje, a pominięcie pola zachowuje dotychczasowe."
          },
          "images": {
            "maxItems": 18,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,119}$"
                },
                {
                  "type": "string",
                  "pattern": "^existing:[a-f0-9]{64}$"
                }
              ]
            },
            "description": "Po pominięciu pola zdjęcia pozostają bez zmian."
          },
          "details": {
            "type": "object",
            "properties": {
              "vin": {
                "type": "string",
                "minLength": 1,
                "maxLength": 17,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "serialNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "registrationNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "firstRegistrationDate": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "lifetimeHours": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "trailerAxleCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 8
              },
              "trailerCargo": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "trailerGrossWeightKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "trailerPayloadKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperBedLayout": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "camperSleepingPlaces": {
                "type": "integer",
                "minimum": 0,
                "maximum": 50
              },
              "camperTravelSeats": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "camperBase": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "camperGvwKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperKitchen": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "camperBathroom": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "propulsion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "maxExcavatingDepthMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "maxExcavatingCapacityM3": {
                "type": "number",
                "minimum": 0,
                "maximum": 10000
              },
              "maxLiftingWeightKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "maxLiftingHeightMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "offHighway": {
                "type": "boolean"
              },
              "refrigeratorUnit": {
                "type": "boolean"
              },
              "partMainCategory": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partSubCategory": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partCategoryPath": {
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                }
              },
              "partProducer": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partProducerCustom": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partCondition": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partStockQuantity": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "partVehicleTypes": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                }
              },
              "partCompatibilityVehicles": {
                "maxItems": 80,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "enum": [
                        "passenger",
                        "delivery",
                        "truck",
                        "motorcycle",
                        "camper",
                        "trailer",
                        "agriculture",
                        "construction"
                      ]
                    },
                    "make": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "model": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "generation": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "makeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 180,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "modelId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 300,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "generationId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 180,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "customMake": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "customModel": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "yearFrom": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2200
                    },
                    "yearTo": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2200
                    },
                    "engineVersion": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "partYearFrom": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2200
              },
              "partYearTo": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2200
              },
              "partTireWidth": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 500
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d{2,3}$"
                  }
                ]
              },
              "partTireProfile": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d{1,3}$"
                  }
                ]
              },
              "partRimSize": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 100
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d{1,2}(?:[.,]\\d{1,2})?$"
                  }
                ]
              },
              "partTireType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partRimsType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partDelivery": {
                "type": "object",
                "properties": {
                  "dpdEnabled": {
                    "type": "boolean"
                  },
                  "dpdCost": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "inpostEnabled": {
                    "type": "boolean"
                  },
                  "inpostCost": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "postEnabled": {
                    "type": "boolean"
                  },
                  "postCost": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "pickupEnabled": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              "partOeNumbers": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                }
              },
              "partQuantityLabel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partEngineVersion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partTireBrand": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partSpeedIndex": {
                "type": "string",
                "minLength": 1,
                "maxLength": 12,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partRollingResistance": {
                "type": "string",
                "minLength": 1,
                "maxLength": 12,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partWetGrip": {
                "type": "string",
                "minLength": 1,
                "maxLength": 12,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partExternalNoiseDb": {
                "type": "integer",
                "minimum": 0,
                "maximum": 150
              },
              "partInstallationPositions": {
                "maxItems": 12,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                }
              },
              "partSteeringSide": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partAdditionalCompatibility": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partDeliveryTime": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partReturnPolicy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partSalesDocument": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partCustomName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "offerMode": {
                "type": "string",
                "enum": [
                  "sale",
                  "rent"
                ]
              },
              "financingAvailable": {
                "type": "boolean"
              },
              "leasingAvailable": {
                "type": "boolean"
              },
              "exchangePossible": {
                "type": "boolean"
              },
              "showPhone": {
                "type": "boolean"
              },
              "mapPinnedManually": {
                "type": "boolean"
              },
              "damaged": {
                "type": "boolean"
              },
              "rightHandDrive": {
                "type": "boolean"
              },
              "doubleRearWheels": {
                "type": "boolean"
              },
              "engineCode": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "seats": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 120
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 12,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  }
                ]
              },
              "doors": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 30
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 12,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  }
                ]
              },
              "colorType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "upholsteryMaterial": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "upholsteryColor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "motorcycleLicenseCategory": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "truckCabinType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "dpfStatus": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "accidentHistory": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "serviceHistory": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "ownerCount": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "firstRegistrationCountry": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "registrationInPolandDate": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "technicalInspectionUntil": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "warrantyUntil": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "makerWarrantyUntilKm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000000
              },
              "lengthMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "widthMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "heightMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "wheelbaseMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "curbWeightKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperInteriorLengthMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperInteriorWidthMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperInteriorHeightMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperTotalHeightMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperFreshWaterL": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "camperGreyWaterL": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "camperLpgTankL": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "powerKw": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "topSpeedKmh": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2000
              },
              "torqueNm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "co2Emission": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "euroStandard": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "fuelConsumptionCity": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000
              },
              "fuelConsumptionHighway": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000
              },
              "fuelConsumptionCombined": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000
              },
              "tankCapacityL": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "trunkCapacityL": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "acceleration0100": {
                "type": "number",
                "minimum": 0,
                "maximum": 120
              },
              "batteryRangeKm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "chargerPowerKw": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "maxChargingPowerKw": {
                "type": "number",
                "minimum": 0,
                "maximum": 10000
              },
              "chargingTime80Min": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "chargingTime100Min": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "chargingTimeHomeMin": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "chargingConnectorType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "chargingCurrentType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "batteryCapacityKwh": {
                "type": "number",
                "minimum": 0,
                "maximum": 100000
              },
              "batteryType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "batteryCondition": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "batteryCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000
              },
              "batteryCycleCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "electricPowerPeakKw": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "evBattery": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "evCable": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "evFastCharge": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "evRegen": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "customMake": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "customModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              }
            },
            "additionalProperties": false
          },
          "lat": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "lng": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "listingTypeValue": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "formContractVersion": {
            "type": "number",
            "const": 2
          }
        },
        "additionalProperties": false,
        "description": "Szkic może być niekompletny. Aktywne ogłoszenie i szkic z płatnością obowiązują pełne reguły publikacji."
      },
      "CloseListingInput": {
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string",
            "enum": [
              "sold",
              "withdrawn"
            ]
          }
        },
        "required": [
          "outcome"
        ],
        "additionalProperties": false
      },
      "PhotoReservationInput": {
        "type": "object",
        "properties": {
          "contentType": {
            "type": "string",
            "enum": [
              "image/jpeg",
              "image/png",
              "image/webp",
              "image/avif"
            ]
          },
          "sizeBytes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 10485760
          },
          "category": {
            "type": "string",
            "enum": [
              "osobowe",
              "dostawcze",
              "ciezarowe",
              "motocykle",
              "kampery",
              "czesci"
            ]
          }
        },
        "required": [
          "contentType",
          "sizeBytes",
          "category"
        ],
        "additionalProperties": false
      },
      "ListingReadableOptions": {
        "type": "object",
        "properties": {
          "lifetimeHours": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "trailerAxleCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 8
          },
          "trailerCargo": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "trailerGrossWeightKg": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "trailerPayloadKg": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "camperBedLayout": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "camperSleepingPlaces": {
            "type": "integer",
            "minimum": 0,
            "maximum": 50
          },
          "camperTravelSeats": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "camperBase": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "camperGvwKg": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "camperKitchen": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "camperBathroom": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "propulsion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "maxExcavatingDepthMm": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "maxExcavatingCapacityM3": {
            "type": "number",
            "minimum": 0,
            "maximum": 10000
          },
          "maxLiftingWeightKg": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "maxLiftingHeightMm": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "offHighway": {
            "type": "boolean"
          },
          "refrigeratorUnit": {
            "type": "boolean"
          },
          "partMainCategory": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partSubCategory": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partCategoryPath": {
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
            }
          },
          "partProducer": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partProducerCustom": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partCondition": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partStockQuantity": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          },
          "partVehicleTypes": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
            }
          },
          "partCompatibilityVehicles": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "scope": {
                  "type": "string",
                  "enum": [
                    "passenger",
                    "delivery",
                    "truck",
                    "motorcycle",
                    "camper",
                    "trailer",
                    "agriculture",
                    "construction"
                  ]
                },
                "make": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                },
                "model": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                },
                "generation": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                },
                "makeId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 180,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                },
                "modelId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 300,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                },
                "generationId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 180,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                },
                "customMake": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                },
                "customModel": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                },
                "yearFrom": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2200
                },
                "yearTo": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2200
                },
                "engineVersion": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                }
              }
            }
          },
          "partYearFrom": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2200
          },
          "partYearTo": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2200
          },
          "partTireWidth": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 500
              },
              {
                "type": "string",
                "pattern": "^\\d{2,3}$"
              }
            ]
          },
          "partTireProfile": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              {
                "type": "string",
                "pattern": "^\\d{1,3}$"
              }
            ]
          },
          "partRimSize": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 1,
                "maximum": 100
              },
              {
                "type": "string",
                "pattern": "^\\d{1,2}(?:[.,]\\d{1,2})?$"
              }
            ]
          },
          "partTireType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partRimsType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partDelivery": {
            "type": "object",
            "properties": {
              "dpdEnabled": {
                "type": "boolean"
              },
              "dpdCost": {
                "type": "number",
                "minimum": 0,
                "maximum": 100000
              },
              "inpostEnabled": {
                "type": "boolean"
              },
              "inpostCost": {
                "type": "number",
                "minimum": 0,
                "maximum": 100000
              },
              "postEnabled": {
                "type": "boolean"
              },
              "postCost": {
                "type": "number",
                "minimum": 0,
                "maximum": 100000
              },
              "pickupEnabled": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          },
          "partOeNumbers": {
            "maxItems": 30,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80,
              "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
            }
          },
          "partQuantityLabel": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partEngineVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partTireBrand": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partSpeedIndex": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partRollingResistance": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partWetGrip": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partExternalNoiseDb": {
            "type": "integer",
            "minimum": 0,
            "maximum": 150
          },
          "partInstallationPositions": {
            "maxItems": 12,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160,
              "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
            }
          },
          "partSteeringSide": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partAdditionalCompatibility": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partDeliveryTime": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partReturnPolicy": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partSalesDocument": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "partCustomName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "offerMode": {
            "type": "string",
            "enum": [
              "sale",
              "rent"
            ]
          },
          "financingAvailable": {
            "type": "boolean"
          },
          "leasingAvailable": {
            "type": "boolean"
          },
          "exchangePossible": {
            "type": "boolean"
          },
          "showPhone": {
            "type": "boolean"
          },
          "mapPinnedManually": {
            "type": "boolean"
          },
          "damaged": {
            "type": "boolean"
          },
          "rightHandDrive": {
            "type": "boolean"
          },
          "doubleRearWheels": {
            "type": "boolean"
          },
          "engineCode": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "seats": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 120
              },
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 12,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              }
            ]
          },
          "doors": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 30
              },
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 12,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              }
            ]
          },
          "colorType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "upholsteryMaterial": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "upholsteryColor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "motorcycleLicenseCategory": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "truckCabinType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "dpfStatus": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "accidentHistory": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "serviceHistory": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "ownerCount": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "firstRegistrationCountry": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "registrationInPolandDate": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "technicalInspectionUntil": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "warrantyUntil": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "makerWarrantyUntilKm": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000000
          },
          "lengthMm": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "widthMm": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "heightMm": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "wheelbaseMm": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "curbWeightKg": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "camperInteriorLengthMm": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "camperInteriorWidthMm": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "camperInteriorHeightMm": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "camperTotalHeightMm": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "camperFreshWaterL": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "camperGreyWaterL": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "camperLpgTankL": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "powerKw": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "topSpeedKmh": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2000
          },
          "torqueNm": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          },
          "co2Emission": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "euroStandard": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "fuelConsumptionCity": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000
          },
          "fuelConsumptionHighway": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000
          },
          "fuelConsumptionCombined": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000
          },
          "tankCapacityL": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          },
          "trunkCapacityL": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          },
          "acceleration0100": {
            "type": "number",
            "minimum": 0,
            "maximum": 120
          },
          "batteryRangeKm": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "chargerPowerKw": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "maxChargingPowerKw": {
            "type": "number",
            "minimum": 0,
            "maximum": 10000
          },
          "chargingTime80Min": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          },
          "chargingTime100Min": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          },
          "chargingTimeHomeMin": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          },
          "chargingConnectorType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "chargingCurrentType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "batteryCapacityKwh": {
            "type": "number",
            "minimum": 0,
            "maximum": 100000
          },
          "batteryType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "batteryCondition": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "batteryCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000
          },
          "batteryCycleCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "electricPowerPeakKw": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "evBattery": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "evCable": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "evFastCharge": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "evRegen": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "customMake": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "customModel": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "imported": {
            "type": "boolean"
          },
          "rentalBillingPeriod": {
            "type": "string",
            "const": "month"
          }
        },
        "additionalProperties": false
      },
      "CreateDraftInput": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 100,
            "pattern": "^[^\\p{Cc}\\p{Cf}]*$"
          },
          "shortDescription": {
            "type": "string",
            "maxLength": 80
          },
          "description": {
            "type": "string",
            "maxLength": 16000,
            "pattern": "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]*$"
          },
          "price": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "make": {
            "type": "string",
            "maxLength": 120
          },
          "model": {
            "type": "string",
            "maxLength": 120
          },
          "generation": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ]
          },
          "makeId": {
            "type": "string",
            "maxLength": 180
          },
          "modelId": {
            "type": "string",
            "maxLength": 300
          },
          "generationId": {
            "type": "string",
            "maxLength": 180
          },
          "year": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1900,
                "maximum": 2027
              },
              {
                "type": "null"
              }
            ]
          },
          "location": {
            "type": "string"
          },
          "voivodeship": {
            "type": "string",
            "maxLength": 80
          },
          "mileage": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000000
              },
              {
                "type": "null"
              }
            ]
          },
          "fuelType": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "petrol",
                  "diesel",
                  "electric",
                  "hybrid",
                  "lpg"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "bodyType": {
            "type": "string",
            "maxLength": 80
          },
          "gearbox": {
            "type": "string",
            "maxLength": 80
          },
          "driveType": {
            "type": "string",
            "maxLength": 80
          },
          "power": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5000
          },
          "engineCc": {
            "type": "integer",
            "minimum": 0,
            "maximum": 30000
          },
          "color": {
            "type": "string",
            "maxLength": 50
          },
          "condition": {
            "type": "string",
            "enum": [
              "new",
              "used"
            ]
          },
          "noAccident": {
            "type": "boolean"
          },
          "firstOwner": {
            "type": "boolean"
          },
          "vatInvoice": {
            "type": "boolean"
          },
          "negotiable": {
            "type": "boolean"
          },
          "contactName": {
            "type": "string",
            "maxLength": 120
          },
          "contactPhone": {
            "type": "string",
            "maxLength": 40
          },
          "dealerLocationId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ]
          },
          "priceType": {
            "type": "string",
            "maxLength": 40
          },
          "equipment": {
            "maxItems": 300,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 120
            }
          },
          "images": {
            "maxItems": 18,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,119}$"
                },
                {
                  "type": "string",
                  "pattern": "^existing:[a-f0-9]{64}$"
                }
              ]
            }
          },
          "details": {
            "type": "object",
            "properties": {
              "vin": {
                "type": "string",
                "minLength": 1,
                "maxLength": 17,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "serialNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "registrationNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "firstRegistrationDate": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "lifetimeHours": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "trailerAxleCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 8
              },
              "trailerCargo": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "trailerGrossWeightKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "trailerPayloadKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperBedLayout": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "camperSleepingPlaces": {
                "type": "integer",
                "minimum": 0,
                "maximum": 50
              },
              "camperTravelSeats": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "camperBase": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "camperGvwKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperKitchen": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "camperBathroom": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "propulsion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "maxExcavatingDepthMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "maxExcavatingCapacityM3": {
                "type": "number",
                "minimum": 0,
                "maximum": 10000
              },
              "maxLiftingWeightKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "maxLiftingHeightMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "offHighway": {
                "type": "boolean"
              },
              "refrigeratorUnit": {
                "type": "boolean"
              },
              "partMainCategory": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partSubCategory": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partCategoryPath": {
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                }
              },
              "partProducer": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partProducerCustom": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partCondition": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partStockQuantity": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "partVehicleTypes": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                }
              },
              "partCompatibilityVehicles": {
                "maxItems": 80,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string",
                      "enum": [
                        "passenger",
                        "delivery",
                        "truck",
                        "motorcycle",
                        "camper",
                        "trailer",
                        "agriculture",
                        "construction"
                      ]
                    },
                    "make": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "model": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "generation": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "makeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 180,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "modelId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 300,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "generationId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 180,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "customMake": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "customModel": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    },
                    "yearFrom": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2200
                    },
                    "yearTo": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2200
                    },
                    "engineVersion": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "partYearFrom": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2200
              },
              "partYearTo": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2200
              },
              "partTireWidth": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 500
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d{2,3}$"
                  }
                ]
              },
              "partTireProfile": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d{1,3}$"
                  }
                ]
              },
              "partRimSize": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 100
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d{1,2}(?:[.,]\\d{1,2})?$"
                  }
                ]
              },
              "partTireType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partRimsType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partDelivery": {
                "type": "object",
                "properties": {
                  "dpdEnabled": {
                    "type": "boolean"
                  },
                  "dpdCost": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "inpostEnabled": {
                    "type": "boolean"
                  },
                  "inpostCost": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "postEnabled": {
                    "type": "boolean"
                  },
                  "postCost": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "pickupEnabled": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              "partOeNumbers": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                }
              },
              "partQuantityLabel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partEngineVersion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partTireBrand": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partSpeedIndex": {
                "type": "string",
                "minLength": 1,
                "maxLength": 12,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partRollingResistance": {
                "type": "string",
                "minLength": 1,
                "maxLength": 12,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partWetGrip": {
                "type": "string",
                "minLength": 1,
                "maxLength": 12,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partExternalNoiseDb": {
                "type": "integer",
                "minimum": 0,
                "maximum": 150
              },
              "partInstallationPositions": {
                "maxItems": 12,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                }
              },
              "partSteeringSide": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partAdditionalCompatibility": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partDeliveryTime": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partReturnPolicy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partSalesDocument": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "partCustomName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "offerMode": {
                "type": "string",
                "enum": [
                  "sale",
                  "rent"
                ]
              },
              "financingAvailable": {
                "type": "boolean"
              },
              "leasingAvailable": {
                "type": "boolean"
              },
              "exchangePossible": {
                "type": "boolean"
              },
              "showPhone": {
                "type": "boolean"
              },
              "mapPinnedManually": {
                "type": "boolean"
              },
              "damaged": {
                "type": "boolean"
              },
              "rightHandDrive": {
                "type": "boolean"
              },
              "doubleRearWheels": {
                "type": "boolean"
              },
              "engineCode": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "seats": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 120
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 12,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  }
                ]
              },
              "doors": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 30
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 12,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  }
                ]
              },
              "colorType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "upholsteryMaterial": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "upholsteryColor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "motorcycleLicenseCategory": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "truckCabinType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "dpfStatus": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "accidentHistory": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "serviceHistory": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "ownerCount": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "firstRegistrationCountry": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "registrationInPolandDate": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "technicalInspectionUntil": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "warrantyUntil": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "makerWarrantyUntilKm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000000
              },
              "lengthMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "widthMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "heightMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "wheelbaseMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "curbWeightKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperInteriorLengthMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperInteriorWidthMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperInteriorHeightMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperTotalHeightMm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "camperFreshWaterL": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "camperGreyWaterL": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "camperLpgTankL": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "powerKw": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "topSpeedKmh": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2000
              },
              "torqueNm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "co2Emission": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "euroStandard": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "fuelConsumptionCity": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000
              },
              "fuelConsumptionHighway": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000
              },
              "fuelConsumptionCombined": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000
              },
              "tankCapacityL": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "trunkCapacityL": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "acceleration0100": {
                "type": "number",
                "minimum": 0,
                "maximum": 120
              },
              "batteryRangeKm": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "chargerPowerKw": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "maxChargingPowerKw": {
                "type": "number",
                "minimum": 0,
                "maximum": 10000
              },
              "chargingTime80Min": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "chargingTime100Min": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "chargingTimeHomeMin": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "chargingConnectorType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "chargingCurrentType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "batteryCapacityKwh": {
                "type": "number",
                "minimum": 0,
                "maximum": 100000
              },
              "batteryType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "batteryCondition": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "batteryCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000
              },
              "batteryCycleCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "electricPowerPeakKw": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "evBattery": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "evCable": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "evFastCharge": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "evRegen": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "customMake": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "customModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              }
            },
            "additionalProperties": false
          },
          "lat": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "lng": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "listingTypeValue": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          },
          "formContractVersion": {
            "type": "number",
            "const": 2
          },
          "packageTier": {
            "type": "string",
            "enum": [
              "free",
              "basic",
              "plus",
              "pro"
            ]
          }
        },
        "required": [
          "listingTypeValue"
        ],
        "additionalProperties": false
      },
      "PublishOrRenewInput": {
        "type": "object",
        "properties": {
          "packageTier": {
            "type": "string",
            "enum": [
              "free",
              "basic",
              "plus",
              "pro"
            ]
          },
          "singlePromotionKeys": {
            "maxItems": 5,
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "refresh_bump",
                "top_list",
                "homepage",
                "premium_map",
                "hot_buyer_push"
              ]
            }
          },
          "invoiceBilling": {
            "type": "object",
            "properties": {
              "recipientType": {
                "type": "string",
                "enum": [
                  "private",
                  "company"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 180,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "nip": {
                "type": "string",
                "pattern": "^\\d{10}$"
              },
              "street": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "buildingNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 30,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "apartmentNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 30,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "address": {
                "type": "string",
                "minLength": 1,
                "maxLength": 220,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "postalCode": {
                "type": "string",
                "pattern": "^\\d{2}-\\d{3}$"
              },
              "city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "email": {
                "type": "string",
                "maxLength": 160,
                "format": "email",
                "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              },
              "phone": {
                "type": "string",
                "maxLength": 40,
                "pattern": "^[\\d+\\s()-]+$"
              }
            },
            "required": [
              "recipientType",
              "name",
              "postalCode",
              "city"
            ],
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "PromoteInput": {
        "type": "object",
        "properties": {
          "targetPackageTier": {
            "type": "string",
            "enum": [
              "basic",
              "plus",
              "pro"
            ]
          },
          "singlePromotionKeys": {
            "maxItems": 5,
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "refresh_bump",
                "top_list",
                "homepage",
                "premium_map",
                "hot_buyer_push"
              ]
            }
          },
          "invoiceBilling": {
            "type": "object",
            "properties": {
              "recipientType": {
                "type": "string",
                "enum": [
                  "private",
                  "company"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 180,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "nip": {
                "type": "string",
                "pattern": "^\\d{10}$"
              },
              "street": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "buildingNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 30,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "apartmentNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 30,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "address": {
                "type": "string",
                "minLength": 1,
                "maxLength": 220,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "postalCode": {
                "type": "string",
                "pattern": "^\\d{2}-\\d{3}$"
              },
              "city": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "email": {
                "type": "string",
                "maxLength": 160,
                "format": "email",
                "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              },
              "phone": {
                "type": "string",
                "maxLength": 40,
                "pattern": "^[\\d+\\s()-]+$"
              }
            },
            "required": [
              "recipientType",
              "name",
              "postalCode",
              "city"
            ],
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "DuplicateInput": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "PaymentReceipt": {
        "type": "object",
        "required": [
          "id",
          "amountCents",
          "currency",
          "status"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "amountCents": {
            "type": "integer",
            "minimum": 1
          },
          "currency": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        }
      },
      "ListingPreviewInput": {
        "type": "object",
        "properties": {
          "listingId": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,119}$"
          },
          "listing": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string",
                "maxLength": 100,
                "pattern": "^[^\\p{Cc}\\p{Cf}]*$"
              },
              "shortDescription": {
                "type": "string",
                "maxLength": 80
              },
              "description": {
                "type": "string",
                "maxLength": 16000,
                "pattern": "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]*$"
              },
              "price": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              "make": {
                "type": "string",
                "maxLength": 120
              },
              "model": {
                "type": "string",
                "maxLength": 120
              },
              "generation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 80
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "makeId": {
                "type": "string",
                "maxLength": 180
              },
              "modelId": {
                "type": "string",
                "maxLength": 300
              },
              "generationId": {
                "type": "string",
                "maxLength": 180
              },
              "year": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1900,
                    "maximum": 2027
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "location": {
                "type": "string"
              },
              "voivodeship": {
                "type": "string",
                "maxLength": 80
              },
              "mileage": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fuelType": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "petrol",
                      "diesel",
                      "electric",
                      "hybrid",
                      "lpg"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "bodyType": {
                "type": "string",
                "maxLength": 80
              },
              "gearbox": {
                "type": "string",
                "maxLength": 80
              },
              "driveType": {
                "type": "string",
                "maxLength": 80
              },
              "power": {
                "type": "integer",
                "minimum": 1,
                "maximum": 5000
              },
              "engineCc": {
                "type": "integer",
                "minimum": 0,
                "maximum": 30000
              },
              "color": {
                "type": "string",
                "maxLength": 50
              },
              "condition": {
                "type": "string",
                "enum": [
                  "new",
                  "used"
                ]
              },
              "noAccident": {
                "type": "boolean"
              },
              "firstOwner": {
                "type": "boolean"
              },
              "vatInvoice": {
                "type": "boolean"
              },
              "negotiable": {
                "type": "boolean"
              },
              "contactName": {
                "type": "string",
                "maxLength": 120
              },
              "contactPhone": {
                "type": "string",
                "maxLength": 40
              },
              "dealerLocationId": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "priceType": {
                "type": "string",
                "maxLength": 40
              },
              "equipment": {
                "maxItems": 300,
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 120
                }
              },
              "images": {
                "maxItems": 18,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,119}$"
                    },
                    {
                      "type": "string",
                      "pattern": "^existing:[a-f0-9]{64}$"
                    }
                  ]
                }
              },
              "details": {
                "type": "object",
                "properties": {
                  "vin": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 17,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "serialNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "registrationNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "firstRegistrationDate": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "lifetimeHours": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "trailerAxleCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 8
                  },
                  "trailerCargo": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "trailerGrossWeightKg": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "trailerPayloadKg": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "camperBedLayout": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "camperSleepingPlaces": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 50
                  },
                  "camperTravelSeats": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "camperBase": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "camperGvwKg": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "camperKitchen": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "camperBathroom": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "propulsion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "maxExcavatingDepthMm": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "maxExcavatingCapacityM3": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "maxLiftingWeightKg": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "maxLiftingHeightMm": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "offHighway": {
                    "type": "boolean"
                  },
                  "refrigeratorUnit": {
                    "type": "boolean"
                  },
                  "partMainCategory": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partSubCategory": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partCategoryPath": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    }
                  },
                  "partProducer": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partProducerCustom": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partCondition": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partStockQuantity": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "partVehicleTypes": {
                    "maxItems": 24,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    }
                  },
                  "partCompatibilityVehicles": {
                    "maxItems": 80,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "scope": {
                          "type": "string",
                          "enum": [
                            "passenger",
                            "delivery",
                            "truck",
                            "motorcycle",
                            "camper",
                            "trailer",
                            "agriculture",
                            "construction"
                          ]
                        },
                        "make": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160,
                          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                        },
                        "model": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160,
                          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                        },
                        "generation": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160,
                          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                        },
                        "makeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 180,
                          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                        },
                        "modelId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300,
                          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                        },
                        "generationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 180,
                          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                        },
                        "customMake": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                        },
                        "customModel": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                        },
                        "yearFrom": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 2200
                        },
                        "yearTo": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 2200
                        },
                        "engineVersion": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160,
                          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "partYearFrom": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 2200
                  },
                  "partYearTo": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 2200
                  },
                  "partTireWidth": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 500
                      },
                      {
                        "type": "string",
                        "pattern": "^\\d{2,3}$"
                      }
                    ]
                  },
                  "partTireProfile": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      {
                        "type": "string",
                        "pattern": "^\\d{1,3}$"
                      }
                    ]
                  },
                  "partRimSize": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 100
                      },
                      {
                        "type": "string",
                        "pattern": "^\\d{1,2}(?:[.,]\\d{1,2})?$"
                      }
                    ]
                  },
                  "partTireType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partRimsType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partDelivery": {
                    "type": "object",
                    "properties": {
                      "dpdEnabled": {
                        "type": "boolean"
                      },
                      "dpdCost": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100000
                      },
                      "inpostEnabled": {
                        "type": "boolean"
                      },
                      "inpostCost": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100000
                      },
                      "postEnabled": {
                        "type": "boolean"
                      },
                      "postCost": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100000
                      },
                      "pickupEnabled": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "partOeNumbers": {
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    }
                  },
                  "partQuantityLabel": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partEngineVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partTireBrand": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partSpeedIndex": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 12,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partRollingResistance": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 12,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partWetGrip": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 12,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partExternalNoiseDb": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 150
                  },
                  "partInstallationPositions": {
                    "maxItems": 12,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160,
                      "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                    }
                  },
                  "partSteeringSide": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partAdditionalCompatibility": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partDeliveryTime": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partReturnPolicy": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partSalesDocument": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "partCustomName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "offerMode": {
                    "type": "string",
                    "enum": [
                      "sale",
                      "rent"
                    ]
                  },
                  "financingAvailable": {
                    "type": "boolean"
                  },
                  "leasingAvailable": {
                    "type": "boolean"
                  },
                  "exchangePossible": {
                    "type": "boolean"
                  },
                  "showPhone": {
                    "type": "boolean"
                  },
                  "mapPinnedManually": {
                    "type": "boolean"
                  },
                  "damaged": {
                    "type": "boolean"
                  },
                  "rightHandDrive": {
                    "type": "boolean"
                  },
                  "doubleRearWheels": {
                    "type": "boolean"
                  },
                  "engineCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "seats": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 120
                      },
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 12,
                        "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                      }
                    ]
                  },
                  "doors": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 30
                      },
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 12,
                        "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                      }
                    ]
                  },
                  "colorType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "upholsteryMaterial": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "upholsteryColor": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "motorcycleLicenseCategory": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "truckCabinType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "dpfStatus": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "accidentHistory": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "serviceHistory": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "ownerCount": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "firstRegistrationCountry": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "registrationInPolandDate": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "technicalInspectionUntil": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "warrantyUntil": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "makerWarrantyUntilKm": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000000
                  },
                  "lengthMm": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "widthMm": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "heightMm": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "wheelbaseMm": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "curbWeightKg": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "camperInteriorLengthMm": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "camperInteriorWidthMm": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "camperInteriorHeightMm": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "camperTotalHeightMm": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "camperFreshWaterL": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "camperGreyWaterL": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "camperLpgTankL": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "powerKw": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "topSpeedKmh": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 2000
                  },
                  "torqueNm": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "co2Emission": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "euroStandard": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "fuelConsumptionCity": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000
                  },
                  "fuelConsumptionHighway": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000
                  },
                  "fuelConsumptionCombined": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000
                  },
                  "tankCapacityL": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "trunkCapacityL": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "acceleration0100": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 120
                  },
                  "batteryRangeKm": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "chargerPowerKw": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "maxChargingPowerKw": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "chargingTime80Min": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "chargingTime100Min": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "chargingTimeHomeMin": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "chargingConnectorType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "chargingCurrentType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "batteryCapacityKwh": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "batteryType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "batteryCondition": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "batteryCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000
                  },
                  "batteryCycleCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "electricPowerPeakKw": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "evBattery": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "evCable": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "evFastCharge": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "evRegen": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "customMake": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "customModel": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  }
                },
                "additionalProperties": false
              },
              "lat": {
                "type": "number",
                "minimum": -90,
                "maximum": 90
              },
              "lng": {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              "listingTypeValue": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
              },
              "formContractVersion": {
                "type": "number",
                "const": 2
              },
              "packageTier": {
                "type": "string",
                "enum": [
                  "free",
                  "basic",
                  "plus",
                  "pro"
                ]
              }
            },
            "required": [
              "listingTypeValue"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "listing"
        ],
        "additionalProperties": false
      },
      "CepikLookupInput": {
        "type": "object",
        "properties": {
          "vin": {
            "type": "string",
            "pattern": "^[A-HJ-NPR-Z0-9]{17}$"
          },
          "registrationNumber": {
            "type": "string",
            "pattern": "^[A-Z0-9][A-Z0-9 -]{2,17}[A-Z0-9]$"
          },
          "firstRegistrationDate": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "listingTypeValue": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
          }
        },
        "required": [
          "vin",
          "registrationNumber",
          "firstRegistrationDate"
        ],
        "additionalProperties": false
      },
      "ArchiveFeedbackInput": {
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string",
            "enum": [
              "sold",
              "not_sold",
              "other"
            ]
          },
          "recommendationScore": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10
          },
          "note": {
            "type": "string",
            "maxLength": 1000
          }
        },
        "required": [
          "outcome",
          "recommendationScore"
        ],
        "additionalProperties": false
      },
      "ListingPreview": {
        "type": "object",
        "properties": {
          "preview": {
            "const": true
          },
          "listing": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "price": {
                "type": "integer"
              },
              "category": {
                "type": "string"
              },
              "shortDescription": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": "string"
              },
              "priceType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "listingTypeValue": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "make": {
                "type": "string"
              },
              "model": {
                "type": "string"
              },
              "generation": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "makeId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "modelId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "generationId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "year": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "mileage": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "fuelType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "gearbox": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "bodyType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "driveType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "condition": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "power": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "engineCc": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "color": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "location": {
                "type": "string"
              },
              "voivodeship": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "noAccident": {
                "type": "boolean"
              },
              "firstOwner": {
                "type": "boolean"
              },
              "vatInvoice": {
                "type": "boolean"
              },
              "negotiable": {
                "type": "boolean"
              },
              "packageTier": {
                "type": "string"
              },
              "equipment": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Lista wyposażenia i dodatkowych opcji katalogowych."
              },
              "details": {
                "$ref": "#/components/schemas/ListingReadableOptions"
              },
              "images": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "ref": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri-reference"
                    }
                  },
                  "required": [
                    "ref",
                    "url"
                  ]
                }
              }
            },
            "required": [
              "category",
              "details",
              "images"
            ]
          }
        },
        "required": [
          "preview",
          "listing"
        ]
      },
      "CepikLookupResult": {
        "type": "object",
        "properties": {
          "source": {
            "const": "CEPIK"
          },
          "vehicleHistory": {
            "type": "object",
            "properties": {
              "registrationStatus": {
                "type": "string",
                "maxLength": 160
              },
              "technicalInspectionStatus": {
                "type": "string",
                "maxLength": 160
              },
              "technicalInspectionValidUntil": {
                "type": "string",
                "format": "date"
              },
              "hasCurrentOCPolicy": {
                "type": "boolean"
              },
              "insuranceExpiryDate": {
                "type": "string",
                "format": "date"
              },
              "registrationProvince": {
                "type": "string",
                "maxLength": 160
              },
              "documentType": {
                "type": "string",
                "maxLength": 160
              },
              "documentStatus": {
                "type": "string",
                "maxLength": 160
              },
              "documentIssuedAt": {
                "type": "string",
                "format": "date"
              },
              "vehicleDescriptor": {
                "type": "string",
                "maxLength": 160
              },
              "homologationNumber": {
                "type": "string",
                "maxLength": 160
              },
              "homologationCategory": {
                "type": "string",
                "maxLength": 160
              },
              "homologationType": {
                "type": "string",
                "maxLength": 160
              },
              "homologationVariant": {
                "type": "string",
                "maxLength": 160
              },
              "homologationVersion": {
                "type": "string",
                "maxLength": 160
              },
              "primaryFuelLabel": {
                "type": "string",
                "maxLength": 160
              },
              "alternativeFuelLabel": {
                "type": "string",
                "maxLength": 160
              },
              "fuelLabel": {
                "type": "string",
                "maxLength": 160
              },
              "isPlugInHybrid": {
                "type": "boolean"
              },
              "gearboxLabel": {
                "type": "string",
                "maxLength": 160
              },
              "driveTypeLabel": {
                "type": "string",
                "maxLength": 160
              },
              "totalOwners": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "totalCoOwners": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "currentOwners": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "currentCoOwners": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "axleCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "grossWeightKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "payloadKg": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "inspectionEventsCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "historyEventsCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "firstRegistrationAbroadDate": {
                "type": "string",
                "format": "date"
              },
              "firstOwnerInPolandDate": {
                "type": "string",
                "format": "date"
              },
              "reportGenerationDate": {
                "type": "string",
                "format": "date"
              },
              "yearOfProductionDate": {
                "type": "string",
                "format": "date"
              },
              "riskDamaged": {
                "type": "boolean"
              },
              "riskStolen": {
                "type": "boolean"
              },
              "riskScrapped": {
                "type": "boolean"
              },
              "riskOdometerTampering": {
                "type": "boolean"
              }
            }
          },
          "suggestions": {
            "type": "object",
            "properties": {
              "make": {
                "type": "string",
                "maxLength": 120
              },
              "model": {
                "type": "string",
                "maxLength": 120
              },
              "generation": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 80
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "year": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1900,
                    "maximum": 2027
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "mileage": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "engineCc": {
                "type": "integer",
                "minimum": 0,
                "maximum": 30000
              },
              "power": {
                "type": "integer",
                "minimum": 1,
                "maximum": 5000
              },
              "fuelType": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "petrol",
                      "diesel",
                      "electric",
                      "hybrid",
                      "lpg"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "gearbox": {
                "type": "string",
                "maxLength": 80
              },
              "bodyType": {
                "type": "string",
                "maxLength": 80
              },
              "driveType": {
                "type": "string",
                "maxLength": 80
              },
              "color": {
                "type": "string",
                "maxLength": 50
              },
              "details": {
                "type": "object",
                "properties": {
                  "firstRegistrationDate": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "registrationInPolandDate": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "firstRegistrationCountry": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "technicalInspectionUntil": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "ownerCount": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "seats": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 120
                      },
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 12,
                        "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                      }
                    ]
                  },
                  "powerKw": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "co2Emission": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "euroStandard": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160,
                    "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
                  },
                  "fuelConsumptionCombined": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000
                  },
                  "wheelbaseMm": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "curbWeightKg": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "trailerAxleCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 8
                  }
                }
              }
            },
            "required": [
              "details"
            ]
          }
        },
        "required": [
          "source",
          "suggestions",
          "vehicleHistory"
        ]
      }
    },
    "responses": {
      "Failure": {
        "description": "Błąd przetwarzania żądania.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "code",
                "message",
                "requestId"
              ],
              "properties": {
                "code": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                },
                "requestId": {
                  "type": "string"
                },
                "issues": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    },
    "parameters": {
      "IdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": true,
        "description": "UUID żądania. Ponów z tym samym kluczem w ciągu 7 dni.",
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      "IfMatch": {
        "name": "If-Match",
        "in": "header",
        "required": true,
        "description": "Ostatni ETag oferty zwrócony przez API.",
        "schema": {
          "type": "string",
          "pattern": "^\"[0-9a-f]{64}\"$"
        }
      },
      "ResourceId": {
        "name": "id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        }
      },
      "CatalogScope": {
        "name": "scope",
        "in": "query",
        "description": "Podaj scope albo listingTypeValue.",
        "schema": {
          "type": "string",
          "enum": [
            "passenger",
            "delivery",
            "truck",
            "motorcycle",
            "camper",
            "trailer",
            "agriculture",
            "construction"
          ]
        }
      },
      "CatalogListingType": {
        "name": "listingTypeValue",
        "in": "query",
        "description": "Podaj listingTypeValue albo scope.",
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        }
      }
    }
  }
}
