{
  "openapi": "3.0.0",
  "info": {
    "title": "art-backend",
    "version": "1.0.12",
    "description": "API for Artemis app",
    "contact": {
      "name": "Jiri Beck",
      "email": "jb@jiribeck.com"
    }
  },
  "paths": {
    "/health": {
      "get": {
        "x-controller-name": "HealthController",
        "x-operation-name": "health",
        "tags": [
          "HealthController"
        ],
        "responses": {
          "200": {
            "description": "The process answers"
          }
        },
        "operationId": "HealthController.health",
        "security": []
      }
    },
    "/ready": {
      "get": {
        "x-controller-name": "HealthController",
        "x-operation-name": "ready",
        "tags": [
          "HealthController"
        ],
        "responses": {
          "200": {
            "description": "Every configured dependency answers (`off`: not configured here)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Readiness"
                }
              }
            }
          },
          "503": {
            "description": "A configured dependency does not",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Readiness"
                }
              }
            }
          }
        },
        "operationId": "HealthController.ready",
        "security": []
      }
    },
    "/v2/admin/announcements/audience": {
      "post": {
        "x-controller-name": "AnnouncementV2Controller",
        "x-operation-name": "audience",
        "tags": [
          "AnnouncementV2Controller"
        ],
        "responses": {
          "200": {
            "description": "How many people the audience is — before anything is sent",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "count"
                  ],
                  "properties": {
                    "count": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "audience"
                ],
                "properties": {
                  "audience": {
                    "type": "object",
                    "properties": {
                      "all": {
                        "type": "boolean"
                      },
                      "appRoles": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "inventoryOwners": {
                        "type": "boolean"
                      },
                      "personalOwners": {
                        "type": "boolean"
                      },
                      "inventories": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "inventoryId"
                          ],
                          "properties": {
                            "inventoryId": {
                              "type": "string"
                            },
                            "roles": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "AnnouncementV2Controller.audience",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/announcements/preview": {
      "post": {
        "x-controller-name": "AnnouncementV2Controller",
        "x-operation-name": "preview",
        "tags": [
          "AnnouncementV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The e-mail as it will go out, per language it has",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "cs",
                    "en"
                  ],
                  "properties": {
                    "cs": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "subject",
                        "html"
                      ],
                      "properties": {
                        "subject": {
                          "type": "string"
                        },
                        "html": {
                          "type": "string"
                        }
                      }
                    },
                    "en": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "subject",
                        "html"
                      ],
                      "properties": {
                        "subject": {
                          "type": "string"
                        },
                        "html": {
                          "type": "string"
                        }
                      },
                      "nullable": true
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "titleCS",
                  "bodyCS"
                ],
                "properties": {
                  "titleCS": {
                    "type": "string"
                  },
                  "bodyCS": {
                    "type": "string"
                  },
                  "titleEN": {
                    "type": "string"
                  },
                  "bodyEN": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "operationId": "AnnouncementV2Controller.preview",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/announcements/recipients": {
      "post": {
        "x-controller-name": "AnnouncementV2Controller",
        "x-operation-name": "recipients",
        "tags": [
          "AnnouncementV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Who the audience is, by name, and who of them gets the e-mail",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "id",
                      "name",
                      "email",
                      "byEmail"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "email": {
                        "type": "string"
                      },
                      "byEmail": {
                        "type": "boolean"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "audience"
                ],
                "properties": {
                  "audience": {
                    "type": "object",
                    "properties": {
                      "all": {
                        "type": "boolean"
                      },
                      "appRoles": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "inventoryOwners": {
                        "type": "boolean"
                      },
                      "personalOwners": {
                        "type": "boolean"
                      },
                      "inventories": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "inventoryId"
                          ],
                          "properties": {
                            "inventoryId": {
                              "type": "string"
                            },
                            "roles": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "emailForced": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "operationId": "AnnouncementV2Controller.recipients",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/announcements/test": {
      "post": {
        "x-controller-name": "AnnouncementV2Controller",
        "x-operation-name": "test",
        "tags": [
          "AnnouncementV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Sent to the caller, marked [TEST], in every language it has",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "sent"
                  ],
                  "properties": {
                    "sent": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "titleCS",
                  "bodyCS"
                ],
                "properties": {
                  "titleCS": {
                    "type": "string"
                  },
                  "bodyCS": {
                    "type": "string"
                  },
                  "titleEN": {
                    "type": "string"
                  },
                  "bodyEN": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "operationId": "AnnouncementV2Controller.test",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/announcements": {
      "post": {
        "x-controller-name": "AnnouncementV2Controller",
        "x-operation-name": "send",
        "tags": [
          "AnnouncementV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Sent: to how many, and how many of them by e-mail",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "recipients",
                    "emailed"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "recipients": {
                      "type": "integer"
                    },
                    "emailed": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "titleCS",
                  "bodyCS",
                  "audience"
                ],
                "properties": {
                  "titleCS": {
                    "type": "string"
                  },
                  "bodyCS": {
                    "type": "string"
                  },
                  "titleEN": {
                    "type": "string"
                  },
                  "bodyEN": {
                    "type": "string"
                  },
                  "audience": {
                    "type": "object",
                    "properties": {
                      "all": {
                        "type": "boolean"
                      },
                      "appRoles": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "inventoryOwners": {
                        "type": "boolean"
                      },
                      "personalOwners": {
                        "type": "boolean"
                      },
                      "inventories": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "inventoryId"
                          ],
                          "properties": {
                            "inventoryId": {
                              "type": "string"
                            },
                            "roles": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "emailForced": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "operationId": "AnnouncementV2Controller.send",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AnnouncementV2Controller",
        "x-operation-name": "list",
        "tags": [
          "AnnouncementV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The announcements sent, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnouncementPage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "AnnouncementV2Controller.list",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/auctions/{id}": {
      "patch": {
        "x-controller-name": "AdminAuctionV2Controller",
        "x-operation-name": "updateAuction",
        "tags": [
          "AdminAuctionV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The auction after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Auction"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "originalTitle": {
                    "type": "string",
                    "minLength": 1
                  },
                  "countryCode": {
                    "type": "string",
                    "nullable": true
                  },
                  "year": {
                    "type": "number",
                    "nullable": true
                  },
                  "organizerId": {
                    "type": "string"
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "title": {
                          "type": "string"
                        },
                        "isOriginalTitle": {
                          "type": "boolean"
                        },
                        "description": {
                          "type": "string"
                        },
                        "year": {
                          "type": "string"
                        },
                        "cityName": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "AdminAuctionV2Controller.updateAuction",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AdminAuctionV2Controller",
        "x-operation-name": "findAuctionById",
        "tags": [
          "AdminAuctionV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One catalogue auction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuctionInfo"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminAuctionV2Controller.findAuctionById",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "AdminAuctionV2Controller",
        "x-operation-name": "deleteAuction",
        "tags": [
          "AdminAuctionV2Controller"
        ],
        "responses": {
          "204": {
            "description": "The auction was removed"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminAuctionV2Controller.deleteAuction",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/auctions": {
      "post": {
        "x-controller-name": "AdminAuctionV2Controller",
        "x-operation-name": "createAuction",
        "tags": [
          "AdminAuctionV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The auction that was created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Auction"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "originalTitle"
                ],
                "properties": {
                  "originalTitle": {
                    "type": "string",
                    "minLength": 1
                  },
                  "countryCode": {
                    "type": "string",
                    "nullable": true
                  },
                  "year": {
                    "type": "number",
                    "nullable": true
                  },
                  "organizerId": {
                    "type": "string"
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "title": {
                          "type": "string"
                        },
                        "isOriginalTitle": {
                          "type": "boolean"
                        },
                        "description": {
                          "type": "string"
                        },
                        "year": {
                          "type": "string"
                        },
                        "cityName": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "AdminAuctionV2Controller.createAuction",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AdminAuctionV2Controller",
        "x-operation-name": "findAuctions",
        "tags": [
          "AdminAuctionV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Page of catalogue auctions with the total for paging",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AuctionInfo"
                      }
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "countryCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "organizerId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "AdminAuctionV2Controller.findAuctions",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/auth-roles": {
      "get": {
        "x-controller-name": "AdminUserV2Controller",
        "x-operation-name": "authRoleList",
        "tags": [
          "AdminUserV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The application roles, in their order",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuthRole"
                  }
                }
              }
            }
          }
        },
        "operationId": "AdminUserV2Controller.authRoleList",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/author-options": {
      "get": {
        "x-controller-name": "AdminAuthorV2Controller",
        "x-operation-name": "authorOptions",
        "tags": [
          "AdminAuthorV2Controller"
        ],
        "responses": {
          "200": {
            "description": "All authors, names only, by surname",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuthorOption"
                  }
                }
              }
            }
          }
        },
        "operationId": "AdminAuthorV2Controller.authorOptions",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/authors/{id}": {
      "patch": {
        "x-controller-name": "AdminAuthorV2Controller",
        "x-operation-name": "updateAuthor",
        "tags": [
          "AdminAuthorV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The author after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Author"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "nickname": {
                    "type": "string",
                    "minLength": 1
                  },
                  "firstname": {
                    "type": "string"
                  },
                  "lastname": {
                    "type": "string"
                  },
                  "birthday": {
                    "type": "string"
                  },
                  "death": {
                    "type": "string"
                  },
                  "descriptionCS": {
                    "type": "string"
                  },
                  "descriptionEN": {
                    "type": "string"
                  },
                  "canvasId": {
                    "type": "number",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "AdminAuthorV2Controller.updateAuthor",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AdminAuthorV2Controller",
        "x-operation-name": "findAuthorById",
        "tags": [
          "AdminAuthorV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One catalogue author",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthorInfo"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminAuthorV2Controller.findAuthorById",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "AdminAuthorV2Controller",
        "x-operation-name": "deleteAuthor",
        "tags": [
          "AdminAuthorV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Author removed from the catalogue"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminAuthorV2Controller.deleteAuthor",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/authors": {
      "post": {
        "x-controller-name": "AdminAuthorV2Controller",
        "x-operation-name": "createAuthor",
        "tags": [
          "AdminAuthorV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The author that was created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Author"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Only the display name is required.",
                "required": [
                  "nickname"
                ],
                "properties": {
                  "nickname": {
                    "type": "string",
                    "minLength": 1
                  },
                  "firstname": {
                    "type": "string"
                  },
                  "lastname": {
                    "type": "string"
                  },
                  "birthday": {
                    "type": "string"
                  },
                  "death": {
                    "type": "string"
                  },
                  "descriptionCS": {
                    "type": "string"
                  },
                  "descriptionEN": {
                    "type": "string"
                  },
                  "canvasId": {
                    "type": "number",
                    "nullable": true
                  }
                }
              }
            }
          }
        },
        "operationId": "AdminAuthorV2Controller.createAuthor",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AdminAuthorV2Controller",
        "x-operation-name": "findAuthors",
        "tags": [
          "AdminAuthorV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Page of catalogue authors with the total for paging",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AuthorInfo"
                      }
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hasCanvas",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "AdminAuthorV2Controller.findAuthors",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/catalogue/{kind}/{id}/versions/{versionId}/restore": {
      "post": {
        "x-controller-name": "RecordHistoryV2Controller",
        "x-operation-name": "restoreCatalogueVersion",
        "tags": [
          "RecordHistoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A shared catalogue record put back as the version given; its versions, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordVersionPage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "versionId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "RecordHistoryV2Controller.restoreCatalogueVersion",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/catalogue/{kind}/{id}/versions": {
      "get": {
        "x-controller-name": "RecordHistoryV2Controller",
        "x-operation-name": "catalogueVersions",
        "tags": [
          "RecordHistoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A shared catalogue record's versions, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordVersionPage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "RecordHistoryV2Controller.catalogueVersions",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/contact-messages/{id}": {
      "patch": {
        "x-controller-name": "ContactV2Controller",
        "x-operation-name": "mark",
        "tags": [
          "ContactV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Marked"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "handled"
                ],
                "additionalProperties": false,
                "properties": {
                  "handled": {
                    "type": "boolean"
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "ContactV2Controller.mark",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "ContactV2Controller",
        "x-operation-name": "remove",
        "tags": [
          "ContactV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ContactV2Controller.remove",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/contact-messages": {
      "get": {
        "x-controller-name": "ContactV2Controller",
        "x-operation-name": "list",
        "tags": [
          "ContactV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The messages, newest first, and how many are open",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactMessagePage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "open",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "ContactV2Controller.list",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/contact-roles": {
      "get": {
        "x-controller-name": "AdminContactV2Controller",
        "x-operation-name": "findContactRoles",
        "tags": [
          "AdminContactV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The contact role catalogue, whole, in business order",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "number"
                      },
                      "code": {
                        "type": "string"
                      },
                      "order": {
                        "type": "number"
                      },
                      "nameCS": {
                        "type": "string"
                      },
                      "nameEN": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "AdminContactV2Controller.findContactRoles",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/contact-types": {
      "get": {
        "x-controller-name": "AdminContactV2Controller",
        "x-operation-name": "findContactTypes",
        "tags": [
          "AdminContactV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The contact type catalogue, whole",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "number"
                      },
                      "titleCS": {
                        "type": "string"
                      },
                      "titleEN": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "AdminContactV2Controller.findContactTypes",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/contacts/{id}/copyrights/{copyrightId}": {
      "patch": {
        "x-controller-name": "ContactCopyrightV2Controller",
        "x-operation-name": "updateCatalogueCopyright",
        "tags": [
          "ContactCopyrightV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The contact's copyrights",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactCopyright"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "copyrightId",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "copyrightCS": {
                    "type": "string",
                    "nullable": true
                  },
                  "copyrightEN": {
                    "type": "string",
                    "nullable": true
                  },
                  "notesInternal": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "ContactCopyrightV2Controller.updateCatalogueCopyright",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "ContactCopyrightV2Controller",
        "x-operation-name": "deleteCatalogueCopyright",
        "tags": [
          "ContactCopyrightV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The contact's copyrights",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactCopyright"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "copyrightId",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "ContactCopyrightV2Controller.deleteCatalogueCopyright",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/contacts/{id}/copyrights": {
      "post": {
        "x-controller-name": "ContactCopyrightV2Controller",
        "x-operation-name": "createCatalogueCopyright",
        "tags": [
          "ContactCopyrightV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The contact's copyrights",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactCopyright"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "copyrightCS": {
                    "type": "string",
                    "nullable": true
                  },
                  "copyrightEN": {
                    "type": "string",
                    "nullable": true
                  },
                  "notesInternal": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "ContactCopyrightV2Controller.createCatalogueCopyright",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "ContactCopyrightV2Controller",
        "x-operation-name": "catalogueCopyrights",
        "tags": [
          "ContactCopyrightV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The contact's copyrights",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactCopyright"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ContactCopyrightV2Controller.catalogueCopyrights",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/contacts/{id}": {
      "patch": {
        "x-controller-name": "AdminContactV2Controller",
        "x-operation-name": "updateContact",
        "tags": [
          "AdminContactV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The contact after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "firstName": {
                    "type": "string"
                  },
                  "lastName": {
                    "type": "string"
                  },
                  "companyName": {
                    "type": "string"
                  },
                  "notesInternal": {
                    "type": "string"
                  },
                  "contactTypeId": {
                    "type": "number",
                    "nullable": true
                  },
                  "isPublic": {
                    "type": "boolean"
                  },
                  "roleIds": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "AdminContactV2Controller.updateContact",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AdminContactV2Controller",
        "x-operation-name": "findContactById",
        "tags": [
          "AdminContactV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One catalogue contact",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactInfo"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminContactV2Controller.findContactById",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "AdminContactV2Controller",
        "x-operation-name": "deleteContact",
        "tags": [
          "AdminContactV2Controller"
        ],
        "responses": {
          "204": {
            "description": "The contact was removed"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminContactV2Controller.deleteContact",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/contacts": {
      "post": {
        "x-controller-name": "AdminContactV2Controller",
        "x-operation-name": "createContact",
        "tags": [
          "AdminContactV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The contact that was created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Only the display name is required.",
                "required": [
                  "title"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "firstName": {
                    "type": "string"
                  },
                  "lastName": {
                    "type": "string"
                  },
                  "companyName": {
                    "type": "string"
                  },
                  "notesInternal": {
                    "type": "string"
                  },
                  "contactTypeId": {
                    "type": "number",
                    "nullable": true
                  },
                  "isPublic": {
                    "type": "boolean"
                  },
                  "roleIds": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "AdminContactV2Controller.createContact",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AdminContactV2Controller",
        "x-operation-name": "findContacts",
        "tags": [
          "AdminContactV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Page of catalogue contacts with the total for paging",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ContactInfo"
                      }
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "typeId",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "isPublic",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "roleId",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "AdminContactV2Controller.findContacts",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/exhibitions/{id}": {
      "patch": {
        "x-controller-name": "AdminExhibitionV2Controller",
        "x-operation-name": "updateExhibition",
        "tags": [
          "AdminExhibitionV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The exhibition after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Exhibition"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "originalTitle": {
                    "type": "string",
                    "minLength": 1
                  },
                  "countryCode": {
                    "type": "string",
                    "nullable": true
                  },
                  "year": {
                    "type": "number",
                    "nullable": true
                  },
                  "organizerId": {
                    "type": "string"
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "title": {
                          "type": "string"
                        },
                        "isOriginalTitle": {
                          "type": "boolean"
                        },
                        "description": {
                          "type": "string"
                        },
                        "year": {
                          "type": "string"
                        },
                        "cityName": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "AdminExhibitionV2Controller.updateExhibition",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AdminExhibitionV2Controller",
        "x-operation-name": "findExhibitionById",
        "tags": [
          "AdminExhibitionV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One catalogue exhibition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExhibitionInfo"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminExhibitionV2Controller.findExhibitionById",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "AdminExhibitionV2Controller",
        "x-operation-name": "deleteExhibition",
        "tags": [
          "AdminExhibitionV2Controller"
        ],
        "responses": {
          "204": {
            "description": "The exhibition was removed"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminExhibitionV2Controller.deleteExhibition",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/exhibitions": {
      "post": {
        "x-controller-name": "AdminExhibitionV2Controller",
        "x-operation-name": "createExhibition",
        "tags": [
          "AdminExhibitionV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The exhibition that was created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Exhibition"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "originalTitle"
                ],
                "properties": {
                  "originalTitle": {
                    "type": "string",
                    "minLength": 1
                  },
                  "countryCode": {
                    "type": "string",
                    "nullable": true
                  },
                  "year": {
                    "type": "number",
                    "nullable": true
                  },
                  "organizerId": {
                    "type": "string"
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "title": {
                          "type": "string"
                        },
                        "isOriginalTitle": {
                          "type": "boolean"
                        },
                        "description": {
                          "type": "string"
                        },
                        "year": {
                          "type": "string"
                        },
                        "cityName": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "AdminExhibitionV2Controller.createExhibition",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AdminExhibitionV2Controller",
        "x-operation-name": "findExhibitions",
        "tags": [
          "AdminExhibitionV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Page of catalogue exhibitions with the total for paging",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ExhibitionInfo"
                      }
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "countryCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "organizerId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "AdminExhibitionV2Controller.findExhibitions",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/inventories/{id}/personal": {
      "put": {
        "x-controller-name": "OwnInventoryV2Controller",
        "x-operation-name": "markPersonal",
        "tags": [
          "OwnInventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Marked as the person’s, or no longer anybody’s"
          },
          "409": {
            "description": "The person has one of this type already"
          },
          "422": {
            "description": "Not an owner, or not a type that can be personal"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "userId"
                ],
                "properties": {
                  "userId": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "OwnInventoryV2Controller.markPersonal",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/inventories/{id}/users": {
      "post": {
        "x-controller-name": "AdminInventoryV2Controller",
        "x-operation-name": "assignUserToInventory",
        "tags": [
          "AdminInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The assignment that was created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryAssignment"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "userId",
                  "inventoryRoleId"
                ],
                "properties": {
                  "userId": {
                    "type": "string"
                  },
                  "inventoryRoleId": {
                    "type": "number"
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "AdminInventoryV2Controller.assignUserToInventory",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AdminInventoryV2Controller",
        "x-operation-name": "findInventoryUsers",
        "tags": [
          "AdminInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Accounts assigned to the inventory",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryAssignment"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminInventoryV2Controller.findInventoryUsers",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/inventories/{id}": {
      "patch": {
        "x-controller-name": "AdminInventoryV2Controller",
        "x-operation-name": "updateInventory",
        "tags": [
          "AdminInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryInfo"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mainTitle": {
                    "type": "string",
                    "minLength": 1
                  },
                  "inventoryCode": {
                    "type": "string",
                    "minLength": 1
                  },
                  "typeId": {
                    "type": "number"
                  },
                  "singleAuthor": {
                    "type": "boolean"
                  },
                  "authorId": {
                    "type": "string"
                  },
                  "keyPublicationId": {
                    "type": "string",
                    "nullable": true
                  },
                  "curatedAuctions": {
                    "type": "boolean"
                  },
                  "curatedAuthors": {
                    "type": "boolean"
                  },
                  "curatedContacts": {
                    "type": "boolean"
                  },
                  "curatedPublications": {
                    "type": "boolean"
                  },
                  "curatedExhibitions": {
                    "type": "boolean"
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "AdminInventoryV2Controller.updateInventory",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AdminInventoryV2Controller",
        "x-operation-name": "findInventoryById",
        "tags": [
          "AdminInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One inventory",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryInfo"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminInventoryV2Controller.findInventoryById",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "AdminInventoryV2Controller",
        "x-operation-name": "deleteInventory",
        "tags": [
          "AdminInventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Inventory deleted"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminInventoryV2Controller.deleteInventory",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/inventories": {
      "post": {
        "x-controller-name": "AdminInventoryV2Controller",
        "x-operation-name": "createInventory",
        "tags": [
          "AdminInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory that was created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryInfo"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "mainTitle",
                  "inventoryCode",
                  "typeId"
                ],
                "properties": {
                  "mainTitle": {
                    "type": "string",
                    "minLength": 1
                  },
                  "inventoryCode": {
                    "type": "string",
                    "minLength": 1
                  },
                  "typeId": {
                    "type": "number"
                  },
                  "singleAuthor": {
                    "type": "boolean"
                  },
                  "authorId": {
                    "type": "string"
                  },
                  "keyPublicationId": {
                    "type": "string",
                    "nullable": true
                  },
                  "curatedAuctions": {
                    "type": "boolean"
                  },
                  "curatedAuthors": {
                    "type": "boolean"
                  },
                  "curatedContacts": {
                    "type": "boolean"
                  },
                  "curatedPublications": {
                    "type": "boolean"
                  },
                  "curatedExhibitions": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "operationId": "AdminInventoryV2Controller.createInventory",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AdminInventoryV2Controller",
        "x-operation-name": "findInventories",
        "tags": [
          "AdminInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Page of inventories with the total for paging",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/InventoryInfo"
                      }
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "typeId",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "AdminInventoryV2Controller.findInventories",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/inventory-assignments/{id}": {
      "patch": {
        "x-controller-name": "AdminInventoryV2Controller",
        "x-operation-name": "changeAssignmentRole",
        "tags": [
          "AdminInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The assignment after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryAssignment"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "inventoryRoleId"
                ],
                "properties": {
                  "inventoryRoleId": {
                    "type": "number"
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "AdminInventoryV2Controller.changeAssignmentRole",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "AdminInventoryV2Controller",
        "x-operation-name": "removeAssignment",
        "tags": [
          "AdminInventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Assignment removed"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminInventoryV2Controller.removeAssignment",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/inventory-roles": {
      "get": {
        "x-controller-name": "AdminInventoryV2Controller",
        "x-operation-name": "findInventoryRoles",
        "tags": [
          "AdminInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Roles an account can hold in an inventory",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryRole"
                  }
                }
              }
            }
          }
        },
        "operationId": "AdminInventoryV2Controller.findInventoryRoles",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/inventory-types": {
      "get": {
        "x-controller-name": "AdminInventoryV2Controller",
        "x-operation-name": "findInventoryTypes",
        "tags": [
          "AdminInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Inventory types",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryType"
                  }
                }
              }
            }
          }
        },
        "operationId": "AdminInventoryV2Controller.findInventoryTypes",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/log": {
      "get": {
        "x-controller-name": "EventLogV2Controller",
        "x-operation-name": "findEventLog",
        "tags": [
          "EventLogV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Event log page, newest first, with the total for paging",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EventLog"
                      }
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "context",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "inventoryId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "EventLogV2Controller.findEventLog",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/notifications/templates/{key}/preview": {
      "post": {
        "x-controller-name": "NotificationV2Controller",
        "x-operation-name": "previewDraft",
        "tags": [
          "NotificationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A wording not saved yet, filled with the sample values",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "subject",
                    "html",
                    "text"
                  ],
                  "properties": {
                    "subject": {
                      "type": "string"
                    },
                    "html": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The wording cannot be sent — said in the message"
          }
        },
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "subject",
                  "paragraphs"
                ],
                "properties": {
                  "subject": {
                    "type": "string"
                  },
                  "paragraphs": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "actionLabel": {
                    "type": "string"
                  },
                  "note": {
                    "type": "string"
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "cs",
                      "en"
                    ]
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "NotificationV2Controller.previewDraft",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "NotificationV2Controller",
        "x-operation-name": "previewTemplate",
        "tags": [
          "NotificationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The template filled with its sample values",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "subject",
                    "html",
                    "text"
                  ],
                  "properties": {
                    "subject": {
                      "type": "string"
                    },
                    "html": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "lang",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "NotificationV2Controller.previewTemplate",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/notifications/templates/{key}/test": {
      "post": {
        "x-controller-name": "NotificationV2Controller",
        "x-operation-name": "sendTest",
        "tags": [
          "NotificationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Whether the sample went out to the administrator, and if not why",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "sent"
                  ],
                  "properties": {
                    "sent": {
                      "type": "boolean"
                    },
                    "reason": {
                      "type": "string",
                      "enum": [
                        "not-configured",
                        "no-recipient",
                        "failed"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "lang": {
                    "type": "string",
                    "enum": [
                      "cs",
                      "en"
                    ]
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "NotificationV2Controller.sendTest",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/notifications/templates/{key}/wording": {
      "put": {
        "x-controller-name": "NotificationV2Controller",
        "x-operation-name": "saveWording",
        "tags": [
          "NotificationV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Saved; the e-mails go out in these words"
          },
          "422": {
            "description": "The wording cannot be sent — said in the message"
          }
        },
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "subject",
                  "paragraphs"
                ],
                "properties": {
                  "subject": {
                    "type": "string"
                  },
                  "paragraphs": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "actionLabel": {
                    "type": "string"
                  },
                  "note": {
                    "type": "string"
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "cs",
                      "en"
                    ]
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "NotificationV2Controller.saveWording",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "NotificationV2Controller",
        "x-operation-name": "templateWording",
        "tags": [
          "NotificationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The words of the template: the default and the ones used",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "default",
                    "current",
                    "edited"
                  ],
                  "properties": {
                    "default": {
                      "type": "object",
                      "required": [
                        "subject",
                        "paragraphs"
                      ],
                      "properties": {
                        "subject": {
                          "type": "string"
                        },
                        "paragraphs": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "actionLabel": {
                          "type": "string"
                        },
                        "note": {
                          "type": "string"
                        }
                      }
                    },
                    "current": {
                      "type": "object",
                      "required": [
                        "subject",
                        "paragraphs"
                      ],
                      "properties": {
                        "subject": {
                          "type": "string"
                        },
                        "paragraphs": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "actionLabel": {
                          "type": "string"
                        },
                        "note": {
                          "type": "string"
                        }
                      }
                    },
                    "edited": {
                      "type": "boolean"
                    },
                    "updatedAt": {
                      "type": "string"
                    },
                    "updatedBy": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "lang",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "NotificationV2Controller.templateWording",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "NotificationV2Controller",
        "x-operation-name": "resetWording",
        "tags": [
          "NotificationV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Back to the default words"
          }
        },
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "lang",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "NotificationV2Controller.resetWording",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/notifications/templates": {
      "get": {
        "x-controller-name": "NotificationV2Controller",
        "x-operation-name": "listTemplates",
        "tags": [
          "NotificationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The e-mail templates",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "key",
                      "trigger",
                      "subject",
                      "edited",
                      "hasAction",
                      "variables"
                    ],
                    "properties": {
                      "key": {
                        "type": "string"
                      },
                      "trigger": {
                        "type": "object",
                        "required": [
                          "cs",
                          "en"
                        ],
                        "properties": {
                          "cs": {
                            "type": "string"
                          },
                          "en": {
                            "type": "string"
                          }
                        }
                      },
                      "subject": {
                        "type": "object",
                        "required": [
                          "cs",
                          "en"
                        ],
                        "properties": {
                          "cs": {
                            "type": "string"
                          },
                          "en": {
                            "type": "string"
                          }
                        }
                      },
                      "edited": {
                        "type": "object",
                        "required": [
                          "cs",
                          "en"
                        ],
                        "properties": {
                          "cs": {
                            "type": "boolean"
                          },
                          "en": {
                            "type": "boolean"
                          }
                        }
                      },
                      "hasAction": {
                        "type": "boolean"
                      },
                      "variables": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "name",
                            "description",
                            "sample"
                          ],
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "description": {
                              "type": "object",
                              "required": [
                                "cs",
                                "en"
                              ],
                              "properties": {
                                "cs": {
                                  "type": "string"
                                },
                                "en": {
                                  "type": "string"
                                }
                              }
                            },
                            "sample": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "NotificationV2Controller.listTemplates",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/publication-types": {
      "get": {
        "x-controller-name": "AdminPublicationV2Controller",
        "x-operation-name": "findPublicationTypes",
        "tags": [
          "AdminPublicationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The publication type catalogue, whole",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "number"
                      },
                      "code": {
                        "type": "string"
                      },
                      "nameCS": {
                        "type": "string"
                      },
                      "nameEN": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "AdminPublicationV2Controller.findPublicationTypes",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/publications/{id}": {
      "patch": {
        "x-controller-name": "AdminPublicationV2Controller",
        "x-operation-name": "updatePublication",
        "tags": [
          "AdminPublicationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The publication after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Publication"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "originalTitle": {
                    "type": "string",
                    "minLength": 1
                  },
                  "author": {
                    "type": "string"
                  },
                  "isbn": {
                    "type": "string"
                  },
                  "year": {
                    "type": "number",
                    "nullable": true
                  },
                  "publicationTypeId": {
                    "type": "number",
                    "nullable": true
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "title": {
                          "type": "string"
                        },
                        "isOriginalTitle": {
                          "type": "boolean"
                        },
                        "description": {
                          "type": "string"
                        },
                        "year": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "AdminPublicationV2Controller.updatePublication",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AdminPublicationV2Controller",
        "x-operation-name": "findPublicationById",
        "tags": [
          "AdminPublicationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One catalogue publication",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationInfo"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminPublicationV2Controller.findPublicationById",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "AdminPublicationV2Controller",
        "x-operation-name": "deletePublication",
        "tags": [
          "AdminPublicationV2Controller"
        ],
        "responses": {
          "204": {
            "description": "The publication was removed"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminPublicationV2Controller.deletePublication",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/publications": {
      "post": {
        "x-controller-name": "AdminPublicationV2Controller",
        "x-operation-name": "createPublication",
        "tags": [
          "AdminPublicationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The publication that was created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Publication"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "originalTitle"
                ],
                "properties": {
                  "originalTitle": {
                    "type": "string",
                    "minLength": 1
                  },
                  "author": {
                    "type": "string"
                  },
                  "isbn": {
                    "type": "string"
                  },
                  "year": {
                    "type": "number",
                    "nullable": true
                  },
                  "publicationTypeId": {
                    "type": "number",
                    "nullable": true
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "title": {
                          "type": "string"
                        },
                        "isOriginalTitle": {
                          "type": "boolean"
                        },
                        "description": {
                          "type": "string"
                        },
                        "year": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "AdminPublicationV2Controller.createPublication",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AdminPublicationV2Controller",
        "x-operation-name": "findPublications",
        "tags": [
          "AdminPublicationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Page of catalogue publications with the total for paging",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PublicationInfo"
                      }
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "typeId",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "hasIsbn",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "AdminPublicationV2Controller.findPublications",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/settings": {
      "patch": {
        "x-controller-name": "SettingsV2Controller",
        "x-operation-name": "update",
        "tags": [
          "SettingsV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Every setting, after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppSettingsRow"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "registrationOpen": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "operationId": "SettingsV2Controller.update",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "SettingsV2Controller",
        "x-operation-name": "read",
        "tags": [
          "SettingsV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Every setting, as set or as its default",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppSettingsRow"
                }
              }
            }
          }
        },
        "operationId": "SettingsV2Controller.read",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/system-log": {
      "get": {
        "x-controller-name": "EventLogV2Controller",
        "x-operation-name": "systemLogList",
        "tags": [
          "EventLogV2Controller"
        ],
        "responses": {
          "200": {
            "description": "System events, newest first. An empty list with configured: false where no Axiom token is set — a normal state locally, not a fault.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "configured"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "_time": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "level": {
                            "type": "string",
                            "enum": [
                              "info",
                              "warn",
                              "error"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "userId": {
                            "type": "string"
                          },
                          "payload": {
                            "type": "string",
                            "description": "JSON context"
                          }
                        }
                      }
                    },
                    "configured": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "level",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "since",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "EventLogV2Controller.systemLogList",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/users/{id}/2fa/disable": {
      "post": {
        "x-controller-name": "AdminUserV2Controller",
        "x-operation-name": "disableTwoFactor",
        "tags": [
          "AdminUserV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Two-factor authentication switched off"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminUserV2Controller.disableTwoFactor",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/users/{id}/author": {
      "put": {
        "x-controller-name": "OwnInventoryV2Controller",
        "x-operation-name": "linkAuthor",
        "tags": [
          "OwnInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Linked to the author, or unlinked; where the account stands now",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonalStatuses"
                }
              }
            }
          },
          "409": {
            "description": "The author is another account’s, or still needed"
          },
          "422": {
            "description": "Not an author of the shared catalogue"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "authorId"
                ],
                "properties": {
                  "authorId": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "OwnInventoryV2Controller.linkAuthor",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/users/{id}/inventories": {
      "post": {
        "x-controller-name": "AdminInventoryV2Controller",
        "x-operation-name": "assignInventoryToUser",
        "tags": [
          "AdminInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The assignment that was created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryAssignment"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "inventoryId",
                  "inventoryRoleId"
                ],
                "properties": {
                  "inventoryId": {
                    "type": "string"
                  },
                  "inventoryRoleId": {
                    "type": "number"
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "AdminInventoryV2Controller.assignInventoryToUser",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AdminInventoryV2Controller",
        "x-operation-name": "findUserInventories",
        "tags": [
          "AdminInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Inventories the account is assigned to",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryAssignment"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminInventoryV2Controller.findUserInventories",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/users/{id}/password": {
      "post": {
        "x-controller-name": "AdminUserV2Controller",
        "x-operation-name": "setPassword",
        "tags": [
          "AdminUserV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Password replaced"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "password"
                ],
                "properties": {
                  "password": {
                    "type": "string",
                    "minLength": 8
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "AdminUserV2Controller.setPassword",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/users/{id}/personal/{kind}": {
      "post": {
        "x-controller-name": "OwnInventoryV2Controller",
        "x-operation-name": "foundForUser",
        "tags": [
          "OwnInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Founded for the account; they own it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "inventoryCode"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "inventoryCode": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Has one already"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "kind",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "mainTitle"
                ],
                "properties": {
                  "mainTitle": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "OwnInventoryV2Controller.foundForUser",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "put": {
        "x-controller-name": "OwnInventoryV2Controller",
        "x-operation-name": "allowPersonal",
        "tags": [
          "OwnInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Allowed or not; where the account stands now",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonalStatuses"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "kind",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "allowed"
                ],
                "properties": {
                  "allowed": {
                    "type": "boolean"
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "OwnInventoryV2Controller.allowPersonal",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/users/{id}/personal": {
      "get": {
        "x-controller-name": "OwnInventoryV2Controller",
        "x-operation-name": "userPersonal",
        "tags": [
          "OwnInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Where an account stands with each kind of personal inventory",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonalStatuses"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "OwnInventoryV2Controller.userPersonal",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/users/{id}": {
      "patch": {
        "x-controller-name": "AdminUserV2Controller",
        "x-operation-name": "updateUser",
        "tags": [
          "AdminUserV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The account after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserInfo"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "firstname": {
                    "type": "string"
                  },
                  "lastname": {
                    "type": "string"
                  },
                  "authRoleId": {
                    "type": "string"
                  },
                  "active": {
                    "type": "boolean"
                  },
                  "twoFactorRequired": {
                    "type": "boolean"
                  },
                  "webEditor": {
                    "type": "boolean"
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "AdminUserV2Controller.updateUser",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "AdminUserV2Controller",
        "x-operation-name": "deleteUser",
        "tags": [
          "AdminUserV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Account deleted"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "AdminUserV2Controller.deleteUser",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/users": {
      "post": {
        "x-controller-name": "AdminUserV2Controller",
        "x-operation-name": "createUser",
        "tags": [
          "AdminUserV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The account that was created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserInfo"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "authRoleId"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "password": {
                    "type": "string",
                    "minLength": 8
                  },
                  "firstname": {
                    "type": "string"
                  },
                  "lastname": {
                    "type": "string"
                  },
                  "authRoleId": {
                    "type": "string"
                  },
                  "active": {
                    "type": "boolean"
                  },
                  "twoFactorRequired": {
                    "type": "boolean"
                  },
                  "webEditor": {
                    "type": "boolean"
                  },
                  "welcome": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "operationId": "AdminUserV2Controller.createUser",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "AdminUserV2Controller",
        "x-operation-name": "findUsers",
        "tags": [
          "AdminUserV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Page of users with the total for paging",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/UserInfo"
                      }
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "active",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "roleId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "twoFactorEnabled",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "webEditor",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "AdminUserV2Controller.findUsers",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/web/{kind}/order": {
      "put": {
        "x-controller-name": "WebAdminV2Controller",
        "x-operation-name": "orderWeb",
        "tags": [
          "WebAdminV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The slides or the cards in their new order",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/WebSlideRow"
                      },
                      {
                        "$ref": "#/components/schemas/WebFeatureRow"
                      },
                      {
                        "$ref": "#/components/schemas/WebPostRow"
                      },
                      {
                        "$ref": "#/components/schemas/WebReleaseRow"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ids"
                ],
                "properties": {
                  "ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "WebAdminV2Controller.orderWeb",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/web/{kind}/{id}": {
      "patch": {
        "x-controller-name": "WebAdminV2Controller",
        "x-operation-name": "updateWeb",
        "tags": [
          "WebAdminV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Changed",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/WebSlideRow"
                    },
                    {
                      "$ref": "#/components/schemas/WebFeatureRow"
                    },
                    {
                      "$ref": "#/components/schemas/WebPostRow"
                    },
                    {
                      "$ref": "#/components/schemas/WebReleaseRow"
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "WebAdminV2Controller.updateWeb",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "WebAdminV2Controller",
        "x-operation-name": "oneWeb",
        "tags": [
          "WebAdminV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/WebSlideRow"
                    },
                    {
                      "$ref": "#/components/schemas/WebFeatureRow"
                    },
                    {
                      "$ref": "#/components/schemas/WebPostRow"
                    },
                    {
                      "$ref": "#/components/schemas/WebReleaseRow"
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "WebAdminV2Controller.oneWeb",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "WebAdminV2Controller",
        "x-operation-name": "deleteWeb",
        "tags": [
          "WebAdminV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          }
        },
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "WebAdminV2Controller.deleteWeb",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/web/{kind}": {
      "post": {
        "x-controller-name": "WebAdminV2Controller",
        "x-operation-name": "createWeb",
        "tags": [
          "WebAdminV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/WebSlideRow"
                    },
                    {
                      "$ref": "#/components/schemas/WebFeatureRow"
                    },
                    {
                      "$ref": "#/components/schemas/WebPostRow"
                    },
                    {
                      "$ref": "#/components/schemas/WebReleaseRow"
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "WebAdminV2Controller.createWeb",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "WebAdminV2Controller",
        "x-operation-name": "listWeb",
        "tags": [
          "WebAdminV2Controller"
        ],
        "responses": {
          "200": {
            "description": "All of one kind, drafts included",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/WebSlideRow"
                      },
                      {
                        "$ref": "#/components/schemas/WebFeatureRow"
                      },
                      {
                        "$ref": "#/components/schemas/WebPostRow"
                      },
                      {
                        "$ref": "#/components/schemas/WebReleaseRow"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "WebAdminV2Controller.listWeb",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/admin/web-media": {
      "post": {
        "x-controller-name": "WebAdminV2Controller",
        "x-operation-name": "uploadWebMedia",
        "tags": [
          "WebAdminV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The uploaded picture: its key to store, and an address to show",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "key",
                    "url"
                  ],
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "x-parser": "stream",
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "operationId": "WebAdminV2Controller.uploadWebMedia",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/auth/2fa/confirm": {
      "post": {
        "x-controller-name": "TwoFactorV2Controller",
        "x-operation-name": "confirm",
        "tags": [
          "TwoFactorV2Controller"
        ],
        "responses": {
          "200": {
            "description": "2FA enabled successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwoFactorConfirmResult"
                }
              }
            }
          },
          "429": {
            "description": "Too many wrong codes for this user; the Retry-After header says in how many seconds to try again"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TwoFactorConfirmRequest"
              }
            }
          },
          "required": true
        },
        "operationId": "TwoFactorV2Controller.confirm",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/auth/2fa/disable": {
      "post": {
        "x-controller-name": "TwoFactorV2Controller",
        "x-operation-name": "disable",
        "tags": [
          "TwoFactorV2Controller"
        ],
        "responses": {
          "200": {
            "description": "2FA disabled successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwoFactorDisableResult"
                }
              }
            }
          },
          "429": {
            "description": "Too many wrong codes for this user; the Retry-After header says in how many seconds to try again"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TwoFactorVerifyRequest"
              }
            }
          },
          "required": true
        },
        "operationId": "TwoFactorV2Controller.disable",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/auth/2fa/setup": {
      "post": {
        "x-controller-name": "TwoFactorV2Controller",
        "x-operation-name": "setup",
        "tags": [
          "TwoFactorV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Returns 2FA setup data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwoFactorSetupResult"
                }
              }
            }
          }
        },
        "operationId": "TwoFactorV2Controller.setup",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/auth/2fa/setup-required/confirm": {
      "post": {
        "x-controller-name": "TwoFactorV2Controller",
        "x-operation-name": "confirmRequired",
        "tags": [
          "TwoFactorV2Controller"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "2FA enabled successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwoFactorRequiredConfirmResult"
                }
              }
            }
          },
          "429": {
            "description": "Too many wrong codes for this user; the Retry-After header says in how many seconds to try again"
          }
        },
        "parameters": [
          {
            "name": "authorization",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TwoFactorConfirmRequest"
              }
            }
          },
          "required": true
        },
        "operationId": "TwoFactorV2Controller.confirmRequired"
      }
    },
    "/v2/auth/2fa/setup-required/setup": {
      "post": {
        "x-controller-name": "TwoFactorV2Controller",
        "x-operation-name": "setupRequired",
        "tags": [
          "TwoFactorV2Controller"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Returns 2FA setup data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwoFactorSetupResult"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "authorization",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "TwoFactorV2Controller.setupRequired"
      }
    },
    "/v2/auth/2fa/verify": {
      "post": {
        "x-controller-name": "TwoFactorV2Controller",
        "x-operation-name": "verify2fa",
        "tags": [
          "TwoFactorV2Controller"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "2FA verified, returns full token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwoFactorVerificationResult"
                }
              }
            }
          },
          "429": {
            "description": "Too many wrong codes for this user; the Retry-After header says in how many seconds to try again"
          }
        },
        "parameters": [
          {
            "name": "authorization",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TwoFactorVerifyRequest"
              }
            }
          },
          "required": true
        },
        "operationId": "TwoFactorV2Controller.verify2fa"
      }
    },
    "/v2/auth/login": {
      "post": {
        "x-controller-name": "AuthV2Controller",
        "x-operation-name": "login",
        "tags": [
          "AuthV2Controller"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Token, 2FA pending token, or 2FA setup token",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "required": [
                        "token"
                      ],
                      "properties": {
                        "token": {
                          "type": "string"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "required": [
                        "twoFactorRequired",
                        "pendingToken"
                      ],
                      "properties": {
                        "twoFactorRequired": {
                          "type": "boolean"
                        },
                        "pendingToken": {
                          "type": "string"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "required": [
                        "twoFactorSetupRequired",
                        "setupToken"
                      ],
                      "properties": {
                        "twoFactorSetupRequired": {
                          "type": "boolean"
                        },
                        "setupToken": {
                          "type": "string"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Wrong address or password"
          },
          "429": {
            "description": "Too many failed attempts for this account or from this client; the Retry-After header says in how many seconds to try again"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "password"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "password": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              }
            }
          },
          "description": "The input of login function",
          "required": true
        },
        "operationId": "AuthV2Controller.login"
      }
    },
    "/v2/auth/password-reset/check": {
      "post": {
        "x-controller-name": "PasswordV2Controller",
        "x-operation-name": "checkLink",
        "tags": [
          "PasswordV2Controller"
        ],
        "responses": {
          "200": {
            "description": "What the link is for and whose account it sets",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "purpose",
                    "email"
                  ],
                  "properties": {
                    "purpose": {
                      "type": "string",
                      "enum": [
                        "password-reset",
                        "password-set"
                      ]
                    },
                    "email": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "410": {
            "description": "The link has expired or has been used"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "token"
                ],
                "properties": {
                  "token": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "operationId": "PasswordV2Controller.checkLink",
        "security": []
      }
    },
    "/v2/auth/password-reset/confirm": {
      "post": {
        "x-controller-name": "PasswordV2Controller",
        "x-operation-name": "confirmReset",
        "tags": [
          "PasswordV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The password is set; the address, for the sign-in form",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "email"
                  ],
                  "properties": {
                    "email": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "410": {
            "description": "The link has expired or has been used"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "token",
                  "password"
                ],
                "properties": {
                  "token": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 72
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "cs",
                      "en"
                    ]
                  }
                }
              }
            }
          }
        },
        "operationId": "PasswordV2Controller.confirmReset",
        "security": []
      }
    },
    "/v2/auth/password-reset": {
      "post": {
        "x-controller-name": "PasswordV2Controller",
        "x-operation-name": "requestReset",
        "tags": [
          "PasswordV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Asked — whether the address has an account or not"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 512
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "cs",
                      "en"
                    ]
                  }
                }
              }
            }
          }
        },
        "operationId": "PasswordV2Controller.requestReset",
        "security": []
      }
    },
    "/v2/auth/register": {
      "post": {
        "x-controller-name": "RegistrationV2Controller",
        "x-operation-name": "register",
        "tags": [
          "RegistrationV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Asked — the welcome, or for an address that has an account a reset link, is on its way"
          },
          "404": {
            "description": "Registration is closed here"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "maxLength": 512
                  },
                  "firstname": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "lastname": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "cs",
                      "en"
                    ]
                  },
                  "website": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "invitation": {
                    "type": "string",
                    "maxLength": 200
                  }
                }
              }
            }
          }
        },
        "operationId": "RegistrationV2Controller.register",
        "security": []
      }
    },
    "/v2/auth/registration": {
      "get": {
        "x-controller-name": "RegistrationV2Controller",
        "x-operation-name": "registrationState",
        "tags": [
          "RegistrationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Whether anybody may sign up here — or, with a good invitation, that its address may, and which address it is",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "open"
                  ],
                  "properties": {
                    "open": {
                      "type": "boolean"
                    },
                    "email": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "invitation",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "RegistrationV2Controller.registrationState",
        "security": []
      }
    },
    "/v2/connectors/apollon/enums/contacts": {
      "get": {
        "x-controller-name": "ApollonConnectorController",
        "x-operation-name": "connectorGetContacts",
        "tags": [
          "ApollonConnector"
        ],
        "responses": {
          "200": {
            "description": "Returns all contacts for a given inventory.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicContact"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "inventoryId",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ApollonConnectorController.connectorGetContacts",
        "security": [
          {
            "appKey": [],
            "appId": []
          }
        ]
      }
    },
    "/v2/connectors/apollon/enums/item-types": {
      "get": {
        "x-controller-name": "ApollonConnectorController",
        "x-operation-name": "connectorGetItemTypes",
        "tags": [
          "ApollonConnector"
        ],
        "responses": {
          "200": {
            "description": "Returns available item types including localized labels.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicItemType"
                  }
                }
              }
            }
          }
        },
        "operationId": "ApollonConnectorController.connectorGetItemTypes",
        "security": [
          {
            "appKey": [],
            "appId": []
          }
        ]
      }
    },
    "/v2/connectors/apollon/enums/series-types": {
      "get": {
        "x-controller-name": "ApollonConnectorController",
        "x-operation-name": "connectorGetSeriesTypes",
        "tags": [
          "ApollonConnector"
        ],
        "responses": {
          "200": {
            "description": "Returns available series types.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicSeriesType"
                  }
                }
              }
            }
          }
        },
        "operationId": "ApollonConnectorController.connectorGetSeriesTypes",
        "security": [
          {
            "appKey": [],
            "appId": []
          }
        ]
      }
    },
    "/v2/connectors/apollon/enums/tags-and-groups": {
      "get": {
        "x-controller-name": "ApollonConnectorController",
        "x-operation-name": "connectorGetTagsAndGroups",
        "tags": [
          "ApollonConnector"
        ],
        "responses": {
          "200": {
            "description": "Returns all tag groups and their associated tags for a given inventory.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicTagAndGroupResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "inventoryId",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ApollonConnectorController.connectorGetTagsAndGroups",
        "security": [
          {
            "appKey": [],
            "appId": []
          }
        ]
      }
    },
    "/v2/connectors/apollon/items/files/copy": {
      "post": {
        "x-controller-name": "ApollonConnectorController",
        "x-operation-name": "connectorCopyPublicItemsFiles",
        "tags": [
          "ApollonConnector"
        ],
        "responses": {
          "200": {
            "description": "Copies public item files for the specified inventory to the provided S3 destination.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "message": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApollonCopySettings"
              }
            }
          }
        },
        "operationId": "ApollonConnectorController.connectorCopyPublicItemsFiles",
        "security": [
          {
            "appKey": [],
            "appId": []
          }
        ]
      }
    },
    "/v2/connectors/apollon/items": {
      "get": {
        "x-controller-name": "ApollonConnectorController",
        "x-operation-name": "connectorGetPublicItems",
        "tags": [
          "ApollonConnector"
        ],
        "responses": {
          "200": {
            "description": "Returns public items for the specified inventory. Optionally filtered to a specific set of item IDs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicItemWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "inventoryId",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "specificItemIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "operationId": "ApollonConnectorController.connectorGetPublicItems",
        "security": [
          {
            "appKey": [],
            "appId": []
          }
        ]
      }
    },
    "/v2/connectors/apollon/series": {
      "get": {
        "x-controller-name": "ApollonConnectorController",
        "x-operation-name": "connectorGetPublicSeries",
        "tags": [
          "ApollonConnector"
        ],
        "responses": {
          "200": {
            "description": "Returns public series for the specified inventory.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicSeries"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "inventoryId",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ApollonConnectorController.connectorGetPublicSeries",
        "security": [
          {
            "appKey": [],
            "appId": []
          }
        ]
      }
    },
    "/v2/contact": {
      "post": {
        "x-controller-name": "ContactV2Controller",
        "x-operation-name": "send",
        "tags": [
          "ContactV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Taken — the administrators will see it"
          },
          "422": {
            "description": "No e-mail to answer, or no message"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "message"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "maxLength": 512
                  },
                  "subject": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 5000
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "cs",
                      "en"
                    ]
                  },
                  "website": {
                    "type": "string",
                    "maxLength": 200
                  }
                }
              }
            }
          }
        },
        "operationId": "ContactV2Controller.send",
        "security": []
      }
    },
    "/v2/countries": {
      "get": {
        "x-controller-name": "CountryV2Controller",
        "x-operation-name": "listCountries",
        "tags": [
          "CountryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Every country, the pinned group first, then by code",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Country"
                  }
                }
              }
            }
          }
        },
        "operationId": "CountryV2Controller.listCountries",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/mine": {
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "findMine",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The signed-in account's inventories, with its role in each",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventorySummary"
                  }
                }
              }
            }
          }
        },
        "operationId": "InventoryV2Controller.findMine",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/activity": {
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "activityFor",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "What has been done in the inventory lately",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryActivity"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "kinds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "InventoryV2Controller.activityFor",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/auctions/{id}/merge": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "mergeInventoryAuction",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Merged into a catalogue record"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "targetId"
                ],
                "properties": {
                  "targetId": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryV2Controller.mergeInventoryAuction",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/auctions/{id}/promote": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "promoteInventoryAuction",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Moved into the shared catalogue"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.promoteInventoryAuction",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/auctions/{id}": {
      "patch": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "updateInventoryAuction",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The auction after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Auction"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "originalTitle": {
                    "type": "string",
                    "minLength": 1
                  },
                  "countryCode": {
                    "type": "string",
                    "nullable": true
                  },
                  "year": {
                    "type": "number",
                    "nullable": true
                  },
                  "organizerId": {
                    "type": "string"
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "title": {
                          "type": "string"
                        },
                        "isOriginalTitle": {
                          "type": "boolean"
                        },
                        "description": {
                          "type": "string"
                        },
                        "year": {
                          "type": "string"
                        },
                        "cityName": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryV2Controller.updateInventoryAuction",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryAuctionById",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One of the inventory's own auctions, for editing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuctionInfo"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.inventoryAuctionById",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "deleteInventoryAuction",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Removed from the inventory's own auctions"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.deleteInventoryAuction",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/auctions": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "createInventoryAuction",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The auction that was created, belonging to the inventory",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Auction"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "originalTitle"
                ],
                "properties": {
                  "originalTitle": {
                    "type": "string",
                    "minLength": 1
                  },
                  "countryCode": {
                    "type": "string",
                    "nullable": true
                  },
                  "year": {
                    "type": "number",
                    "nullable": true
                  },
                  "organizerId": {
                    "type": "string"
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "title": {
                          "type": "string"
                        },
                        "isOriginalTitle": {
                          "type": "boolean"
                        },
                        "description": {
                          "type": "string"
                        },
                        "year": {
                          "type": "string"
                        },
                        "cityName": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "InventoryV2Controller.createInventoryAuction",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryAuctions",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One inventory's own auctions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AuctionInfo"
                      }
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "origin",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "InventoryV2Controller.inventoryAuctions",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/authors/{id}/merge": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "mergeInventoryAuthor",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Merged into a catalogue record"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "targetId"
                ],
                "properties": {
                  "targetId": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryV2Controller.mergeInventoryAuthor",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/authors/{id}/promote": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "promoteInventoryAuthor",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Moved into the shared catalogue"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.promoteInventoryAuthor",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/authors/{id}": {
      "patch": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "updateInventoryAuthor",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The author after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Author"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "nickname": {
                    "type": "string",
                    "minLength": 1
                  },
                  "firstname": {
                    "type": "string"
                  },
                  "lastname": {
                    "type": "string"
                  },
                  "birthday": {
                    "type": "string"
                  },
                  "death": {
                    "type": "string"
                  },
                  "descriptionCS": {
                    "type": "string"
                  },
                  "descriptionEN": {
                    "type": "string"
                  },
                  "canvasId": {
                    "type": "number",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryV2Controller.updateInventoryAuthor",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryAuthorById",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One of the inventory's own authors, for editing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthorInfo"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.inventoryAuthorById",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "deleteInventoryAuthor",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Removed from the inventory's own authors"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.deleteInventoryAuthor",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/authors": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "createInventoryAuthor",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The author that was created, belonging to the inventory",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Author"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Only the display name is required.",
                "required": [
                  "nickname"
                ],
                "properties": {
                  "nickname": {
                    "type": "string",
                    "minLength": 1
                  },
                  "firstname": {
                    "type": "string"
                  },
                  "lastname": {
                    "type": "string"
                  },
                  "birthday": {
                    "type": "string"
                  },
                  "death": {
                    "type": "string"
                  },
                  "descriptionCS": {
                    "type": "string"
                  },
                  "descriptionEN": {
                    "type": "string"
                  },
                  "canvasId": {
                    "type": "number",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "InventoryV2Controller.createInventoryAuthor",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryAuthors",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One inventory's own authors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AuthorInfo"
                      }
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "origin",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "InventoryV2Controller.inventoryAuthors",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/catalogue/{kind}/{id}/versions/{versionId}/restore": {
      "post": {
        "x-controller-name": "RecordHistoryV2Controller",
        "x-operation-name": "restoreInventoryRecordVersion",
        "tags": [
          "RecordHistoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "An inventory's own record put back as the version given; its versions, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordVersionPage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "kind",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "versionId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "RecordHistoryV2Controller.restoreInventoryRecordVersion",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/catalogue/{kind}/{id}/versions": {
      "get": {
        "x-controller-name": "RecordHistoryV2Controller",
        "x-operation-name": "inventoryRecordVersions",
        "tags": [
          "RecordHistoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A record's versions, read from an inventory, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordVersionPage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "kind",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "RecordHistoryV2Controller.inventoryRecordVersions",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/comments/{type}/{id}": {
      "put": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "saveInventoryRecordComment",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's note on that record, as it now stands",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "comment": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "type",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "comment"
                ],
                "properties": {
                  "comment": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "x-parameter-index": 3
        },
        "operationId": "InventoryV2Controller.saveInventoryRecordComment",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/confidants": {
      "put": {
        "x-controller-name": "InventoryConfidantsV2Controller",
        "x-operation-name": "setConfidants",
        "tags": [
          "InventoryConfidantsV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's confidants, by name",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryConfidantRow"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "contactIds"
                ],
                "properties": {
                  "contactIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "InventoryConfidantsV2Controller.setConfidants",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryConfidantsV2Controller",
        "x-operation-name": "listConfidants",
        "tags": [
          "InventoryConfidantsV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's confidants, by name",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryConfidantRow"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryConfidantsV2Controller.listConfidants",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/contacts/{id}/copyrights/{copyrightId}": {
      "patch": {
        "x-controller-name": "ContactCopyrightV2Controller",
        "x-operation-name": "updateInventoryCopyright",
        "tags": [
          "ContactCopyrightV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The contact's copyrights",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactCopyright"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "copyrightId",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "copyrightCS": {
                    "type": "string",
                    "nullable": true
                  },
                  "copyrightEN": {
                    "type": "string",
                    "nullable": true
                  },
                  "notesInternal": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 3
        },
        "operationId": "ContactCopyrightV2Controller.updateInventoryCopyright",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "ContactCopyrightV2Controller",
        "x-operation-name": "deleteInventoryCopyright",
        "tags": [
          "ContactCopyrightV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The contact's copyrights",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactCopyright"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "copyrightId",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "ContactCopyrightV2Controller.deleteInventoryCopyright",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/contacts/{id}/copyrights": {
      "post": {
        "x-controller-name": "ContactCopyrightV2Controller",
        "x-operation-name": "createInventoryCopyright",
        "tags": [
          "ContactCopyrightV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The contact's copyrights",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactCopyright"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "copyrightCS": {
                    "type": "string",
                    "nullable": true
                  },
                  "copyrightEN": {
                    "type": "string",
                    "nullable": true
                  },
                  "notesInternal": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "ContactCopyrightV2Controller.createInventoryCopyright",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "ContactCopyrightV2Controller",
        "x-operation-name": "inventoryCopyrights",
        "tags": [
          "ContactCopyrightV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The contact's copyrights",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactCopyright"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ContactCopyrightV2Controller.inventoryCopyrights",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/contacts/{id}/merge": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "mergeInventoryContact",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Merged into a catalogue record"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "targetId"
                ],
                "properties": {
                  "targetId": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryV2Controller.mergeInventoryContact",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/contacts/{id}/promote": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "promoteInventoryContact",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Moved into the shared catalogue"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.promoteInventoryContact",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/contacts/{id}": {
      "patch": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "updateInventoryContact",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The contact after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "firstName": {
                    "type": "string"
                  },
                  "lastName": {
                    "type": "string"
                  },
                  "companyName": {
                    "type": "string"
                  },
                  "notesInternal": {
                    "type": "string"
                  },
                  "contactTypeId": {
                    "type": "number",
                    "nullable": true
                  },
                  "isPublic": {
                    "type": "boolean"
                  },
                  "roleIds": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryV2Controller.updateInventoryContact",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryContactById",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One of the inventory's own contacts, for editing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactInfo"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.inventoryContactById",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "deleteInventoryContact",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Removed from the inventory's own contacts"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.deleteInventoryContact",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/contacts": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "createInventoryContact",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The contact that was created, belonging to the inventory",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Only the display name is required.",
                "required": [
                  "title"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "firstName": {
                    "type": "string"
                  },
                  "lastName": {
                    "type": "string"
                  },
                  "companyName": {
                    "type": "string"
                  },
                  "notesInternal": {
                    "type": "string"
                  },
                  "contactTypeId": {
                    "type": "number",
                    "nullable": true
                  },
                  "isPublic": {
                    "type": "boolean"
                  },
                  "roleIds": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "InventoryV2Controller.createInventoryContact",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryContacts",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One inventory's own contacts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ContactInfo"
                      }
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "roleIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "origin",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "InventoryV2Controller.inventoryContacts",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/exhibitions/{id}/merge": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "mergeInventoryExhibition",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Merged into a catalogue record"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "targetId"
                ],
                "properties": {
                  "targetId": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryV2Controller.mergeInventoryExhibition",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/exhibitions/{id}/promote": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "promoteInventoryExhibition",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Moved into the shared catalogue"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.promoteInventoryExhibition",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/exhibitions/{id}": {
      "patch": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "updateInventoryExhibition",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The exhibition after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Exhibition"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "originalTitle": {
                    "type": "string",
                    "minLength": 1
                  },
                  "countryCode": {
                    "type": "string",
                    "nullable": true
                  },
                  "year": {
                    "type": "number",
                    "nullable": true
                  },
                  "organizerId": {
                    "type": "string"
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "title": {
                          "type": "string"
                        },
                        "isOriginalTitle": {
                          "type": "boolean"
                        },
                        "description": {
                          "type": "string"
                        },
                        "year": {
                          "type": "string"
                        },
                        "cityName": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryV2Controller.updateInventoryExhibition",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryExhibitionById",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One of the inventory's own exhibitions, for editing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExhibitionInfo"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.inventoryExhibitionById",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "deleteInventoryExhibition",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Removed from the inventory's own exhibitions"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.deleteInventoryExhibition",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/exhibitions": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "createInventoryExhibition",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The exhibition that was created, belonging to the inventory",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Exhibition"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "originalTitle"
                ],
                "properties": {
                  "originalTitle": {
                    "type": "string",
                    "minLength": 1
                  },
                  "countryCode": {
                    "type": "string",
                    "nullable": true
                  },
                  "year": {
                    "type": "number",
                    "nullable": true
                  },
                  "organizerId": {
                    "type": "string"
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "title": {
                          "type": "string"
                        },
                        "isOriginalTitle": {
                          "type": "boolean"
                        },
                        "description": {
                          "type": "string"
                        },
                        "year": {
                          "type": "string"
                        },
                        "cityName": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "InventoryV2Controller.createInventoryExhibition",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryExhibitions",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One inventory's own exhibitions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ExhibitionInfo"
                      }
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "origin",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "InventoryV2Controller.inventoryExhibitions",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/gallery": {
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryGallery",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A page of the inventory as pictures rather than rows",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "inventoryCode": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "authorNames": {
                            "type": "string"
                          },
                          "dating": {
                            "type": "string"
                          },
                          "picture": {
                            "type": "string"
                          },
                          "owner": {
                            "type": "string"
                          },
                          "public": {
                            "type": "boolean"
                          },
                          "disputed": {
                            "type": "number"
                          },
                          "disputationCode": {
                            "type": "string",
                            "nullable": true
                          },
                          "disputationShortcut": {
                            "type": "string",
                            "nullable": true
                          },
                          "parentCode": {
                            "type": "string",
                            "nullable": true
                          },
                          "parentOrder": {
                            "type": "number",
                            "nullable": true
                          },
                          "removed": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "locale",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "itemTypeId",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "itemTypeIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "authorIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "seriesIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tagIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "locationIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "exhibitionIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "publicationIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "auctionIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ownerIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ownerState",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "signature",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "disputation",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keyPublication",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "public",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "seen",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "estate",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "published",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "printQuality",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "permissionReproduce",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "translated",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "completed",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "removed",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "match",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchIn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchWords",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "InventoryV2Controller.inventoryGallery",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/invitations/{id}": {
      "delete": {
        "x-controller-name": "InvitationV2Controller",
        "x-operation-name": "cancel",
        "tags": [
          "InvitationV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Cancelled"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InvitationV2Controller.cancel",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/invitations": {
      "post": {
        "x-controller-name": "InvitationV2Controller",
        "x-operation-name": "invite",
        "tags": [
          "InvitationV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Sent — the same answer whether an account is behind the address or not"
          },
          "404": {
            "description": "No account has that code"
          },
          "409": {
            "description": "Already in this inventory"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "inventoryRoleId"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 512
                  },
                  "userCode": {
                    "type": "string",
                    "maxLength": 32
                  },
                  "inventoryRoleId": {
                    "type": "integer"
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "InvitationV2Controller.invite",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InvitationV2Controller",
        "x-operation-name": "inventoryInvitations",
        "tags": [
          "InvitationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The invitations waiting or declined, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryInvitationRow"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InvitationV2Controller.inventoryInvitations",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/item-facets": {
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryItemFacets",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Per criterion of the works filter, the values the works have, with counts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "itemTypeIds",
                    "authorIds",
                    "seriesIds",
                    "tagIds",
                    "locationIds",
                    "exhibitionIds",
                    "publicationIds",
                    "auctionIds",
                    "ownerIds",
                    "ownerState",
                    "signature",
                    "disputation"
                  ],
                  "properties": {
                    "itemTypeIds": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "value",
                          "count"
                        ],
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "count": {
                            "type": "number"
                          }
                        }
                      }
                    },
                    "authorIds": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "value",
                          "count"
                        ],
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "count": {
                            "type": "number"
                          }
                        }
                      }
                    },
                    "seriesIds": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "value",
                          "count"
                        ],
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "count": {
                            "type": "number"
                          }
                        }
                      }
                    },
                    "tagIds": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "value",
                          "count"
                        ],
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "count": {
                            "type": "number"
                          }
                        }
                      }
                    },
                    "locationIds": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "value",
                          "count"
                        ],
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "count": {
                            "type": "number"
                          }
                        }
                      }
                    },
                    "exhibitionIds": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "value",
                          "count"
                        ],
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "count": {
                            "type": "number"
                          }
                        }
                      }
                    },
                    "publicationIds": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "value",
                          "count"
                        ],
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "count": {
                            "type": "number"
                          }
                        }
                      }
                    },
                    "auctionIds": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "value",
                          "count"
                        ],
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "count": {
                            "type": "number"
                          }
                        }
                      }
                    },
                    "ownerIds": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "value",
                          "count"
                        ],
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "count": {
                            "type": "number"
                          }
                        }
                      }
                    },
                    "ownerState": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "value",
                          "count"
                        ],
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "count": {
                            "type": "number"
                          }
                        }
                      }
                    },
                    "signature": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "value",
                          "count"
                        ],
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "count": {
                            "type": "number"
                          }
                        }
                      }
                    },
                    "disputation": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "value",
                          "count"
                        ],
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "count": {
                            "type": "number"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "removed",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "InventoryV2Controller.inventoryItemFacets",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/auctions/{linkId}": {
      "patch": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "updateItemSale",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work's sales after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemSale"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "linkId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "typeId": {
                    "type": "number",
                    "enum": [
                      1,
                      2
                    ]
                  },
                  "auctionId": {
                    "type": "string",
                    "nullable": true
                  },
                  "sellerId": {
                    "type": "string",
                    "nullable": true
                  },
                  "catalogNumber": {
                    "type": "number",
                    "nullable": true
                  },
                  "priceStarting": {
                    "type": "number",
                    "nullable": true
                  },
                  "priceHammer": {
                    "type": "number",
                    "nullable": true
                  },
                  "priceFinal": {
                    "type": "number",
                    "nullable": true
                  },
                  "priceEstimationLow": {
                    "type": "number",
                    "nullable": true
                  },
                  "priceEstimationHigh": {
                    "type": "number",
                    "nullable": true
                  },
                  "currencyId": {
                    "type": "string",
                    "nullable": true
                  },
                  "wasSold": {
                    "type": "boolean"
                  },
                  "yearSold": {
                    "type": "number",
                    "nullable": true
                  },
                  "isPublic": {
                    "type": "boolean"
                  },
                  "notesInternal": {
                    "type": "string",
                    "nullable": true
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "description": {
                          "type": "string",
                          "nullable": true
                        },
                        "dating": {
                          "type": "string",
                          "nullable": true
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 3
        },
        "operationId": "ItemV2Controller.updateItemSale",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "removeItemSale",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work's sales after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemSale"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "linkId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.removeItemSale",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/auctions": {
      "post": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "addItemSale",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work's sales after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemSale"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "typeId": {
                    "type": "number",
                    "enum": [
                      1,
                      2
                    ]
                  },
                  "auctionId": {
                    "type": "string",
                    "nullable": true
                  },
                  "sellerId": {
                    "type": "string",
                    "nullable": true
                  },
                  "catalogNumber": {
                    "type": "number",
                    "nullable": true
                  },
                  "priceStarting": {
                    "type": "number",
                    "nullable": true
                  },
                  "priceHammer": {
                    "type": "number",
                    "nullable": true
                  },
                  "priceFinal": {
                    "type": "number",
                    "nullable": true
                  },
                  "priceEstimationLow": {
                    "type": "number",
                    "nullable": true
                  },
                  "priceEstimationHigh": {
                    "type": "number",
                    "nullable": true
                  },
                  "currencyId": {
                    "type": "string",
                    "nullable": true
                  },
                  "wasSold": {
                    "type": "boolean"
                  },
                  "yearSold": {
                    "type": "number",
                    "nullable": true
                  },
                  "isPublic": {
                    "type": "boolean"
                  },
                  "notesInternal": {
                    "type": "string",
                    "nullable": true
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "description": {
                          "type": "string",
                          "nullable": true
                        },
                        "dating": {
                          "type": "string",
                          "nullable": true
                        }
                      }
                    }
                  }
                },
                "required": [
                  "typeId"
                ]
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "ItemV2Controller.addItemSale",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "itemAuctions",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work's sales",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemSale"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.itemAuctions",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/children/{childId}": {
      "delete": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "removeItemChild",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The works this one is made of, after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemChild"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "childId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.removeItemChild",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/children": {
      "post": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "addItemChild",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The works this one is made of, after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemChild"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "childId"
                ],
                "properties": {
                  "childId": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "ItemV2Controller.addItemChild",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "itemChildren",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The works this one is made of",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemChild"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.itemChildren",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/exhibitions/{linkId}": {
      "patch": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "updateItemExhibition",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The list after the entry was changed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemExhibition"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "linkId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "exhibitionId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "catalogNumber": {
                    "type": "number",
                    "nullable": true
                  },
                  "notesInternal": {
                    "type": "string"
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "description": {
                          "type": "string",
                          "nullable": true
                        },
                        "dating": {
                          "type": "string",
                          "nullable": true
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 3
        },
        "operationId": "ItemV2Controller.updateItemExhibition",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "removeItemExhibition",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The list after the entry was removed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemExhibition"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "linkId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.removeItemExhibition",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/exhibitions": {
      "post": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "addItemExhibition",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The list after the record was added",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemExhibition"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "exhibitionId"
                ],
                "properties": {
                  "exhibitionId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "catalogNumber": {
                    "type": "number",
                    "nullable": true
                  },
                  "notesInternal": {
                    "type": "string"
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "description": {
                          "type": "string",
                          "nullable": true
                        },
                        "dating": {
                          "type": "string",
                          "nullable": true
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "ItemV2Controller.addItemExhibition",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "itemExhibitions",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Where the work has been shown",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemExhibition"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.itemExhibitions",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/export": {
      "get": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "exportItem",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work as a PDF",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.exportItem",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/files/order": {
      "put": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "orderItemFiles",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work's files in their new order",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemFile"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "ItemV2Controller.orderItemFiles",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/files/{fileId}/content": {
      "get": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "itemFileContent",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The file itself",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "fileId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "quality",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "ItemV2Controller.itemFileContent",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/files/{fileId}": {
      "patch": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "updateItemFile",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work's files after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemFile"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "fileId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "isPublic": {
                    "type": "boolean"
                  },
                  "authorId": {
                    "type": "string",
                    "nullable": true
                  },
                  "title": {
                    "type": "string",
                    "nullable": true
                  },
                  "titleEN": {
                    "type": "string",
                    "nullable": true
                  },
                  "description": {
                    "type": "string",
                    "nullable": true
                  },
                  "descriptionEN": {
                    "type": "string",
                    "nullable": true
                  },
                  "copyright": {
                    "type": "string",
                    "nullable": true
                  },
                  "copyrightEN": {
                    "type": "string",
                    "nullable": true
                  },
                  "notesInternal": {
                    "type": "string",
                    "nullable": true
                  },
                  "documentTypeId": {
                    "type": "number",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 3
        },
        "operationId": "ItemV2Controller.updateItemFile",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "removeItemFile",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work's files after the removal",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemFile"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "fileId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.removeItemFile",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/files": {
      "post": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "uploadItemFile",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work's files after the upload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemFile"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "isPublic",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "authorId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "title",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "titleEN",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "description",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "descriptionEN",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "copyright",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "copyrightEN",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "notesInternal",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "documentTypeId",
            "in": "query",
            "schema": {
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "x-parser": "stream",
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          },
          "description": "Request body for multipart/form-data based file upload",
          "required": true
        },
        "operationId": "ItemV2Controller.uploadItemFile",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "itemFiles",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work's pictures and documents",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemFile"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.itemFiles",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/other-side": {
      "patch": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "updateItemOtherSide",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The back of the work after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemOtherSide"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "datingOrder": {
                    "type": "number",
                    "nullable": true
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "dating": {
                          "type": "string"
                        },
                        "technique": {
                          "type": "string"
                        },
                        "substrate": {
                          "type": "string"
                        },
                        "notesPublic": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "ItemV2Controller.updateItemOtherSide",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "itemOtherSide",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The back of the work, with both locale rows",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemOtherSide"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.itemOtherSide",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/owners/{linkId}": {
      "patch": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "updateItemOwner",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work's owners after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemOwner"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "linkId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "contactId": {
                    "type": "string",
                    "nullable": true
                  },
                  "contactTypeId": {
                    "type": "number",
                    "nullable": true
                  },
                  "ownerTypeId": {
                    "type": "number",
                    "nullable": true
                  },
                  "ownerItemId": {
                    "type": "string",
                    "nullable": true
                  },
                  "yearPurchase": {
                    "type": "number",
                    "nullable": true
                  },
                  "yearPurchaseText": {
                    "type": "string",
                    "nullable": true
                  },
                  "notesPublicCS": {
                    "type": "string",
                    "nullable": true
                  },
                  "notesPublicEN": {
                    "type": "string",
                    "nullable": true
                  },
                  "notesInternal": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 3
        },
        "operationId": "ItemV2Controller.updateItemOwner",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "removeItemOwner",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work's owners after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemOwner"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "linkId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.removeItemOwner",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/owners": {
      "post": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "addItemOwner",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work's owners after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemOwner"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "contactId": {
                    "type": "string",
                    "nullable": true
                  },
                  "contactTypeId": {
                    "type": "number",
                    "nullable": true
                  },
                  "ownerTypeId": {
                    "type": "number",
                    "nullable": true
                  },
                  "ownerItemId": {
                    "type": "string",
                    "nullable": true
                  },
                  "yearPurchase": {
                    "type": "number",
                    "nullable": true
                  },
                  "yearPurchaseText": {
                    "type": "string",
                    "nullable": true
                  },
                  "notesPublicCS": {
                    "type": "string",
                    "nullable": true
                  },
                  "notesPublicEN": {
                    "type": "string",
                    "nullable": true
                  },
                  "notesInternal": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "ItemV2Controller.addItemOwner",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "itemOwners",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work's owners, past and present",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemOwner"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.itemOwners",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/parts/{part}/order": {
      "put": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "orderItemPart",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work after the list was reordered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemDetail"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "part",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 3
        },
        "operationId": "ItemV2Controller.orderItemPart",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/parts/{part}/{partId}": {
      "patch": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "updateItemPart",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work after the row was changed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemDetail"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "part",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "partId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "x-parameter-index": 4
        },
        "operationId": "ItemV2Controller.updateItemPart",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "removeItemPart",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work after the row was removed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemDetail"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "part",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "partId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "unmarkSeen",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "operationId": "ItemV2Controller.removeItemPart",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/parts/{part}": {
      "post": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "addItemPart",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work after the row was added",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemDetail"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "part",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "x-parameter-index": 3
        },
        "operationId": "ItemV2Controller.addItemPart",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/pictures-archive": {
      "get": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "itemPicturesArchive",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work's pictures as a zip",
            "content": {
              "application/zip": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "quality",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "ItemV2Controller.itemPicturesArchive",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/publications/{linkId}": {
      "patch": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "updateItemPublication",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The list after the entry was changed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemPublication"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "linkId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "publicationId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "page": {
                    "type": "string"
                  },
                  "notesInternal": {
                    "type": "string"
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "description": {
                          "type": "string",
                          "nullable": true
                        },
                        "dating": {
                          "type": "string",
                          "nullable": true
                        }
                      }
                    }
                  },
                  "itemInPublicationId": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 3
        },
        "operationId": "ItemV2Controller.updateItemPublication",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "removeItemPublication",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The list after the entry was removed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemPublication"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "linkId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.removeItemPublication",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/publications": {
      "post": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "addItemPublication",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The list after the record was added",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemPublication"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "publicationId"
                ],
                "properties": {
                  "publicationId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "page": {
                    "type": "string"
                  },
                  "notesInternal": {
                    "type": "string"
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "description": {
                          "type": "string",
                          "nullable": true
                        },
                        "dating": {
                          "type": "string",
                          "nullable": true
                        }
                      }
                    }
                  },
                  "itemInPublicationId": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "ItemV2Controller.addItemPublication",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "itemPublications",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Where the work has been written about",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemPublication"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.itemPublications",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/relations/{relationId}": {
      "patch": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "updateItemRelation",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemDetail"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "relationId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "relationTypeId": {
                    "type": "string"
                  },
                  "isPublic": {
                    "type": "boolean"
                  }
                }
              }
            }
          },
          "x-parameter-index": 3
        },
        "operationId": "ItemV2Controller.updateItemRelation",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "removeItemRelation",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work after the link was taken away",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemDetail"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "relationId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.removeItemRelation",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/relations": {
      "post": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "addItemRelation",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work after the link was made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemDetail"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "targetItemId",
                  "relationTypeId"
                ],
                "properties": {
                  "targetItemId": {
                    "type": "string"
                  },
                  "relationTypeId": {
                    "type": "string"
                  },
                  "isPublic": {
                    "type": "boolean"
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "ItemV2Controller.addItemRelation",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/removal": {
      "post": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "removeItemFromInventory",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work, taken out of the inventory",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemDetail"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "type"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "sold",
                      "lost",
                      "stolen",
                      "destroyed",
                      "donated"
                    ]
                  },
                  "date": {
                    "type": "string",
                    "format": "date"
                  },
                  "note": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "ItemV2Controller.removeItemFromInventory",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "returnItemToInventory",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work, back in the inventory",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemDetail"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.returnItemToInventory",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/versions/{versionId}/restore": {
      "post": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "restoreItemVersion",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work after it was put back",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemDetail"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "versionId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.restoreItemVersion",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/versions/{versionId}": {
      "get": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "itemVersion",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One version of the work, whole",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "createdAt",
                    "action",
                    "user",
                    "baseline",
                    "restoredFrom",
                    "state"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "action": {
                      "type": "string",
                      "enum": [
                        "create",
                        "update"
                      ],
                      "nullable": true
                    },
                    "user": {
                      "type": "object",
                      "nullable": true,
                      "required": [
                        "id",
                        "name"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      }
                    },
                    "baseline": {
                      "type": "boolean"
                    },
                    "restoredFrom": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true
                    },
                    "state": {
                      "type": "object",
                      "required": [
                        "fields",
                        "lists"
                      ],
                      "properties": {
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "key",
                              "format",
                              "value"
                            ],
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "locale": {
                                "type": "string",
                                "enum": [
                                  "cs",
                                  "en"
                                ]
                              },
                              "format": {
                                "type": "string",
                                "enum": [
                                  "text",
                                  "html",
                                  "number",
                                  "boolean",
                                  "date"
                                ]
                              },
                              "value": {
                                "nullable": true,
                                "oneOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              }
                            }
                          }
                        },
                        "lists": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "key",
                              "entries"
                            ],
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "entries": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "id",
                                    "label",
                                    "details"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "label": {
                                      "type": "string"
                                    },
                                    "details": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "required": [
                                          "key",
                                          "format",
                                          "value"
                                        ],
                                        "properties": {
                                          "key": {
                                            "type": "string"
                                          },
                                          "locale": {
                                            "type": "string",
                                            "enum": [
                                              "cs",
                                              "en"
                                            ]
                                          },
                                          "format": {
                                            "type": "string",
                                            "enum": [
                                              "text",
                                              "html",
                                              "number",
                                              "boolean",
                                              "date"
                                            ]
                                          },
                                          "value": {
                                            "nullable": true,
                                            "oneOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "versionId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "lang",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "ItemV2Controller.itemVersion",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}/versions": {
      "get": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "itemVersions",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The versions of the work, newest first, each with what it changed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "unrecorded",
                    "items",
                    "more"
                  ],
                  "properties": {
                    "unrecorded": {
                      "type": "object",
                      "required": [
                        "fields",
                        "lists"
                      ],
                      "properties": {
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "key",
                              "format",
                              "before",
                              "after"
                            ],
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "locale": {
                                "type": "string",
                                "enum": [
                                  "cs",
                                  "en"
                                ]
                              },
                              "format": {
                                "type": "string",
                                "enum": [
                                  "text",
                                  "html",
                                  "number",
                                  "boolean",
                                  "date"
                                ]
                              },
                              "before": {
                                "nullable": true,
                                "oneOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              },
                              "after": {
                                "nullable": true,
                                "oneOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              }
                            }
                          }
                        },
                        "lists": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "key",
                              "added",
                              "removed",
                              "changed",
                              "reordered"
                            ],
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "added": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "id",
                                    "label",
                                    "details"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "label": {
                                      "type": "string"
                                    },
                                    "details": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "required": [
                                          "key",
                                          "format",
                                          "value"
                                        ],
                                        "properties": {
                                          "key": {
                                            "type": "string"
                                          },
                                          "locale": {
                                            "type": "string",
                                            "enum": [
                                              "cs",
                                              "en"
                                            ]
                                          },
                                          "format": {
                                            "type": "string",
                                            "enum": [
                                              "text",
                                              "html",
                                              "number",
                                              "boolean",
                                              "date"
                                            ]
                                          },
                                          "value": {
                                            "nullable": true,
                                            "oneOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "removed": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "id",
                                    "label",
                                    "details"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "label": {
                                      "type": "string"
                                    },
                                    "details": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "required": [
                                          "key",
                                          "format",
                                          "value"
                                        ],
                                        "properties": {
                                          "key": {
                                            "type": "string"
                                          },
                                          "locale": {
                                            "type": "string",
                                            "enum": [
                                              "cs",
                                              "en"
                                            ]
                                          },
                                          "format": {
                                            "type": "string",
                                            "enum": [
                                              "text",
                                              "html",
                                              "number",
                                              "boolean",
                                              "date"
                                            ]
                                          },
                                          "value": {
                                            "nullable": true,
                                            "oneOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "changed": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "id",
                                    "label",
                                    "changes"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "label": {
                                      "type": "string"
                                    },
                                    "changes": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "required": [
                                          "key",
                                          "format",
                                          "before",
                                          "after"
                                        ],
                                        "properties": {
                                          "key": {
                                            "type": "string"
                                          },
                                          "locale": {
                                            "type": "string",
                                            "enum": [
                                              "cs",
                                              "en"
                                            ]
                                          },
                                          "format": {
                                            "type": "string",
                                            "enum": [
                                              "text",
                                              "html",
                                              "number",
                                              "boolean",
                                              "date"
                                            ]
                                          },
                                          "before": {
                                            "nullable": true,
                                            "oneOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          },
                                          "after": {
                                            "nullable": true,
                                            "oneOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "reordered": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      },
                      "nullable": true
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "createdAt",
                          "action",
                          "user",
                          "baseline",
                          "restoredFrom",
                          "changes"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "create",
                              "update"
                            ],
                            "nullable": true
                          },
                          "user": {
                            "type": "object",
                            "nullable": true,
                            "required": [
                              "id",
                              "name"
                            ],
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              }
                            }
                          },
                          "baseline": {
                            "type": "boolean"
                          },
                          "restoredFrom": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true
                          },
                          "changes": {
                            "type": "object",
                            "required": [
                              "fields",
                              "lists"
                            ],
                            "properties": {
                              "fields": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "key",
                                    "format",
                                    "before",
                                    "after"
                                  ],
                                  "properties": {
                                    "key": {
                                      "type": "string"
                                    },
                                    "locale": {
                                      "type": "string",
                                      "enum": [
                                        "cs",
                                        "en"
                                      ]
                                    },
                                    "format": {
                                      "type": "string",
                                      "enum": [
                                        "text",
                                        "html",
                                        "number",
                                        "boolean",
                                        "date"
                                      ]
                                    },
                                    "before": {
                                      "nullable": true,
                                      "oneOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "boolean"
                                        }
                                      ]
                                    },
                                    "after": {
                                      "nullable": true,
                                      "oneOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "boolean"
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              "lists": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "key",
                                    "added",
                                    "removed",
                                    "changed",
                                    "reordered"
                                  ],
                                  "properties": {
                                    "key": {
                                      "type": "string"
                                    },
                                    "added": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "required": [
                                          "id",
                                          "label",
                                          "details"
                                        ],
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "label": {
                                            "type": "string"
                                          },
                                          "details": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "required": [
                                                "key",
                                                "format",
                                                "value"
                                              ],
                                              "properties": {
                                                "key": {
                                                  "type": "string"
                                                },
                                                "locale": {
                                                  "type": "string",
                                                  "enum": [
                                                    "cs",
                                                    "en"
                                                  ]
                                                },
                                                "format": {
                                                  "type": "string",
                                                  "enum": [
                                                    "text",
                                                    "html",
                                                    "number",
                                                    "boolean",
                                                    "date"
                                                  ]
                                                },
                                                "value": {
                                                  "nullable": true,
                                                  "oneOf": [
                                                    {
                                                      "type": "string"
                                                    },
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "boolean"
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    },
                                    "removed": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "required": [
                                          "id",
                                          "label",
                                          "details"
                                        ],
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "label": {
                                            "type": "string"
                                          },
                                          "details": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "required": [
                                                "key",
                                                "format",
                                                "value"
                                              ],
                                              "properties": {
                                                "key": {
                                                  "type": "string"
                                                },
                                                "locale": {
                                                  "type": "string",
                                                  "enum": [
                                                    "cs",
                                                    "en"
                                                  ]
                                                },
                                                "format": {
                                                  "type": "string",
                                                  "enum": [
                                                    "text",
                                                    "html",
                                                    "number",
                                                    "boolean",
                                                    "date"
                                                  ]
                                                },
                                                "value": {
                                                  "nullable": true,
                                                  "oneOf": [
                                                    {
                                                      "type": "string"
                                                    },
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "boolean"
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    },
                                    "changed": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "required": [
                                          "id",
                                          "label",
                                          "changes"
                                        ],
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "label": {
                                            "type": "string"
                                          },
                                          "changes": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "required": [
                                                "key",
                                                "format",
                                                "before",
                                                "after"
                                              ],
                                              "properties": {
                                                "key": {
                                                  "type": "string"
                                                },
                                                "locale": {
                                                  "type": "string",
                                                  "enum": [
                                                    "cs",
                                                    "en"
                                                  ]
                                                },
                                                "format": {
                                                  "type": "string",
                                                  "enum": [
                                                    "text",
                                                    "html",
                                                    "number",
                                                    "boolean",
                                                    "date"
                                                  ]
                                                },
                                                "before": {
                                                  "nullable": true,
                                                  "oneOf": [
                                                    {
                                                      "type": "string"
                                                    },
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "boolean"
                                                    }
                                                  ]
                                                },
                                                "after": {
                                                  "nullable": true,
                                                  "oneOf": [
                                                    {
                                                      "type": "string"
                                                    },
                                                    {
                                                      "type": "number"
                                                    },
                                                    {
                                                      "type": "boolean"
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    },
                                    "reordered": {
                                      "type": "boolean"
                                    }
                                  }
                                }
                              }
                            },
                            "nullable": true
                          }
                        }
                      }
                    },
                    "more": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "ItemV2Controller.itemVersions",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items/{id}": {
      "patch": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "updateItem",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The work after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemDetail"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "originalTitle": {
                    "type": "string"
                  },
                  "public": {
                    "type": "boolean"
                  },
                  "published": {
                    "type": "boolean"
                  },
                  "datingOrder": {
                    "type": "number",
                    "nullable": true
                  },
                  "chronologicalOrder": {
                    "type": "number",
                    "nullable": true
                  },
                  "printsCount": {
                    "type": "number",
                    "nullable": true
                  },
                  "dimensionHeight": {
                    "type": "number",
                    "nullable": true
                  },
                  "dimensionWidth": {
                    "type": "number",
                    "nullable": true
                  },
                  "dimensionDepth": {
                    "type": "number",
                    "nullable": true
                  },
                  "dimensionAltHeight": {
                    "type": "number",
                    "nullable": true
                  },
                  "dimensionAltWidth": {
                    "type": "number",
                    "nullable": true
                  },
                  "dimensionAltDepth": {
                    "type": "number",
                    "nullable": true
                  },
                  "backsideNumber": {
                    "type": "string"
                  },
                  "backsideText": {
                    "type": "string"
                  },
                  "notesInternal": {
                    "type": "string"
                  },
                  "estate": {
                    "type": "boolean"
                  },
                  "permissionReproduce": {
                    "type": "boolean"
                  },
                  "printQuality": {
                    "type": "boolean"
                  },
                  "seen": {
                    "type": "boolean"
                  },
                  "completed": {
                    "type": "boolean"
                  },
                  "translated": {
                    "type": "boolean"
                  },
                  "hasOtherSide": {
                    "type": "boolean"
                  },
                  "canvasId": {
                    "type": "integer",
                    "minimum": 1,
                    "nullable": true
                  },
                  "itemTypeId": {
                    "type": "number"
                  },
                  "locationId": {
                    "type": "string",
                    "nullable": true
                  },
                  "itemDisputationTypeId": {
                    "type": "number",
                    "nullable": true
                  },
                  "parentId": {
                    "type": "string",
                    "nullable": true
                  },
                  "parentOrder": {
                    "type": "number",
                    "nullable": true
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "title": {
                          "type": "string"
                        },
                        "dating": {
                          "type": "string"
                        },
                        "technique": {
                          "type": "string"
                        },
                        "substrate": {
                          "type": "string"
                        },
                        "notesPublic": {
                          "type": "string"
                        },
                        "isOriginalTitle": {
                          "type": "boolean"
                        },
                        "public": {
                          "type": "boolean"
                        }
                      }
                    }
                  },
                  "authors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "series": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "extras": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "ItemV2Controller.updateItem",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "itemDetail",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One work, with its translations, lists and tab counts",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemDetail"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.itemDetail",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "deleteItem",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "204": {
            "description": "The work is gone"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "ItemV2Controller.deleteItem",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items": {
      "post": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "createItem",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The new work, with the number it was given",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemDetail"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "itemTypeId"
                ],
                "properties": {
                  "itemTypeId": {
                    "type": "number"
                  },
                  "originalLocale": {
                    "type": "string",
                    "enum": [
                      "cs",
                      "en",
                      "other"
                    ]
                  },
                  "originalTitle": {
                    "type": "string"
                  },
                  "titleCS": {
                    "type": "string"
                  },
                  "titleEN": {
                    "type": "string"
                  },
                  "authors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "ItemV2Controller.createItem",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryItems",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A page of the inventory's items, with their authors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "inventoryCode": {
                            "type": "string"
                          },
                          "inventoryNumber": {
                            "type": "number"
                          },
                          "originalTitle": {
                            "type": "string"
                          },
                          "itemTypeId": {
                            "type": "number"
                          },
                          "public": {
                            "type": "boolean"
                          },
                          "completed": {
                            "type": "boolean"
                          },
                          "locationId": {
                            "type": "string"
                          },
                          "locationTitle": {
                            "type": "string"
                          },
                          "dimensionHeight": {
                            "type": "number"
                          },
                          "dimensionWidth": {
                            "type": "number"
                          },
                          "authorNames": {
                            "type": "string"
                          },
                          "picture": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "type": "string"
                          },
                          "datingOrder": {
                            "type": "number"
                          },
                          "dating": {
                            "type": "string"
                          },
                          "technique": {
                            "type": "string"
                          },
                          "substrate": {
                            "type": "string"
                          },
                          "seen": {
                            "type": "boolean"
                          },
                          "estate": {
                            "type": "boolean"
                          },
                          "published": {
                            "type": "boolean"
                          },
                          "printQuality": {
                            "type": "boolean"
                          },
                          "permissionReproduce": {
                            "type": "boolean"
                          },
                          "translated": {
                            "type": "boolean"
                          },
                          "removalType": {
                            "type": "string"
                          },
                          "removedAt": {
                            "type": "string"
                          },
                          "itemDisputationTypeId": {
                            "type": "number"
                          },
                          "disputationCode": {
                            "type": "string",
                            "nullable": true
                          },
                          "disputationShortcut": {
                            "type": "string",
                            "nullable": true
                          },
                          "parentId": {
                            "type": "string",
                            "nullable": true
                          },
                          "parentCode": {
                            "type": "string",
                            "nullable": true
                          },
                          "parentOrder": {
                            "type": "number",
                            "nullable": true
                          },
                          "signatureCode": {
                            "type": "string",
                            "nullable": true
                          },
                          "inKeyPublication": {
                            "type": "boolean"
                          },
                          "locationPath": {
                            "type": "string",
                            "nullable": true
                          },
                          "locationDescription": {
                            "type": "string",
                            "nullable": true
                          }
                        }
                      }
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "itemTypeId",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "parentsOnly",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "locale",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "numbers",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "itemTypeIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "authorIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "seriesIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tagIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "locationIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "exhibitionIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "publicationIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "auctionIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ownerIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ownerState",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "signature",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "disputation",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keyPublication",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "public",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "seen",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "estate",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "published",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "printQuality",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "permissionReproduce",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "translated",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "completed",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "removed",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "match",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchIn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchWords",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "InventoryV2Controller.inventoryItems",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/items-export": {
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "exportInventoryItems",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The works as an .xlsx file",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "itemTypeId",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "pictures",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "itemTypeIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "authorIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "seriesIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tagIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "locationIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "exhibitionIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "publicationIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "auctionIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ownerIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ownerState",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "signature",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "disputation",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keyPublication",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "public",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "seen",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "estate",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "published",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "printQuality",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "permissionReproduce",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "translated",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "completed",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "removed",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "match",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchIn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchWords",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "InventoryV2Controller.exportInventoryItems",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/leave": {
      "post": {
        "x-controller-name": "InvitationV2Controller",
        "x-operation-name": "leave",
        "tags": [
          "InvitationV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Left"
          },
          "422": {
            "description": "The last owner cannot leave"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InvitationV2Controller.leave",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/locations/{id}/versions/{versionId}/restore": {
      "post": {
        "x-controller-name": "RecordHistoryV2Controller",
        "x-operation-name": "restoreLocationVersion",
        "tags": [
          "RecordHistoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A location put back as the version given; its versions, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordVersionPage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "versionId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "RecordHistoryV2Controller.restoreLocationVersion",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/locations/{id}/versions": {
      "get": {
        "x-controller-name": "RecordHistoryV2Controller",
        "x-operation-name": "locationVersions",
        "tags": [
          "RecordHistoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A location's versions, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordVersionPage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "RecordHistoryV2Controller.locationVersions",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/locations/{id}": {
      "patch": {
        "x-controller-name": "InventoryOrganisationV2Controller",
        "x-operation-name": "updateLocation",
        "tags": [
          "InventoryOrganisationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's locations after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryLocation"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "typeId"
                ],
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "typeId": {
                    "type": "number"
                  },
                  "moveable": {
                    "type": "boolean"
                  },
                  "parentId": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryOrganisationV2Controller.updateLocation",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "InventoryOrganisationV2Controller",
        "x-operation-name": "deleteLocation",
        "tags": [
          "InventoryOrganisationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's locations after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryLocation"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryOrganisationV2Controller.deleteLocation",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/locations": {
      "post": {
        "x-controller-name": "InventoryOrganisationV2Controller",
        "x-operation-name": "createLocation",
        "tags": [
          "InventoryOrganisationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's locations after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryLocation"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "typeId"
                ],
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "typeId": {
                    "type": "number"
                  },
                  "moveable": {
                    "type": "boolean"
                  },
                  "parentId": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "InventoryOrganisationV2Controller.createLocation",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryLocations",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's locations, with the kind of place each is",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryLocation"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.inventoryLocations",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/publications/{id}/merge": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "mergeInventoryPublication",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Merged into a catalogue record"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "targetId"
                ],
                "properties": {
                  "targetId": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryV2Controller.mergeInventoryPublication",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/publications/{id}/promote": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "promoteInventoryPublication",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Moved into the shared catalogue"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.promoteInventoryPublication",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/publications/{id}": {
      "patch": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "updateInventoryPublication",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The publication after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Publication"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "originalTitle": {
                    "type": "string",
                    "minLength": 1
                  },
                  "author": {
                    "type": "string"
                  },
                  "isbn": {
                    "type": "string"
                  },
                  "year": {
                    "type": "number",
                    "nullable": true
                  },
                  "publicationTypeId": {
                    "type": "number",
                    "nullable": true
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "title": {
                          "type": "string"
                        },
                        "isOriginalTitle": {
                          "type": "boolean"
                        },
                        "description": {
                          "type": "string"
                        },
                        "year": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryV2Controller.updateInventoryPublication",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryPublicationById",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One of the inventory's own publications, for editing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationInfo"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.inventoryPublicationById",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "deleteInventoryPublication",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Removed from the inventory's own publications"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.deleteInventoryPublication",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/publications": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "createInventoryPublication",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The publication that was created, belonging to the inventory",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Publication"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "originalTitle"
                ],
                "properties": {
                  "originalTitle": {
                    "type": "string",
                    "minLength": 1
                  },
                  "author": {
                    "type": "string"
                  },
                  "isbn": {
                    "type": "string"
                  },
                  "year": {
                    "type": "number",
                    "nullable": true
                  },
                  "publicationTypeId": {
                    "type": "number",
                    "nullable": true
                  },
                  "translations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "localeId"
                      ],
                      "properties": {
                        "localeId": {
                          "type": "number"
                        },
                        "title": {
                          "type": "string"
                        },
                        "isOriginalTitle": {
                          "type": "boolean"
                        },
                        "description": {
                          "type": "string"
                        },
                        "year": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "InventoryV2Controller.createInventoryPublication",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryPublications",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One inventory's own publications",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PublicationInfo"
                      }
                    },
                    "total": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dir",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "origin",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "InventoryV2Controller.inventoryPublications",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/roles": {
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryAssignableRoles",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The roles the caller may hand out in this inventory",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryRole"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.inventoryAssignableRoles",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/series/{id}/versions/{versionId}/restore": {
      "post": {
        "x-controller-name": "RecordHistoryV2Controller",
        "x-operation-name": "restoreSeriesVersion",
        "tags": [
          "RecordHistoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A series put back as the version given; its versions, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordVersionPage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "versionId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "RecordHistoryV2Controller.restoreSeriesVersion",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/series/{id}/versions": {
      "get": {
        "x-controller-name": "RecordHistoryV2Controller",
        "x-operation-name": "seriesVersions",
        "tags": [
          "RecordHistoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A series's versions, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordVersionPage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "RecordHistoryV2Controller.seriesVersions",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/series/{id}": {
      "patch": {
        "x-controller-name": "InventoryOrganisationV2Controller",
        "x-operation-name": "updateSeries",
        "tags": [
          "InventoryOrganisationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's series after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventorySeries"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "typeId"
                ],
                "properties": {
                  "titleCS": {
                    "type": "string"
                  },
                  "titleEN": {
                    "type": "string"
                  },
                  "descriptionCS": {
                    "type": "string"
                  },
                  "descriptionEN": {
                    "type": "string"
                  },
                  "typeId": {
                    "type": "number"
                  },
                  "public": {
                    "type": "boolean"
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryOrganisationV2Controller.updateSeries",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "InventoryOrganisationV2Controller",
        "x-operation-name": "deleteSeries",
        "tags": [
          "InventoryOrganisationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's series after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventorySeries"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryOrganisationV2Controller.deleteSeries",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/series": {
      "post": {
        "x-controller-name": "InventoryOrganisationV2Controller",
        "x-operation-name": "createSeries",
        "tags": [
          "InventoryOrganisationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's series after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventorySeries"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "typeId"
                ],
                "properties": {
                  "titleCS": {
                    "type": "string"
                  },
                  "titleEN": {
                    "type": "string"
                  },
                  "descriptionCS": {
                    "type": "string"
                  },
                  "descriptionEN": {
                    "type": "string"
                  },
                  "typeId": {
                    "type": "number"
                  },
                  "public": {
                    "type": "boolean"
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "InventoryOrganisationV2Controller.createSeries",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventorySeries",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's series, with their titles and kinds",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventorySeries"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.inventorySeries",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/tag-groups/{id}/versions/{versionId}/restore": {
      "post": {
        "x-controller-name": "RecordHistoryV2Controller",
        "x-operation-name": "restoreTagGroupVersion",
        "tags": [
          "RecordHistoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A keyword group put back as the version given; its versions, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordVersionPage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "versionId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "RecordHistoryV2Controller.restoreTagGroupVersion",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/tag-groups/{id}/versions": {
      "get": {
        "x-controller-name": "RecordHistoryV2Controller",
        "x-operation-name": "tagGroupVersions",
        "tags": [
          "RecordHistoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A keyword group's versions, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordVersionPage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "RecordHistoryV2Controller.tagGroupVersions",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/tag-groups/{id}": {
      "patch": {
        "x-controller-name": "InventoryOrganisationV2Controller",
        "x-operation-name": "updateTagGroup",
        "tags": [
          "InventoryOrganisationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's tag groups and tags after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryTagGroup"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "titleCS": {
                    "type": "string"
                  },
                  "titleEN": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryOrganisationV2Controller.updateTagGroup",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "InventoryOrganisationV2Controller",
        "x-operation-name": "deleteTagGroup",
        "tags": [
          "InventoryOrganisationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's tag groups and tags after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryTagGroup"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryOrganisationV2Controller.deleteTagGroup",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/tag-groups": {
      "post": {
        "x-controller-name": "InventoryOrganisationV2Controller",
        "x-operation-name": "createTagGroup",
        "tags": [
          "InventoryOrganisationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's tag groups and tags after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryTagGroup"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "titleCS": {
                    "type": "string"
                  },
                  "titleEN": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "InventoryOrganisationV2Controller.createTagGroup",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/tags/import": {
      "post": {
        "x-controller-name": "InventoryOrganisationV2Controller",
        "x-operation-name": "importTags",
        "tags": [
          "InventoryOrganisationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's tag groups and tags after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryTagGroup"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fromCode"
                ],
                "properties": {
                  "fromCode": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "InventoryOrganisationV2Controller.importTags",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/tags/{id}/merge": {
      "post": {
        "x-controller-name": "InventoryOrganisationV2Controller",
        "x-operation-name": "mergeTag",
        "tags": [
          "InventoryOrganisationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's tag groups and tags after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryTagGroup"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "intoId"
                ],
                "properties": {
                  "intoId": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryOrganisationV2Controller.mergeTag",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/tags/{id}/versions/{versionId}/restore": {
      "post": {
        "x-controller-name": "RecordHistoryV2Controller",
        "x-operation-name": "restoreTagVersion",
        "tags": [
          "RecordHistoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A keyword put back as the version given; its versions, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordVersionPage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "versionId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "RecordHistoryV2Controller.restoreTagVersion",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/tags/{id}/versions": {
      "get": {
        "x-controller-name": "RecordHistoryV2Controller",
        "x-operation-name": "tagVersions",
        "tags": [
          "RecordHistoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A keyword's versions, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordVersionPage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "RecordHistoryV2Controller.tagVersions",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/tags/{id}": {
      "patch": {
        "x-controller-name": "InventoryOrganisationV2Controller",
        "x-operation-name": "updateTag",
        "tags": [
          "InventoryOrganisationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's tag groups and tags after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryTagGroup"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "titleCS": {
                    "type": "string"
                  },
                  "titleEN": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryOrganisationV2Controller.updateTag",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "InventoryOrganisationV2Controller",
        "x-operation-name": "deleteTag",
        "tags": [
          "InventoryOrganisationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's tag groups and tags after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryTagGroup"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryOrganisationV2Controller.deleteTag",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/tags": {
      "post": {
        "x-controller-name": "InventoryOrganisationV2Controller",
        "x-operation-name": "createTag",
        "tags": [
          "InventoryOrganisationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's tag groups and tags after the change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryTagGroup"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "string"
                  },
                  "parentId": {
                    "type": "string",
                    "nullable": true
                  },
                  "titleCS": {
                    "type": "string"
                  },
                  "titleEN": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "InventoryOrganisationV2Controller.createTag",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryTags",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The inventory's tag groups, each with its tags",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryTagGroup"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.inventoryTags",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/users/{id}": {
      "patch": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "changeInventoryUserRole",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The assignment after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryAssignment"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "inventoryRoleId"
                ],
                "properties": {
                  "inventoryRoleId": {
                    "type": "number"
                  }
                }
              }
            }
          },
          "x-parameter-index": 2
        },
        "operationId": "InventoryV2Controller.changeInventoryUserRole",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "removeInventoryUser",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Account removed from the inventory"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.removeInventoryUser",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}/users": {
      "post": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "addInventoryUser",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The assignment that was made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryAssignment"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "inventoryRoleId"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "minLength": 1
                  },
                  "inventoryRoleId": {
                    "type": "number"
                  }
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "InventoryV2Controller.addInventoryUser",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "inventoryUsers",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The accounts assigned to the inventory, with their roles",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryAssignment"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.inventoryUsers",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories/{code}": {
      "get": {
        "x-controller-name": "InventoryV2Controller",
        "x-operation-name": "findByCode",
        "tags": [
          "InventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One inventory, with its counts by kind of item",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryDetail"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InventoryV2Controller.findByCode",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventories": {
      "post": {
        "x-controller-name": "OwnInventoryV2Controller",
        "x-operation-name": "foundInventory",
        "tags": [
          "OwnInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The caller’s personal inventory, founded; they own it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "inventoryCode"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "inventoryCode": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed to found this kind"
          },
          "409": {
            "description": "Has one already"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "kind",
                  "mainTitle"
                ],
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "personal",
                      "author"
                    ]
                  },
                  "mainTitle": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                }
              }
            }
          }
        },
        "operationId": "OwnInventoryV2Controller.foundInventory",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/inventory-types": {
      "get": {
        "x-controller-name": "OwnInventoryV2Controller",
        "x-operation-name": "inventoryTypes",
        "tags": [
          "OwnInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The kinds of inventory",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InventoryType"
                  }
                }
              }
            }
          }
        },
        "operationId": "OwnInventoryV2Controller.inventoryTypes",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/item-reference": {
      "get": {
        "x-controller-name": "ItemV2Controller",
        "x-operation-name": "itemReference",
        "tags": [
          "ItemV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The fixed lists the work form picks from",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemReference"
                }
              }
            }
          }
        },
        "operationId": "ItemV2Controller.itemReference",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/me/invitations/{id}/accept": {
      "post": {
        "x-controller-name": "InvitationV2Controller",
        "x-operation-name": "accept",
        "tags": [
          "InvitationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Accepted: the inventory to open",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "inventoryCode"
                  ],
                  "properties": {
                    "inventoryCode": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InvitationV2Controller.accept",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/me/invitations/{id}/decline": {
      "post": {
        "x-controller-name": "InvitationV2Controller",
        "x-operation-name": "decline",
        "tags": [
          "InvitationV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Declined"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InvitationV2Controller.decline",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/me/invitations": {
      "get": {
        "x-controller-name": "InvitationV2Controller",
        "x-operation-name": "mine",
        "tags": [
          "InvitationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The invitations waiting for the caller",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MyInvitationRow"
                  }
                }
              }
            }
          }
        },
        "operationId": "InvitationV2Controller.mine",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/me/invite-code": {
      "post": {
        "x-controller-name": "InvitationV2Controller",
        "x-operation-name": "renewInviteCode",
        "tags": [
          "InvitationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A new code; the old one stops working",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "code"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "InvitationV2Controller.renewInviteCode",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InvitationV2Controller",
        "x-operation-name": "inviteCode",
        "tags": [
          "InvitationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The code the caller hands out to be invited",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "code"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "InvitationV2Controller.inviteCode",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/me/password": {
      "post": {
        "x-controller-name": "PasswordV2Controller",
        "x-operation-name": "changeOwnPassword",
        "tags": [
          "PasswordV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The password is changed and every other session ended; this one continues with the token returned",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "token"
                  ],
                  "properties": {
                    "token": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many wrong current passwords; the Retry-After header says in how many seconds to try again"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "currentPassword",
                  "newPassword"
                ],
                "properties": {
                  "currentPassword": {
                    "type": "string",
                    "maxLength": 72
                  },
                  "newPassword": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 72
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "cs",
                      "en"
                    ]
                  }
                }
              }
            }
          }
        },
        "operationId": "PasswordV2Controller.changeOwnPassword",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/me/password-reset": {
      "post": {
        "x-controller-name": "PasswordV2Controller",
        "x-operation-name": "requestOwnReset",
        "tags": [
          "PasswordV2Controller"
        ],
        "responses": {
          "204": {
            "description": "The link is on its way to the account’s address"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "lang": {
                    "type": "string",
                    "enum": [
                      "cs",
                      "en"
                    ]
                  }
                }
              }
            }
          }
        },
        "operationId": "PasswordV2Controller.requestOwnReset",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/me/personal": {
      "get": {
        "x-controller-name": "OwnInventoryV2Controller",
        "x-operation-name": "myPersonal",
        "tags": [
          "OwnInventoryV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Where the caller stands with each kind of personal inventory",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonalStatuses"
                }
              }
            }
          }
        },
        "operationId": "OwnInventoryV2Controller.myPersonal",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/me/sessions/end": {
      "post": {
        "x-controller-name": "PasswordV2Controller",
        "x-operation-name": "endOtherSessions",
        "tags": [
          "PasswordV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Every session of the account is ended; this one continues with the token returned",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "token"
                  ],
                  "properties": {
                    "token": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "PasswordV2Controller.endOtherSessions",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/me": {
      "get": {
        "x-controller-name": "AuthV2Controller",
        "x-operation-name": "whoAmI",
        "tags": [
          "AuthV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Return current user info",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserInfo"
                }
              }
            }
          }
        },
        "operationId": "AuthV2Controller.whoAmI",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/notifications/read-all": {
      "post": {
        "x-controller-name": "InboxV2Controller",
        "x-operation-name": "readAll",
        "tags": [
          "InboxV2Controller"
        ],
        "responses": {
          "204": {
            "description": "All read"
          }
        },
        "operationId": "InboxV2Controller.readAll",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/notifications/settings": {
      "put": {
        "x-controller-name": "InboxV2Controller",
        "x-operation-name": "saveSettings",
        "tags": [
          "InboxV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The settings as they are now. A type whose e-mail cannot be turned off answers 422.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationSettings"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "settings"
                ],
                "properties": {
                  "settings": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "type",
                        "email"
                      ],
                      "properties": {
                        "type": {
                          "type": "string"
                        },
                        "email": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "InboxV2Controller.saveSettings",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "InboxV2Controller",
        "x-operation-name": "settings",
        "tags": [
          "InboxV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Every notification type and whether its e-mail goes out",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationSettings"
                }
              }
            }
          }
        },
        "operationId": "InboxV2Controller.settings",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/notifications/unread-count": {
      "get": {
        "x-controller-name": "InboxV2Controller",
        "x-operation-name": "unreadCount",
        "tags": [
          "InboxV2Controller"
        ],
        "responses": {
          "200": {
            "description": "How many of the caller’s notifications are unread",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "count"
                  ],
                  "properties": {
                    "count": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "InboxV2Controller.unreadCount",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/notifications/{id}/read": {
      "post": {
        "x-controller-name": "InboxV2Controller",
        "x-operation-name": "read",
        "tags": [
          "InboxV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Read"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InboxV2Controller.read",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/notifications/{id}/unread": {
      "post": {
        "x-controller-name": "InboxV2Controller",
        "x-operation-name": "unread",
        "tags": [
          "InboxV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Unread again"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InboxV2Controller.unread",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/notifications/{id}": {
      "delete": {
        "x-controller-name": "InboxV2Controller",
        "x-operation-name": "hide",
        "tags": [
          "InboxV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Hidden; the record stays"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "InboxV2Controller.hide",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/notifications": {
      "get": {
        "x-controller-name": "InboxV2Controller",
        "x-operation-name": "list",
        "tags": [
          "InboxV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The caller’s notifications, newest first, with the totals for paging",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationPage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "unread",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "operationId": "InboxV2Controller.list",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/organisation-reference": {
      "get": {
        "x-controller-name": "InventoryOrganisationV2Controller",
        "x-operation-name": "organisationReference",
        "tags": [
          "InventoryOrganisationV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The kinds of series and of location",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganisationReference"
                }
              }
            }
          }
        },
        "operationId": "InventoryOrganisationV2Controller.organisationReference",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/preferences/tables": {
      "post": {
        "x-controller-name": "PreferencesV2Controller",
        "x-operation-name": "saveTables",
        "tags": [
          "PreferencesV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Stored"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "entries"
                ],
                "properties": {
                  "entries": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "tableKey",
                        "viewport",
                        "settings"
                      ],
                      "properties": {
                        "tableKey": {
                          "type": "string"
                        },
                        "inventoryCode": {
                          "type": "string"
                        },
                        "viewport": {
                          "type": "string",
                          "enum": [
                            "desktop",
                            "mobile"
                          ]
                        },
                        "settings": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "PreferencesV2Controller.saveTables",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "get": {
        "x-controller-name": "PreferencesV2Controller",
        "x-operation-name": "myTables",
        "tags": [
          "PreferencesV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Every table setting stored for the calling account",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "entries"
                  ],
                  "properties": {
                    "entries": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "tableKey",
                          "viewport",
                          "settings"
                        ],
                        "properties": {
                          "tableKey": {
                            "type": "string"
                          },
                          "inventoryCode": {
                            "type": "string"
                          },
                          "viewport": {
                            "type": "string",
                            "enum": [
                              "desktop",
                              "mobile"
                            ]
                          },
                          "settings": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "PreferencesV2Controller.myTables",
        "security": [
          {
            "jwt": []
          }
        ]
      },
      "delete": {
        "x-controller-name": "PreferencesV2Controller",
        "x-operation-name": "forgetTables",
        "tags": [
          "PreferencesV2Controller"
        ],
        "responses": {
          "204": {
            "description": "Forgotten"
          }
        },
        "parameters": [
          {
            "name": "tableKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "inventoryCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "viewport",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "PreferencesV2Controller.forgetTables",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    },
    "/v2/public/home": {
      "get": {
        "x-controller-name": "PublicWebV2Controller",
        "x-operation-name": "home",
        "tags": [
          "PublicWebV2Controller"
        ],
        "responses": {
          "200": {
            "description": "The front page: slides, cards, the latest posts and releases, the numbers",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicHome"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "PublicWebV2Controller.home",
        "security": []
      }
    },
    "/v2/public/posts/{slug}": {
      "get": {
        "x-controller-name": "PublicWebV2Controller",
        "x-operation-name": "publicPost",
        "tags": [
          "PublicWebV2Controller"
        ],
        "responses": {
          "200": {
            "description": "One published post",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPost"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "lang",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "PublicWebV2Controller.publicPost",
        "security": []
      }
    },
    "/v2/public/posts": {
      "get": {
        "x-controller-name": "PublicWebV2Controller",
        "x-operation-name": "publicPosts",
        "tags": [
          "PublicWebV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Published posts, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPostPage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "PublicWebV2Controller.publicPosts",
        "security": []
      }
    },
    "/v2/public/releases": {
      "get": {
        "x-controller-name": "PublicWebV2Controller",
        "x-operation-name": "publicReleases",
        "tags": [
          "PublicWebV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Published releases, newest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicReleasePage"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "PublicWebV2Controller.publicReleases",
        "security": []
      }
    },
    "/v2/public/stats": {
      "get": {
        "x-controller-name": "PublicWebV2Controller",
        "x-operation-name": "publicStats",
        "tags": [
          "PublicWebV2Controller"
        ],
        "responses": {
          "200": {
            "description": "Artemis in numbers",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicStats"
                }
              }
            }
          }
        },
        "operationId": "PublicWebV2Controller.publicStats",
        "security": []
      }
    },
    "/v2/search": {
      "get": {
        "x-controller-name": "SearchV2Controller",
        "x-operation-name": "search",
        "tags": [
          "SearchV2Controller"
        ],
        "responses": {
          "200": {
            "description": "A few of the best hits of each kind, kind by kind",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchHitRow"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "inventory",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "SearchV2Controller.search",
        "security": [
          {
            "jwt": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.art.uat.bckpp.com"
    }
  ],
  "components": {
    "schemas": {
      "WebSlideRow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "sortOrder",
          "imageKey",
          "titleCS",
          "titleEN",
          "textCS",
          "textEN",
          "linkUrl",
          "linkLabelCS",
          "linkLabelEN",
          "published",
          "updatedAt",
          "updatedBy"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "sortOrder": {
            "type": "integer"
          },
          "imageKey": {
            "type": "string",
            "nullable": true
          },
          "imageUrl": {
            "type": "string"
          },
          "titleCS": {
            "type": "string",
            "nullable": true
          },
          "titleEN": {
            "type": "string",
            "nullable": true
          },
          "textCS": {
            "type": "string",
            "nullable": true
          },
          "textEN": {
            "type": "string",
            "nullable": true
          },
          "linkUrl": {
            "type": "string",
            "nullable": true
          },
          "linkLabelCS": {
            "type": "string",
            "nullable": true
          },
          "linkLabelEN": {
            "type": "string",
            "nullable": true
          },
          "published": {
            "type": "boolean"
          },
          "updatedAt": {
            "type": "string",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "WebFeatureRow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "sortOrder",
          "icon",
          "titleCS",
          "titleEN",
          "textCS",
          "textEN",
          "published",
          "updatedAt",
          "updatedBy"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "sortOrder": {
            "type": "integer"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "titleCS": {
            "type": "string",
            "nullable": true
          },
          "titleEN": {
            "type": "string",
            "nullable": true
          },
          "textCS": {
            "type": "string",
            "nullable": true
          },
          "textEN": {
            "type": "string",
            "nullable": true
          },
          "published": {
            "type": "boolean"
          },
          "updatedAt": {
            "type": "string",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "WebPostRow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "slug",
          "titleCS",
          "titleEN",
          "perexCS",
          "perexEN",
          "bodyCS",
          "bodyEN",
          "coverKey",
          "publishedAt",
          "createdAt",
          "updatedAt",
          "updatedBy"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "titleCS": {
            "type": "string",
            "nullable": true
          },
          "titleEN": {
            "type": "string",
            "nullable": true
          },
          "perexCS": {
            "type": "string",
            "nullable": true
          },
          "perexEN": {
            "type": "string",
            "nullable": true
          },
          "bodyCS": {
            "type": "string",
            "nullable": true
          },
          "bodyEN": {
            "type": "string",
            "nullable": true
          },
          "coverKey": {
            "type": "string",
            "nullable": true
          },
          "coverUrl": {
            "type": "string"
          },
          "publishedAt": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "WebReleaseRow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "version",
          "releasedAt",
          "titleCS",
          "titleEN",
          "bodyCS",
          "bodyEN",
          "published",
          "updatedAt",
          "updatedBy"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "releasedAt": {
            "type": "string",
            "nullable": true
          },
          "titleCS": {
            "type": "string",
            "nullable": true
          },
          "titleEN": {
            "type": "string",
            "nullable": true
          },
          "bodyCS": {
            "type": "string",
            "nullable": true
          },
          "bodyEN": {
            "type": "string",
            "nullable": true
          },
          "published": {
            "type": "boolean"
          },
          "updatedAt": {
            "type": "string",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "TwoFactorVerificationResult": {
        "title": "TwoFactorVerificationResult",
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          }
        },
        "required": [
          "token"
        ],
        "additionalProperties": false
      },
      "TwoFactorVerifyRequest": {
        "title": "TwoFactorVerifyRequest",
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "recoveryCode": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "TwoFactorSetupResult": {
        "title": "TwoFactorSetupResult",
        "type": "object",
        "properties": {
          "otpauthUrl": {
            "type": "string"
          },
          "qrDataUrl": {
            "type": "string"
          }
        },
        "required": [
          "otpauthUrl",
          "qrDataUrl"
        ],
        "additionalProperties": false
      },
      "TwoFactorConfirmResult": {
        "title": "TwoFactorConfirmResult",
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "recoveryCodes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "success",
          "recoveryCodes"
        ],
        "additionalProperties": false
      },
      "TwoFactorConfirmRequest": {
        "title": "TwoFactorConfirmRequest",
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          }
        },
        "required": [
          "code"
        ],
        "additionalProperties": false
      },
      "TwoFactorDisableResult": {
        "title": "TwoFactorDisableResult",
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ],
        "additionalProperties": false
      },
      "TwoFactorRequiredConfirmResult": {
        "title": "TwoFactorRequiredConfirmResult",
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "token": {
            "type": "string"
          },
          "recoveryCodes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "success",
          "token",
          "recoveryCodes"
        ],
        "additionalProperties": false
      },
      "AppSettingsRow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "registrationOpen"
        ],
        "properties": {
          "registrationOpen": {
            "type": "boolean"
          }
        }
      },
      "SearchHitRow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind",
          "id",
          "title",
          "subtitle",
          "inventoryCode"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "item",
              "inventory",
              "author",
              "contact",
              "exhibition",
              "auction",
              "publication",
              "tag",
              "series",
              "location"
            ]
          },
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "subtitle": {
            "type": "string",
            "nullable": true
          },
          "inventoryCode": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "RecordFieldChange": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "key",
          "format",
          "before",
          "after"
        ],
        "properties": {
          "key": {
            "type": "string"
          },
          "locale": {
            "type": "string",
            "enum": [
              "cs",
              "en"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "text",
              "html",
              "boolean",
              "number"
            ]
          },
          "before": {
            "nullable": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          },
          "after": {
            "nullable": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              }
            ]
          }
        }
      },
      "RecordVersionPage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "more"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "createdAt",
                "action",
                "user",
                "baseline",
                "restoredFrom",
                "changes"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "create",
                    "update",
                    "delete"
                  ],
                  "nullable": true
                },
                "user": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "name"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "nullable": true
                },
                "baseline": {
                  "type": "boolean"
                },
                "restoredFrom": {
                  "type": "string",
                  "nullable": true
                },
                "changes": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RecordFieldChange"
                  },
                  "nullable": true
                }
              }
            }
          },
          "more": {
            "type": "boolean"
          }
        }
      },
      "PublicSlide": {
        "title": "PublicSlide",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "imageUrl": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "text": {
            "type": "string",
            "nullable": true
          },
          "linkUrl": {
            "type": "string",
            "nullable": true
          },
          "linkLabel": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "PublicFeature": {
        "title": "PublicFeature",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "icon": {
            "type": "string",
            "enum": [
              "library-big",
              "image",
              "users",
              "search",
              "file-down",
              "history",
              "shield-check",
              "languages",
              "book-open",
              "gavel",
              "map-pin",
              "tags"
            ],
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "text": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "PublicPost": {
        "title": "PublicPost",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "perex": {
            "type": "string",
            "nullable": true
          },
          "body": {
            "type": "string",
            "nullable": true
          },
          "coverUrl": {
            "type": "string",
            "nullable": true
          },
          "publishedAt": {
            "type": "string",
            "nullable": true,
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "slug"
        ],
        "additionalProperties": false
      },
      "PublicRelease": {
        "title": "PublicRelease",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "releasedAt": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "body": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "version"
        ],
        "additionalProperties": false
      },
      "PublicStats": {
        "title": "PublicStats",
        "type": "object",
        "properties": {
          "inventories": {
            "type": "number"
          },
          "works": {
            "type": "number"
          },
          "authors": {
            "type": "number"
          },
          "pictures": {
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "PublicHome": {
        "title": "PublicHome",
        "type": "object",
        "properties": {
          "slides": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicSlide"
            }
          },
          "features": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicFeature"
            }
          },
          "posts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPost"
            }
          },
          "releases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicRelease"
            }
          },
          "stats": {
            "$ref": "#/components/schemas/PublicStats"
          }
        },
        "required": [
          "slides",
          "features",
          "posts",
          "releases",
          "stats"
        ],
        "additionalProperties": false
      },
      "PublicPostPage": {
        "title": "PublicPostPage",
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPost"
            }
          },
          "total": {
            "type": "number"
          }
        },
        "required": [
          "items",
          "total"
        ],
        "additionalProperties": false
      },
      "PublicReleasePage": {
        "title": "PublicReleasePage",
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicRelease"
            }
          },
          "total": {
            "type": "number"
          }
        },
        "required": [
          "items",
          "total"
        ],
        "additionalProperties": false
      },
      "PersonalStatusRow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind",
          "allowed",
          "inventoryId",
          "inventoryCode",
          "inventoryTitle",
          "needsAuthor"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "personal",
              "author"
            ]
          },
          "allowed": {
            "type": "boolean"
          },
          "inventoryId": {
            "type": "string",
            "nullable": true
          },
          "inventoryCode": {
            "type": "string",
            "nullable": true
          },
          "inventoryTitle": {
            "type": "string",
            "nullable": true
          },
          "needsAuthor": {
            "type": "boolean"
          }
        }
      },
      "PersonalStatuses": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kinds",
          "author"
        ],
        "properties": {
          "kinds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PersonalStatusRow"
            }
          },
          "author": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "nullable": true
          }
        }
      },
      "InventoryType": {
        "title": "InventoryType",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "code": {
            "type": "string"
          },
          "titleCS": {
            "type": "string"
          },
          "titleEN": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "titleCS",
          "titleEN"
        ],
        "additionalProperties": false
      },
      "ItemTranslation": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "localeId"
        ],
        "properties": {
          "localeId": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "dating": {
            "type": "string",
            "nullable": true
          },
          "technique": {
            "type": "string",
            "nullable": true
          },
          "substrate": {
            "type": "string",
            "nullable": true
          },
          "notesPublic": {
            "type": "string",
            "nullable": true
          },
          "isOriginalTitle": {
            "type": "integer",
            "nullable": true
          },
          "public": {
            "type": "integer",
            "nullable": true
          }
        }
      },
      "ItemCounts": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "owners",
          "auctions",
          "exhibitions",
          "publications",
          "pictures",
          "documents",
          "children"
        ],
        "properties": {
          "owners": {
            "type": "integer"
          },
          "auctions": {
            "type": "integer"
          },
          "exhibitions": {
            "type": "integer"
          },
          "publications": {
            "type": "integer"
          },
          "pictures": {
            "type": "integer"
          },
          "documents": {
            "type": "integer"
          },
          "children": {
            "type": "integer"
          }
        }
      },
      "ItemTitle": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "localeId",
          "title",
          "order"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "localeId": {
            "type": "integer",
            "nullable": true
          },
          "title": {
            "type": "string"
          },
          "order": {
            "type": "integer",
            "nullable": true
          }
        }
      },
      "ItemSignature": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "realText",
          "commentCS",
          "commentEN",
          "order",
          "signatureTypeId",
          "horizontal",
          "vertical",
          "frontback",
          "other",
          "signatureTypeCode",
          "signatureTypeName"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "realText": {
            "type": "string",
            "nullable": true
          },
          "commentCS": {
            "type": "string",
            "nullable": true
          },
          "commentEN": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "nullable": true
          },
          "signatureTypeId": {
            "type": "integer",
            "nullable": true
          },
          "horizontal": {
            "type": "integer",
            "nullable": true
          },
          "vertical": {
            "type": "integer",
            "nullable": true
          },
          "frontback": {
            "type": "integer",
            "nullable": true
          },
          "other": {
            "type": "integer",
            "nullable": true
          },
          "signatureTypeCode": {
            "type": "string",
            "nullable": true
          },
          "signatureTypeName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ItemMarking": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "realText",
          "commentCS",
          "commentEN",
          "order",
          "isPublic",
          "markingTypeId",
          "horizontal",
          "vertical",
          "frontback",
          "other",
          "markingTypeCode",
          "markingTypeName"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "realText": {
            "type": "string",
            "nullable": true
          },
          "commentCS": {
            "type": "string",
            "nullable": true
          },
          "commentEN": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "nullable": true
          },
          "isPublic": {
            "type": "integer"
          },
          "markingTypeId": {
            "type": "integer",
            "nullable": true
          },
          "horizontal": {
            "type": "integer",
            "nullable": true
          },
          "vertical": {
            "type": "integer",
            "nullable": true
          },
          "frontback": {
            "type": "integer",
            "nullable": true
          },
          "other": {
            "type": "integer",
            "nullable": true
          },
          "markingTypeCode": {
            "type": "string",
            "nullable": true
          },
          "markingTypeName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ItemAudit": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "date",
          "comment",
          "contactId",
          "contactTitle",
          "contacts"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "contactId": {
            "type": "string"
          },
          "contactTitle": {
            "type": "string",
            "nullable": true
          },
          "contacts": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "contactId",
                "contactTitle"
              ],
              "properties": {
                "contactId": {
                  "type": "string"
                },
                "contactTitle": {
                  "type": "string",
                  "nullable": true
                }
              }
            }
          }
        }
      },
      "ItemSeen": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "contactId",
          "contactTitle",
          "contacts",
          "date",
          "comment"
        ],
        "properties": {
          "id": {
            "type": "integer"
          },
          "contactId": {
            "type": "string"
          },
          "contactTitle": {
            "type": "string",
            "nullable": true
          },
          "contacts": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "contactId",
                "contactTitle"
              ],
              "properties": {
                "contactId": {
                  "type": "string"
                },
                "contactTitle": {
                  "type": "string",
                  "nullable": true
                }
              }
            }
          },
          "date": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ItemRelated": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "targetItemId",
          "relationTypeId",
          "isPublic",
          "relationTitleCS",
          "relationTitleEN",
          "relationPairId",
          "targetCode",
          "targetDisputationShortcut",
          "targetTitle",
          "targetPublic",
          "targetAuthors",
          "targetPicture",
          "relationMayBePublic"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "targetItemId": {
            "type": "string"
          },
          "relationTypeId": {
            "type": "string"
          },
          "isPublic": {
            "type": "integer"
          },
          "relationTitleCS": {
            "type": "string",
            "nullable": true
          },
          "relationTitleEN": {
            "type": "string",
            "nullable": true
          },
          "relationPairId": {
            "type": "string",
            "nullable": true
          },
          "targetCode": {
            "type": "string",
            "nullable": true
          },
          "targetDisputationShortcut": {
            "type": "string",
            "nullable": true
          },
          "targetTitle": {
            "type": "string",
            "nullable": true
          },
          "targetPublic": {
            "type": "integer",
            "nullable": true
          },
          "targetAuthors": {
            "type": "string",
            "nullable": true
          },
          "targetPicture": {
            "type": "string"
          },
          "relationMayBePublic": {
            "type": "integer",
            "nullable": true
          }
        }
      },
      "ItemKeyPublication": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "page",
          "itemInPublicationId",
          "publicationTitle"
        ],
        "properties": {
          "page": {
            "type": "string",
            "nullable": true
          },
          "itemInPublicationId": {
            "type": "string",
            "nullable": true
          },
          "publicationTitle": {
            "type": "string",
            "nullable": true
          }
        },
        "nullable": true
      },
      "ItemDetail": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "originalTitle",
          "public",
          "published",
          "datingOrder",
          "chronologicalOrder",
          "printsCount",
          "dimensionHeight",
          "dimensionWidth",
          "dimensionDepth",
          "dimensionAltHeight",
          "dimensionAltWidth",
          "dimensionAltDepth",
          "backsideNumber",
          "backsideText",
          "inventoryId",
          "inventoryCode",
          "inventoryNumber",
          "notesInternal",
          "estate",
          "permissionReproduce",
          "printQuality",
          "seen",
          "completed",
          "translated",
          "hasOtherSide",
          "canvasId",
          "itemTypeId",
          "locationId",
          "itemDisputationTypeId",
          "parentId",
          "parentOrder",
          "removalType",
          "removedAt",
          "removalNote",
          "createdAt",
          "createdBy",
          "updatedAt",
          "updatedBy",
          "locationTitle",
          "itemTypeCode",
          "itemTypeName",
          "disputationCode",
          "disputationShortcut",
          "parentCode",
          "parentTitle",
          "translations",
          "authors",
          "series",
          "tags",
          "extras",
          "titles",
          "signatures",
          "markings",
          "audits",
          "seenBy",
          "relatedItems",
          "counts",
          "keyPublication",
          "picture"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "originalTitle": {
            "type": "string",
            "nullable": true
          },
          "public": {
            "type": "integer",
            "nullable": true
          },
          "published": {
            "type": "integer",
            "nullable": true
          },
          "datingOrder": {
            "type": "integer",
            "nullable": true
          },
          "chronologicalOrder": {
            "type": "integer",
            "nullable": true
          },
          "printsCount": {
            "type": "integer",
            "nullable": true
          },
          "dimensionHeight": {
            "type": "number",
            "nullable": true
          },
          "dimensionWidth": {
            "type": "number",
            "nullable": true
          },
          "dimensionDepth": {
            "type": "number",
            "nullable": true
          },
          "dimensionAltHeight": {
            "type": "number",
            "nullable": true
          },
          "dimensionAltWidth": {
            "type": "number",
            "nullable": true
          },
          "dimensionAltDepth": {
            "type": "number",
            "nullable": true
          },
          "backsideNumber": {
            "type": "string",
            "nullable": true
          },
          "backsideText": {
            "type": "string",
            "nullable": true
          },
          "inventoryId": {
            "type": "string",
            "nullable": true
          },
          "inventoryCode": {
            "type": "string",
            "nullable": true
          },
          "inventoryNumber": {
            "type": "integer",
            "nullable": true
          },
          "notesInternal": {
            "type": "string",
            "nullable": true
          },
          "estate": {
            "type": "integer",
            "nullable": true
          },
          "permissionReproduce": {
            "type": "integer",
            "nullable": true
          },
          "printQuality": {
            "type": "integer",
            "nullable": true
          },
          "seen": {
            "type": "integer",
            "nullable": true
          },
          "completed": {
            "type": "integer",
            "nullable": true
          },
          "translated": {
            "type": "integer",
            "nullable": true
          },
          "hasOtherSide": {
            "type": "integer",
            "nullable": true
          },
          "canvasId": {
            "type": "integer",
            "nullable": true
          },
          "itemTypeId": {
            "type": "integer",
            "nullable": true
          },
          "locationId": {
            "type": "string",
            "nullable": true
          },
          "itemDisputationTypeId": {
            "type": "integer",
            "nullable": true
          },
          "parentId": {
            "type": "string",
            "nullable": true
          },
          "parentOrder": {
            "type": "integer",
            "nullable": true
          },
          "removalType": {
            "type": "string",
            "nullable": true
          },
          "removedAt": {
            "type": "string",
            "nullable": true
          },
          "removalNote": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          },
          "locationTitle": {
            "type": "string",
            "nullable": true
          },
          "itemTypeCode": {
            "type": "string",
            "nullable": true
          },
          "itemTypeName": {
            "type": "string",
            "nullable": true
          },
          "disputationCode": {
            "type": "string",
            "nullable": true
          },
          "disputationShortcut": {
            "type": "string",
            "nullable": true
          },
          "parentCode": {
            "type": "string",
            "nullable": true
          },
          "parentTitle": {
            "type": "string",
            "nullable": true
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemTranslation"
            }
          },
          "authors": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "nickname"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "nickname": {
                  "type": "string"
                }
              }
            }
          },
          "series": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "title"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string",
                  "nullable": true
                }
              }
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "titleCS",
                "titleEN",
                "groupId",
                "groupTitleCS"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "titleCS": {
                  "type": "string"
                },
                "titleEN": {
                  "type": "string"
                },
                "groupId": {
                  "type": "string",
                  "nullable": true
                },
                "groupTitleCS": {
                  "type": "string",
                  "nullable": true
                }
              }
            }
          },
          "extras": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemExtraOption"
            }
          },
          "titles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemTitle"
            }
          },
          "signatures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemSignature"
            }
          },
          "markings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemMarking"
            }
          },
          "audits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemAudit"
            }
          },
          "seenBy": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemSeen"
            }
          },
          "relatedItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemRelated"
            }
          },
          "counts": {
            "$ref": "#/components/schemas/ItemCounts"
          },
          "keyPublication": {
            "$ref": "#/components/schemas/ItemKeyPublication"
          },
          "picture": {
            "type": "string"
          }
        }
      },
      "ItemOwner": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "title",
          "yearPurchase",
          "yearPurchaseText",
          "notesPublicCS",
          "notesPublicEN",
          "notesInternal",
          "contactId",
          "contactTypeId",
          "ownerTypeId",
          "ownerItemId",
          "contactName",
          "ownerTypeTitle",
          "ownerTypeTitleEN",
          "recordInventoryId"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "yearPurchase": {
            "type": "integer",
            "nullable": true
          },
          "yearPurchaseText": {
            "type": "string",
            "nullable": true
          },
          "notesPublicCS": {
            "type": "string",
            "nullable": true
          },
          "notesPublicEN": {
            "type": "string",
            "nullable": true
          },
          "notesInternal": {
            "type": "string",
            "nullable": true
          },
          "contactId": {
            "type": "string",
            "nullable": true
          },
          "contactTypeId": {
            "type": "integer",
            "nullable": true
          },
          "ownerTypeId": {
            "type": "integer",
            "nullable": true
          },
          "ownerItemId": {
            "type": "string",
            "nullable": true
          },
          "contactName": {
            "type": "string",
            "nullable": true
          },
          "ownerTypeTitle": {
            "type": "string",
            "nullable": true
          },
          "ownerTypeTitleEN": {
            "type": "string",
            "nullable": true
          },
          "recordInventoryId": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ItemSale": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "typeId",
          "catalogNumber",
          "priceStarting",
          "priceHammer",
          "priceFinal",
          "priceEstimationLow",
          "priceEstimationHigh",
          "currencyId",
          "wasSold",
          "yearSold",
          "isPublic",
          "notesInternal",
          "auctionId",
          "sellerId",
          "auctionTitle",
          "auctionYear",
          "recordInventoryId",
          "sellerName",
          "descriptionCS",
          "descriptionEN",
          "datingCS",
          "datingEN"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "typeId": {
            "type": "integer",
            "nullable": true
          },
          "catalogNumber": {
            "type": "integer",
            "nullable": true
          },
          "priceStarting": {
            "type": "integer",
            "nullable": true
          },
          "priceHammer": {
            "type": "integer",
            "nullable": true
          },
          "priceFinal": {
            "type": "integer",
            "nullable": true
          },
          "priceEstimationLow": {
            "type": "integer",
            "nullable": true
          },
          "priceEstimationHigh": {
            "type": "integer",
            "nullable": true
          },
          "currencyId": {
            "type": "string",
            "nullable": true
          },
          "wasSold": {
            "type": "integer",
            "nullable": true
          },
          "yearSold": {
            "type": "integer",
            "nullable": true
          },
          "isPublic": {
            "type": "integer"
          },
          "notesInternal": {
            "type": "string",
            "nullable": true
          },
          "auctionId": {
            "type": "string",
            "nullable": true
          },
          "sellerId": {
            "type": "string",
            "nullable": true
          },
          "auctionTitle": {
            "type": "string",
            "nullable": true
          },
          "auctionYear": {
            "type": "integer",
            "nullable": true
          },
          "recordInventoryId": {
            "type": "string",
            "nullable": true
          },
          "sellerName": {
            "type": "string",
            "nullable": true
          },
          "descriptionCS": {
            "type": "string",
            "nullable": true
          },
          "descriptionEN": {
            "type": "string",
            "nullable": true
          },
          "datingCS": {
            "type": "string",
            "nullable": true
          },
          "datingEN": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ItemExhibition": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "catalogNumber",
          "notesInternal",
          "exhibitionId",
          "exhibitionTitle",
          "exhibitionYear",
          "recordInventoryId",
          "descriptionCS",
          "descriptionEN"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "catalogNumber": {
            "type": "integer",
            "nullable": true
          },
          "notesInternal": {
            "type": "string",
            "nullable": true
          },
          "exhibitionId": {
            "type": "string",
            "nullable": true
          },
          "exhibitionTitle": {
            "type": "string",
            "nullable": true
          },
          "exhibitionYear": {
            "type": "integer",
            "nullable": true
          },
          "recordInventoryId": {
            "type": "string",
            "nullable": true
          },
          "descriptionCS": {
            "type": "string",
            "nullable": true
          },
          "descriptionEN": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ItemPublication": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "page",
          "notesInternal",
          "publicationId",
          "itemInPublicationId",
          "publicationTitle",
          "publicationYear",
          "publicationAuthor",
          "recordInventoryId",
          "descriptionCS",
          "descriptionEN"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "page": {
            "type": "string",
            "nullable": true
          },
          "notesInternal": {
            "type": "string",
            "nullable": true
          },
          "publicationId": {
            "type": "string",
            "nullable": true
          },
          "itemInPublicationId": {
            "type": "string",
            "nullable": true
          },
          "publicationTitle": {
            "type": "string",
            "nullable": true
          },
          "publicationYear": {
            "type": "integer",
            "nullable": true
          },
          "publicationAuthor": {
            "type": "string",
            "nullable": true
          },
          "recordInventoryId": {
            "type": "string",
            "nullable": true
          },
          "descriptionCS": {
            "type": "string",
            "nullable": true
          },
          "descriptionEN": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ItemFile": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "filename",
          "ext",
          "originalname",
          "mimetype",
          "isPublic",
          "type",
          "order",
          "createdAt",
          "authorId",
          "title",
          "titleEN",
          "description",
          "descriptionEN",
          "copyright",
          "copyrightEN",
          "notesInternal",
          "documentTypeId",
          "authorName"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "ext": {
            "type": "string"
          },
          "originalname": {
            "type": "string"
          },
          "mimetype": {
            "type": "string"
          },
          "isPublic": {
            "type": "integer"
          },
          "type": {
            "type": "integer"
          },
          "order": {
            "type": "integer",
            "nullable": true
          },
          "createdAt": {
            "type": "string"
          },
          "authorId": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "titleEN": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "descriptionEN": {
            "type": "string",
            "nullable": true
          },
          "copyright": {
            "type": "string",
            "nullable": true
          },
          "copyrightEN": {
            "type": "string",
            "nullable": true
          },
          "notesInternal": {
            "type": "string",
            "nullable": true
          },
          "documentTypeId": {
            "type": "integer",
            "nullable": true
          },
          "authorName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ItemChild": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "inventoryCode",
          "disputationShortcut",
          "originalTitle",
          "parentOrder",
          "itemTypeId",
          "public"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "inventoryCode": {
            "type": "string",
            "nullable": true
          },
          "disputationShortcut": {
            "type": "string",
            "nullable": true
          },
          "originalTitle": {
            "type": "string",
            "nullable": true
          },
          "parentOrder": {
            "type": "integer",
            "nullable": true
          },
          "itemTypeId": {
            "type": "integer",
            "nullable": true
          },
          "public": {
            "type": "integer",
            "nullable": true
          }
        }
      },
      "ItemOtherSideLocale": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "localeId"
        ],
        "properties": {
          "localeId": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "dating": {
            "type": "string",
            "nullable": true
          },
          "technique": {
            "type": "string",
            "nullable": true
          },
          "substrate": {
            "type": "string",
            "nullable": true
          },
          "notesPublic": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ItemOtherSide": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "datingOrder",
          "translations"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "datingOrder": {
            "type": "integer",
            "nullable": true
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemOtherSideLocale"
            }
          }
        }
      },
      "ItemExtraOption": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "title",
          "titleEN",
          "needsAltDimensions"
        ],
        "properties": {
          "id": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "titleEN": {
            "type": "string"
          },
          "needsAltDimensions": {
            "type": "integer"
          }
        }
      },
      "MarkPlace": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "titleCS",
          "titleEN",
          "shortcutCS",
          "shortcutEN",
          "dimension"
        ],
        "properties": {
          "id": {
            "type": "integer"
          },
          "titleCS": {
            "type": "string"
          },
          "titleEN": {
            "type": "string"
          },
          "shortcutCS": {
            "type": "string"
          },
          "shortcutEN": {
            "type": "string"
          },
          "dimension": {
            "type": "string"
          }
        }
      },
      "ItemReference": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "types",
          "extras",
          "disputationTypes",
          "ownerTypes",
          "currencies",
          "locales",
          "signatureTypes",
          "signaturePlaces",
          "markingTypes",
          "markingPlaces",
          "relationPairs",
          "relationTypes",
          "documentTypes",
          "contactTypes",
          "contactRoles",
          "publicationTypes"
        ],
        "properties": {
          "types": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "code",
                "shortcut",
                "isParentType",
                "name"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                },
                "code": {
                  "type": "string"
                },
                "shortcut": {
                  "type": "string"
                },
                "isParentType": {
                  "type": "integer"
                },
                "name": {
                  "type": "string",
                  "nullable": true
                }
              }
            }
          },
          "extras": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemExtraOption"
            }
          },
          "disputationTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "code",
                "shortcut"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                },
                "code": {
                  "type": "string"
                },
                "shortcut": {
                  "type": "string"
                }
              }
            }
          },
          "ownerTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "title",
                "titleEN"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                },
                "title": {
                  "type": "string"
                },
                "titleEN": {
                  "type": "string"
                }
              }
            }
          },
          "currencies": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "code",
                "name",
                "symbol"
              ],
              "properties": {
                "code": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "symbol": {
                  "type": "string"
                }
              }
            }
          },
          "locales": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "title"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                },
                "title": {
                  "type": "string"
                }
              }
            }
          },
          "signatureTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "code",
                "name"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                },
                "code": {
                  "type": "string"
                },
                "name": {
                  "type": "string",
                  "nullable": true
                }
              }
            }
          },
          "signaturePlaces": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarkPlace"
            }
          },
          "markingTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "code",
                "name"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                },
                "code": {
                  "type": "string"
                },
                "name": {
                  "type": "string",
                  "nullable": true
                }
              }
            }
          },
          "markingPlaces": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarkPlace"
            }
          },
          "relationPairs": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "titleCS",
                "titleEN",
                "isPublic"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "titleCS": {
                  "type": "string"
                },
                "titleEN": {
                  "type": "string"
                },
                "isPublic": {
                  "type": "integer"
                }
              }
            }
          },
          "relationTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "titleCS",
                "titleEN",
                "inverseRelationTypeId",
                "i2RelationPairId",
                "isPublic"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "titleCS": {
                  "type": "string"
                },
                "titleEN": {
                  "type": "string"
                },
                "inverseRelationTypeId": {
                  "type": "string"
                },
                "i2RelationPairId": {
                  "type": "string",
                  "nullable": true
                },
                "isPublic": {
                  "type": "integer"
                }
              }
            }
          },
          "documentTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "titleCS",
                "titleEN"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                },
                "titleCS": {
                  "type": "string"
                },
                "titleEN": {
                  "type": "string",
                  "nullable": true
                }
              }
            }
          },
          "contactTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "title",
                "titleEN"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                },
                "title": {
                  "type": "string"
                },
                "titleEN": {
                  "type": "string"
                }
              }
            }
          },
          "contactRoles": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "code",
                "nameCS",
                "nameEN"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                },
                "code": {
                  "type": "string"
                },
                "nameCS": {
                  "type": "string",
                  "nullable": true
                },
                "nameEN": {
                  "type": "string",
                  "nullable": true
                }
              }
            }
          },
          "publicationTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "code",
                "nameCS",
                "nameEN"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                },
                "code": {
                  "type": "string"
                },
                "nameCS": {
                  "type": "string",
                  "nullable": true
                },
                "nameEN": {
                  "type": "string",
                  "nullable": true
                }
              }
            }
          }
        }
      },
      "InventoryInvitationRow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "invitee",
          "byCode",
          "inventoryRoleId",
          "roleCode",
          "invitedByName",
          "createdAt",
          "expiresAt",
          "status"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "invitee": {
            "type": "string"
          },
          "byCode": {
            "type": "boolean"
          },
          "inventoryRoleId": {
            "type": "integer"
          },
          "roleCode": {
            "type": "string"
          },
          "invitedByName": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "expired",
              "accepted",
              "declined",
              "cancelled"
            ]
          }
        }
      },
      "MyInvitationRow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "inventoryId",
          "inventoryCode",
          "inventoryTitle",
          "inventoryRoleId",
          "roleCode",
          "invitedByName",
          "createdAt",
          "expiresAt"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "inventoryId": {
            "type": "string"
          },
          "inventoryCode": {
            "type": "string"
          },
          "inventoryTitle": {
            "type": "string"
          },
          "inventoryRoleId": {
            "type": "integer"
          },
          "roleCode": {
            "type": "string"
          },
          "invitedByName": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string"
          }
        }
      },
      "InventoryTag": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "titleCS",
          "titleEN",
          "itemsCount",
          "nestedLevel",
          "groupId",
          "parentId"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "titleCS": {
            "type": "string"
          },
          "titleEN": {
            "type": "string"
          },
          "itemsCount": {
            "type": "integer"
          },
          "nestedLevel": {
            "type": "integer",
            "nullable": true
          },
          "groupId": {
            "type": "string",
            "nullable": true
          },
          "parentId": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "InventoryTagGroup": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "titleCS",
          "titleEN",
          "tags"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "titleCS": {
            "type": "string"
          },
          "titleEN": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InventoryTag"
            }
          }
        }
      },
      "InventorySeries": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "sortOrder",
          "typeId",
          "public",
          "itemsCount",
          "titleCS",
          "titleEN",
          "descriptionCS",
          "descriptionEN",
          "typeTitleCS",
          "typeTitleEN"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "sortOrder": {
            "type": "integer"
          },
          "typeId": {
            "type": "integer",
            "nullable": true
          },
          "public": {
            "type": "integer",
            "nullable": true
          },
          "itemsCount": {
            "type": "integer"
          },
          "titleCS": {
            "type": "string",
            "nullable": true
          },
          "titleEN": {
            "type": "string",
            "nullable": true
          },
          "descriptionCS": {
            "type": "string",
            "nullable": true
          },
          "descriptionEN": {
            "type": "string",
            "nullable": true
          },
          "typeTitleCS": {
            "type": "string",
            "nullable": true
          },
          "typeTitleEN": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "InventoryLocation": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "title",
          "description",
          "moveable",
          "itemsCount",
          "nestedLevel",
          "parentId",
          "typeId",
          "typeTitleCS",
          "typeTitleEN",
          "typeIcon"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "moveable": {
            "type": "integer"
          },
          "itemsCount": {
            "type": "integer"
          },
          "nestedLevel": {
            "type": "integer"
          },
          "parentId": {
            "type": "string",
            "nullable": true
          },
          "typeId": {
            "type": "integer",
            "nullable": true
          },
          "typeTitleCS": {
            "type": "string",
            "nullable": true
          },
          "typeTitleEN": {
            "type": "string",
            "nullable": true
          },
          "typeIcon": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "OrganisationReference": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "seriesTypes",
          "locationTypes"
        ],
        "properties": {
          "seriesTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "titleCS",
                "titleEN"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                },
                "titleCS": {
                  "type": "string"
                },
                "titleEN": {
                  "type": "string"
                }
              }
            }
          },
          "locationTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "titleCS",
                "titleEN",
                "forcedMoveableValue",
                "icon"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                },
                "titleCS": {
                  "type": "string"
                },
                "titleEN": {
                  "type": "string",
                  "nullable": true
                },
                "forcedMoveableValue": {
                  "type": "integer",
                  "nullable": true
                },
                "icon": {
                  "type": "string",
                  "nullable": true
                }
              }
            }
          }
        }
      },
      "InventorySummary": {
        "title": "InventorySummary",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "inventoryCode": {
            "type": "string"
          },
          "mainTitle": {
            "type": "string"
          },
          "typeId": {
            "type": "number"
          },
          "typeTitleCS": {
            "type": "string"
          },
          "typeTitleEN": {
            "type": "string"
          },
          "singleAuthor": {
            "type": "boolean"
          },
          "authorName": {
            "type": "string"
          },
          "roleCode": {
            "type": "string"
          },
          "roleTitle": {
            "type": "string"
          },
          "itemCount": {
            "type": "number"
          },
          "userCount": {
            "type": "number"
          },
          "personalKind": {
            "type": "string",
            "enum": [
              "personal",
              "author"
            ]
          }
        },
        "required": [
          "id",
          "inventoryCode",
          "mainTitle"
        ],
        "additionalProperties": false
      },
      "InventoryStat": {
        "title": "InventoryStat",
        "type": "object",
        "properties": {
          "itemTypeId": {
            "type": "number"
          },
          "code": {
            "type": "string"
          },
          "nameCS": {
            "type": "string"
          },
          "nameEN": {
            "type": "string"
          },
          "count": {
            "type": "number"
          }
        },
        "required": [
          "count"
        ],
        "additionalProperties": false
      },
      "InventoryDetail": {
        "title": "InventoryDetail",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "inventoryCode": {
            "type": "string"
          },
          "mainTitle": {
            "type": "string"
          },
          "typeId": {
            "type": "number"
          },
          "typeTitleCS": {
            "type": "string"
          },
          "typeTitleEN": {
            "type": "string"
          },
          "singleAuthor": {
            "type": "boolean"
          },
          "authorName": {
            "type": "string"
          },
          "roleCode": {
            "type": "string"
          },
          "roleTitle": {
            "type": "string"
          },
          "itemCount": {
            "type": "number"
          },
          "userCount": {
            "type": "number"
          },
          "personalKind": {
            "type": "string",
            "enum": [
              "personal",
              "author"
            ]
          },
          "keyPublication": {
            "type": "string"
          },
          "keyPublicationId": {
            "type": "string"
          },
          "stats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InventoryStat"
            }
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "inventoryCode",
          "mainTitle"
        ],
        "additionalProperties": false
      },
      "AuthorInfo": {
        "title": "AuthorInfo",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "nickname": {
            "type": "string"
          },
          "firstname": {
            "type": "string"
          },
          "lastname": {
            "type": "string"
          },
          "birthday": {
            "type": "string"
          },
          "death": {
            "type": "string"
          },
          "descriptionCS": {
            "type": "string"
          },
          "descriptionEN": {
            "type": "string"
          },
          "canvasId": {
            "type": "number"
          },
          "curated": {
            "type": "boolean"
          },
          "inventoryId": {
            "type": "string"
          },
          "itemCount": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "nickname"
        ],
        "additionalProperties": false
      },
      "ContactInfo": {
        "title": "ContactInfo",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "notesInternal": {
            "type": "string"
          },
          "contactTypeId": {
            "type": "number"
          },
          "typeTitleCS": {
            "type": "string"
          },
          "typeTitleEN": {
            "type": "string"
          },
          "isPublic": {
            "type": "boolean"
          },
          "curated": {
            "type": "boolean"
          },
          "inventoryId": {
            "type": "string"
          },
          "roleIds": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "itemCount": {
            "type": "number"
          },
          "auctionCount": {
            "type": "number"
          },
          "exhibitionCount": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title"
        ],
        "additionalProperties": false
      },
      "TranslationText": {
        "title": "TranslationText",
        "type": "object",
        "properties": {
          "localeId": {
            "type": "number"
          },
          "title": {
            "type": "string"
          },
          "isOriginalTitle": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          },
          "year": {
            "type": "string"
          },
          "cityName": {
            "type": "string"
          }
        },
        "required": [
          "localeId"
        ],
        "additionalProperties": false
      },
      "AuctionInfo": {
        "title": "AuctionInfo",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "originalTitle": {
            "type": "string"
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          },
          "year": {
            "type": "number"
          },
          "organizerId": {
            "type": "string"
          },
          "organizerName": {
            "type": "string"
          },
          "curated": {
            "type": "boolean"
          },
          "inventoryId": {
            "type": "string"
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TranslationText"
            }
          },
          "itemCount": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "originalTitle"
        ],
        "additionalProperties": false
      },
      "ExhibitionInfo": {
        "title": "ExhibitionInfo",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "originalTitle": {
            "type": "string"
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          },
          "year": {
            "type": "number"
          },
          "organizerId": {
            "type": "string"
          },
          "organizerName": {
            "type": "string"
          },
          "curated": {
            "type": "boolean"
          },
          "inventoryId": {
            "type": "string"
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TranslationText"
            }
          },
          "itemCount": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "originalTitle"
        ],
        "additionalProperties": false
      },
      "PublicationInfo": {
        "title": "PublicationInfo",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "originalTitle": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "isbn": {
            "type": "string"
          },
          "year": {
            "type": "number"
          },
          "publicationTypeId": {
            "type": "number"
          },
          "typeNameCS": {
            "type": "string"
          },
          "typeNameEN": {
            "type": "string"
          },
          "curated": {
            "type": "boolean"
          },
          "inventoryId": {
            "type": "string"
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TranslationText"
            }
          },
          "itemCount": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "originalTitle"
        ],
        "additionalProperties": false
      },
      "InventoryActivity": {
        "title": "InventoryActivity",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "timestamp": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "userId": {
            "type": "string"
          },
          "userName": {
            "type": "string"
          },
          "itemId": {
            "type": "string"
          },
          "itemTitle": {
            "type": "string"
          },
          "itemNumber": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "recordId": {
            "type": "string"
          },
          "recordTitle": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Author": {
        "title": "Author",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "firstname": {
            "type": "string",
            "nullable": true
          },
          "lastname": {
            "type": "string",
            "nullable": true
          },
          "nickname": {
            "type": "string"
          },
          "birthday": {
            "type": "string",
            "nullable": true
          },
          "death": {
            "type": "string",
            "nullable": true
          },
          "descriptionCS": {
            "type": "string",
            "nullable": true
          },
          "descriptionEN": {
            "type": "string",
            "nullable": true
          },
          "added": {
            "type": "string",
            "format": "date-time"
          },
          "canvasId": {
            "type": "number",
            "nullable": true
          },
          "inventoryId": {
            "type": "string",
            "nullable": true
          },
          "curated": {
            "type": "boolean"
          },
          "itemCount": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "nickname"
        ],
        "additionalProperties": false
      },
      "Contact": {
        "title": "Contact",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "notesInternal": {
            "type": "string",
            "nullable": true
          },
          "inventoryId": {
            "type": "string",
            "nullable": true
          },
          "curated": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "contactTypeId": {
            "type": "number"
          }
        },
        "required": [
          "title"
        ],
        "additionalProperties": false
      },
      "Auction": {
        "title": "Auction",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "originalTitle": {
            "type": "string"
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          },
          "year": {
            "type": "number",
            "nullable": true
          },
          "inventoryId": {
            "type": "string",
            "nullable": true
          },
          "curated": {
            "type": "boolean"
          },
          "organizerId": {
            "type": "string"
          }
        },
        "required": [
          "originalTitle"
        ],
        "additionalProperties": false
      },
      "Exhibition": {
        "title": "Exhibition",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "originalTitle": {
            "type": "string"
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          },
          "year": {
            "type": "number",
            "nullable": true
          },
          "itemExhibitionId": {
            "type": "string",
            "nullable": true
          },
          "organizerId": {
            "type": "string"
          },
          "inventoryId": {
            "type": "string",
            "nullable": true
          },
          "curated": {
            "type": "boolean"
          }
        },
        "required": [
          "originalTitle"
        ],
        "additionalProperties": false
      },
      "Publication": {
        "title": "Publication",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "originalTitle": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "year": {
            "type": "number",
            "nullable": true
          },
          "isbn": {
            "type": "string",
            "nullable": true
          },
          "citaceId": {
            "type": "string"
          },
          "itemPublicationId": {
            "type": "string"
          },
          "inventoryId": {
            "type": "string",
            "nullable": true
          },
          "curated": {
            "type": "boolean"
          },
          "publicationTypeId": {
            "type": "number"
          }
        },
        "required": [
          "originalTitle"
        ],
        "additionalProperties": false
      },
      "InventoryRole": {
        "title": "InventoryRole",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "code": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "sortOrder": {
            "type": "number"
          },
          "itemCreate": {
            "type": "boolean"
          },
          "itemRead": {
            "type": "boolean"
          },
          "itemUpdate": {
            "type": "boolean"
          },
          "itemDelete": {
            "type": "boolean"
          },
          "auctionCreate": {
            "type": "boolean"
          },
          "auctionRead": {
            "type": "boolean"
          },
          "auctionUpdate": {
            "type": "boolean"
          },
          "auctionDelete": {
            "type": "boolean"
          },
          "authorCreate": {
            "type": "boolean"
          },
          "authorRead": {
            "type": "boolean"
          },
          "authorUpdate": {
            "type": "boolean"
          },
          "authorDelete": {
            "type": "boolean"
          },
          "contactCreate": {
            "type": "boolean"
          },
          "contactRead": {
            "type": "boolean"
          },
          "contactUpdate": {
            "type": "boolean"
          },
          "contactDelete": {
            "type": "boolean"
          },
          "inventoryRead": {
            "type": "boolean"
          },
          "inventoryUpdate": {
            "type": "boolean"
          },
          "publicationCreate": {
            "type": "boolean"
          },
          "publicationRead": {
            "type": "boolean"
          },
          "publicationUpdate": {
            "type": "boolean"
          },
          "publicationDelete": {
            "type": "boolean"
          },
          "exhibitionCreate": {
            "type": "boolean"
          },
          "exhibitionRead": {
            "type": "boolean"
          },
          "exhibitionUpdate": {
            "type": "boolean"
          },
          "exhibitionDelete": {
            "type": "boolean"
          },
          "userRead": {
            "type": "boolean"
          },
          "userCreate": {
            "type": "boolean"
          },
          "userUpdate": {
            "type": "boolean"
          },
          "userDelete": {
            "type": "boolean"
          },
          "settingsUpdate": {
            "type": "boolean"
          },
          "cataloguePromote": {
            "type": "boolean"
          },
          "catalogueMerge": {
            "type": "boolean"
          },
          "tagCreate": {
            "type": "boolean"
          },
          "tagRead": {
            "type": "boolean"
          },
          "tagUpdate": {
            "type": "boolean"
          },
          "tagDelete": {
            "type": "boolean"
          },
          "seriesCreate": {
            "type": "boolean"
          },
          "seriesRead": {
            "type": "boolean"
          },
          "seriesUpdate": {
            "type": "boolean"
          },
          "seriesDelete": {
            "type": "boolean"
          },
          "locationCreate": {
            "type": "boolean"
          },
          "locationRead": {
            "type": "boolean"
          },
          "locationUpdate": {
            "type": "boolean"
          },
          "locationDelete": {
            "type": "boolean"
          },
          "managerMode": {
            "type": "boolean"
          },
          "commentUpdate": {
            "type": "boolean"
          },
          "guest": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "code",
          "title",
          "sortOrder",
          "itemCreate",
          "itemRead",
          "itemUpdate",
          "itemDelete",
          "auctionCreate",
          "auctionRead",
          "auctionUpdate",
          "auctionDelete",
          "authorCreate",
          "authorRead",
          "authorUpdate",
          "authorDelete",
          "contactCreate",
          "contactRead",
          "contactUpdate",
          "contactDelete",
          "inventoryRead",
          "inventoryUpdate",
          "publicationCreate",
          "publicationRead",
          "publicationUpdate",
          "publicationDelete",
          "exhibitionCreate",
          "exhibitionRead",
          "exhibitionUpdate",
          "exhibitionDelete",
          "userRead",
          "userCreate",
          "userUpdate",
          "userDelete",
          "settingsUpdate",
          "cataloguePromote",
          "catalogueMerge",
          "tagCreate",
          "tagRead",
          "tagUpdate",
          "tagDelete",
          "seriesCreate",
          "seriesRead",
          "seriesUpdate",
          "seriesDelete",
          "locationCreate",
          "locationRead",
          "locationUpdate",
          "locationDelete",
          "managerMode",
          "commentUpdate",
          "guest"
        ],
        "additionalProperties": false
      },
      "InventoryAssignment": {
        "title": "InventoryAssignment",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "inventoryId": {
            "type": "string"
          },
          "userId": {
            "type": "string"
          },
          "inventoryRoleId": {
            "type": "number"
          },
          "role": {
            "$ref": "#/components/schemas/InventoryRole"
          },
          "userEmail": {
            "type": "string"
          },
          "userFirstname": {
            "type": "string"
          },
          "userLastname": {
            "type": "string"
          },
          "userActive": {
            "type": "boolean"
          },
          "inventoryMainTitle": {
            "type": "string"
          },
          "inventoryCode": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "inventoryId",
          "userId",
          "inventoryRoleId"
        ],
        "additionalProperties": false
      },
      "InventoryConfidantRow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "contactId",
          "title"
        ],
        "properties": {
          "contactId": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "NotificationDataRow": {
        "type": "object",
        "additionalProperties": false,
        "required": [],
        "properties": {
          "inventoryId": {
            "type": "string"
          },
          "inventoryCode": {
            "type": "string"
          },
          "inventoryTitle": {
            "type": "string"
          },
          "roleCode": {
            "type": "string"
          },
          "previousRoleCode": {
            "type": "string"
          },
          "actorName": {
            "type": "string"
          },
          "inviteeName": {
            "type": "string"
          },
          "invitationId": {
            "type": "string"
          },
          "titleCS": {
            "type": "string"
          },
          "bodyCS": {
            "type": "string"
          },
          "titleEN": {
            "type": "string"
          },
          "bodyEN": {
            "type": "string"
          },
          "messageId": {
            "type": "string"
          },
          "senderName": {
            "type": "string"
          },
          "senderEmail": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          }
        }
      },
      "NotificationItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "type",
          "data",
          "createdAt",
          "readAt"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "password-changed",
              "inventory-assigned",
              "inventory-role-changed",
              "inventory-invitation",
              "invitation-accepted",
              "invitation-declined",
              "announcement",
              "contact-message"
            ]
          },
          "data": {
            "$ref": "#/components/schemas/NotificationDataRow"
          },
          "createdAt": {
            "type": "string"
          },
          "readAt": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "NotificationPage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "total",
          "unread"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NotificationItem"
            }
          },
          "total": {
            "type": "integer"
          },
          "unread": {
            "type": "integer"
          }
        }
      },
      "NotificationSettingRow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "group",
          "email",
          "locked"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "password-changed",
              "inventory-assigned",
              "inventory-role-changed",
              "inventory-invitation",
              "invitation-accepted",
              "invitation-declined",
              "announcement",
              "contact-message"
            ]
          },
          "group": {
            "type": "string",
            "enum": [
              "security",
              "inventories",
              "announcements",
              "administration"
            ]
          },
          "email": {
            "type": "boolean"
          },
          "locked": {
            "type": "boolean"
          }
        }
      },
      "NotificationSettings": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "settings"
        ],
        "properties": {
          "settings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NotificationSettingRow"
            }
          }
        }
      },
      "Readiness": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "status",
          "mysql",
          "mongo",
          "s3",
          "mail",
          "log"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "error"
            ]
          },
          "mysql": {
            "type": "string",
            "enum": [
              "ok",
              "error",
              "timeout",
              "off"
            ]
          },
          "mongo": {
            "type": "string",
            "enum": [
              "ok",
              "error",
              "timeout",
              "off"
            ]
          },
          "s3": {
            "type": "string",
            "enum": [
              "ok",
              "error",
              "timeout",
              "off"
            ]
          },
          "mail": {
            "type": "string",
            "enum": [
              "ok",
              "error",
              "timeout",
              "off"
            ]
          },
          "log": {
            "type": "string",
            "enum": [
              "ok",
              "error",
              "timeout",
              "off"
            ]
          }
        }
      },
      "EventLog": {
        "title": "EventLog",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "name": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "inventoryId": {
            "type": "string"
          },
          "userId": {
            "type": "string"
          },
          "context": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "data": {
            "type": "object"
          }
        },
        "required": [
          "timestamp",
          "name",
          "type"
        ],
        "additionalProperties": false
      },
      "Country": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "code",
          "alpha2",
          "nameCS",
          "nameEN",
          "pinned"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "ISO 3166-1 numeric, three digits of text ('203')"
          },
          "alpha2": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 ('CZ')"
          },
          "nameCS": {
            "type": "string"
          },
          "nameEN": {
            "type": "string"
          },
          "pinned": {
            "type": "integer",
            "description": "Order of the group offered first and apart (Czechia 1, Slovakia 2); 0 for the rest"
          }
        }
      },
      "ContactMessageRow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "email",
          "subject",
          "message",
          "lang",
          "createdAt",
          "handledAt",
          "handledBy",
          "handledByName"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string"
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string"
          },
          "lang": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string"
          },
          "handledAt": {
            "type": "string",
            "nullable": true
          },
          "handledBy": {
            "type": "string",
            "nullable": true
          },
          "handledByName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ContactMessagePage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "total",
          "open"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContactMessageRow"
            }
          },
          "total": {
            "type": "integer"
          },
          "open": {
            "type": "integer"
          }
        }
      },
      "ContactCopyright": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "copyrightCS",
          "copyrightEN",
          "notesInternal"
        ],
        "properties": {
          "id": {
            "type": "integer"
          },
          "copyrightCS": {
            "type": "string",
            "nullable": true
          },
          "copyrightEN": {
            "type": "string",
            "nullable": true
          },
          "notesInternal": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "AuthRole": {
        "title": "AuthRole",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "order": {
            "type": "number"
          },
          "userId": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "title",
          "order"
        ],
        "additionalProperties": false
      },
      "UserInventoryPermission": {
        "title": "UserInventoryPermission",
        "type": "object",
        "properties": {
          "inventoryId": {
            "type": "string"
          },
          "permissionId": {
            "type": "number"
          },
          "itemPermissions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "auctionPermissions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "authorPermissions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "contactPermissions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "inventoryPermissions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "publicationPermissions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "exhibitionPermissions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "userPermissions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "role": {
            "$ref": "#/components/schemas/InventoryRole"
          }
        },
        "required": [
          "inventoryId",
          "permissionId",
          "itemPermissions",
          "auctionPermissions",
          "authorPermissions",
          "contactPermissions",
          "inventoryPermissions",
          "publicationPermissions",
          "exhibitionPermissions",
          "role"
        ],
        "additionalProperties": false
      },
      "UserInfo": {
        "title": "UserInfo",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "firstname": {
            "type": "string"
          },
          "lastname": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/AuthRole"
          },
          "twoFactorRequired": {
            "type": "boolean"
          },
          "twoFactorEnabled": {
            "type": "boolean"
          },
          "webEditor": {
            "type": "boolean"
          },
          "inventoryPermissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserInventoryPermission"
            }
          }
        },
        "required": [
          "id",
          "twoFactorEnabled",
          "webEditor"
        ],
        "additionalProperties": false
      },
      "AnnouncementAudience": {
        "type": "object",
        "additionalProperties": false,
        "required": [],
        "properties": {
          "all": {
            "type": "boolean"
          },
          "appRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "inventoryOwners": {
            "type": "boolean"
          },
          "personalOwners": {
            "type": "boolean"
          },
          "inventories": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "inventoryId"
              ],
              "properties": {
                "inventoryId": {
                  "type": "string"
                },
                "roles": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "AnnouncementItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "createdAt",
          "createdBy",
          "createdByName",
          "titleCS",
          "bodyCS",
          "titleEN",
          "bodyEN",
          "audience",
          "emailForced",
          "recipients",
          "read"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "createdByName": {
            "type": "string",
            "nullable": true
          },
          "titleCS": {
            "type": "string"
          },
          "bodyCS": {
            "type": "string"
          },
          "titleEN": {
            "type": "string",
            "nullable": true
          },
          "bodyEN": {
            "type": "string",
            "nullable": true
          },
          "audience": {
            "$ref": "#/components/schemas/AnnouncementAudience"
          },
          "emailForced": {
            "type": "boolean"
          },
          "recipients": {
            "type": "integer"
          },
          "read": {
            "type": "integer"
          }
        }
      },
      "AnnouncementPage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "total"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnnouncementItem"
            }
          },
          "total": {
            "type": "integer"
          }
        }
      },
      "InventoryInfo": {
        "title": "InventoryInfo",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "mainTitle": {
            "type": "string"
          },
          "inventoryCode": {
            "type": "string"
          },
          "typeId": {
            "type": "number"
          },
          "type": {
            "$ref": "#/components/schemas/InventoryType"
          },
          "singleAuthor": {
            "type": "boolean"
          },
          "authorId": {
            "type": "string"
          },
          "authorName": {
            "type": "string"
          },
          "keyPublicationId": {
            "type": "string"
          },
          "lastItemNumber": {
            "type": "number"
          },
          "curatedAuctions": {
            "type": "boolean"
          },
          "curatedAuthors": {
            "type": "boolean"
          },
          "curatedContacts": {
            "type": "boolean"
          },
          "curatedPublications": {
            "type": "boolean"
          },
          "curatedExhibitions": {
            "type": "boolean"
          },
          "personalUserId": {
            "type": "string",
            "nullable": true
          },
          "personalUserName": {
            "type": "string"
          },
          "userCount": {
            "type": "number"
          },
          "itemCount": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "mainTitle",
          "inventoryCode",
          "typeId",
          "singleAuthor"
        ],
        "additionalProperties": false
      },
      "AuthorOption": {
        "title": "AuthorOption",
        "type": "object",
        "description": "(tsType: Partial<Author>, schemaOptions: { title: 'AuthorOption', partial: true })",
        "properties": {
          "id": {
            "type": "string"
          },
          "firstname": {
            "type": "string",
            "nullable": true
          },
          "lastname": {
            "type": "string",
            "nullable": true
          },
          "nickname": {
            "type": "string"
          },
          "birthday": {
            "type": "string",
            "nullable": true
          },
          "death": {
            "type": "string",
            "nullable": true
          },
          "descriptionCS": {
            "type": "string",
            "nullable": true
          },
          "descriptionEN": {
            "type": "string",
            "nullable": true
          },
          "added": {
            "type": "string",
            "format": "date-time"
          },
          "canvasId": {
            "type": "number",
            "nullable": true
          },
          "inventoryId": {
            "type": "string",
            "nullable": true
          },
          "curated": {
            "type": "boolean"
          },
          "itemCount": {
            "type": "number"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<Author>"
      },
      "PublicItemLang": {
        "title": "PublicItemLang",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "localeId": {
            "type": "number"
          },
          "itemTypeName": {
            "type": "string"
          },
          "isOriginalTitle": {
            "type": "boolean"
          },
          "title": {
            "type": "string"
          },
          "dating": {
            "type": "string"
          },
          "technique": {
            "type": "string"
          },
          "substrate": {
            "type": "string"
          },
          "notesPublic": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "localeId"
        ],
        "additionalProperties": false
      },
      "PublicFileInfoLang": {
        "title": "PublicFileInfoLang",
        "type": "object",
        "properties": {
          "localeId": {
            "type": "number"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "copyright": {
            "type": "string"
          }
        },
        "required": [
          "localeId"
        ],
        "additionalProperties": false
      },
      "PublicFileInfo": {
        "title": "PublicFileInfo",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "langs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicFileInfoLang"
            }
          },
          "documentTypeId": {
            "type": "number"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "PublicFile": {
        "title": "PublicFile",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "mimetype": {
            "type": "string"
          },
          "ext": {
            "type": "string"
          },
          "type": {
            "type": "number"
          },
          "info": {
            "$ref": "#/components/schemas/PublicFileInfo"
          },
          "order": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "filename",
          "mimetype",
          "ext",
          "type",
          "info"
        ],
        "additionalProperties": false
      },
      "PublicItemSignatureLang": {
        "title": "PublicItemSignatureLang",
        "type": "object",
        "properties": {
          "localeId": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          },
          "placeShortcut": {
            "type": "string"
          },
          "placeText": {
            "type": "string"
          },
          "typeText": {
            "type": "string"
          }
        },
        "required": [
          "localeId"
        ],
        "additionalProperties": false
      },
      "PublicItemSignature": {
        "title": "PublicItemSignature",
        "type": "object",
        "properties": {
          "realText": {
            "type": "string"
          },
          "typeId": {
            "type": "number"
          },
          "typeCode": {
            "type": "string"
          },
          "order": {
            "type": "number"
          },
          "langs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicItemSignatureLang"
            }
          }
        },
        "required": [
          "typeId",
          "typeCode"
        ],
        "additionalProperties": false
      },
      "PublicItemMarkingLang": {
        "title": "PublicItemMarkingLang",
        "type": "object",
        "properties": {
          "localeId": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          },
          "placeShortcut": {
            "type": "string"
          },
          "placeText": {
            "type": "string"
          },
          "typeText": {
            "type": "string"
          }
        },
        "required": [
          "localeId"
        ],
        "additionalProperties": false
      },
      "PublicItemMarking": {
        "title": "PublicItemMarking",
        "type": "object",
        "properties": {
          "realText": {
            "type": "string"
          },
          "typeId": {
            "type": "number"
          },
          "typeCode": {
            "type": "string"
          },
          "order": {
            "type": "number"
          },
          "langs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicItemMarkingLang"
            }
          }
        },
        "required": [
          "typeId",
          "typeCode"
        ],
        "additionalProperties": false
      },
      "PublicItemRelation": {
        "title": "PublicItemRelation",
        "type": "object",
        "properties": {
          "relatedItemId": {
            "type": "string"
          },
          "typeId": {
            "type": "string"
          }
        },
        "required": [
          "relatedItemId",
          "typeId"
        ],
        "additionalProperties": false
      },
      "PublicOwnerLang": {
        "title": "PublicOwnerLang",
        "type": "object",
        "properties": {
          "localeId": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          }
        },
        "required": [
          "localeId"
        ],
        "additionalProperties": false
      },
      "PublicOwner": {
        "title": "PublicOwner",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "yearPurchase": {
            "type": "number"
          },
          "langs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicOwnerLang"
            }
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "PublicItemOwners": {
        "title": "PublicItemOwners",
        "type": "object",
        "properties": {
          "current": {
            "$ref": "#/components/schemas/PublicOwner"
          },
          "original": {
            "$ref": "#/components/schemas/PublicOwner"
          }
        },
        "additionalProperties": false
      },
      "PublicItemWithRelations": {
        "title": "PublicItemWithRelations",
        "type": "object",
        "description": "(tsType: PublicItemWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "string"
          },
          "itemTypeId": {
            "type": "number"
          },
          "originalTitle": {
            "type": "string"
          },
          "dimensionHeight": {
            "type": "number"
          },
          "dimensionWidth": {
            "type": "number"
          },
          "dimensionDepth": {
            "type": "number"
          },
          "inventoryCode": {
            "type": "string"
          },
          "inventoryNumber": {
            "type": "number"
          },
          "datingOrder": {
            "type": "number"
          },
          "chronologicalOrder": {
            "type": "number"
          },
          "series": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "langs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicItemLang"
            }
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicFile"
            }
          },
          "signatures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicItemSignature"
            }
          },
          "markings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicItemMarking"
            }
          },
          "relations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicItemRelation"
            }
          },
          "owners": {
            "$ref": "#/components/schemas/PublicItemOwners"
          }
        },
        "required": [
          "itemTypeId"
        ],
        "additionalProperties": false,
        "x-typescript-type": "PublicItemWithRelations"
      },
      "ItemTypeLang": {
        "title": "ItemTypeLang",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "langId": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "itemTypeId": {
            "type": "number"
          }
        },
        "required": [
          "langId",
          "name",
          "description"
        ],
        "additionalProperties": false
      },
      "PublicItemType": {
        "title": "PublicItemType",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "code": {
            "type": "string"
          },
          "shortcut": {
            "type": "string"
          },
          "isParentType": {
            "type": "boolean"
          },
          "sortOrder": {
            "type": "number"
          },
          "langs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemTypeLang"
            }
          }
        },
        "required": [
          "code",
          "shortcut",
          "isParentType",
          "sortOrder"
        ],
        "additionalProperties": false
      },
      "PublicSeriesLang": {
        "title": "PublicSeriesLang",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "localeId": {
            "type": "number"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "localeId"
        ],
        "additionalProperties": false
      },
      "PublicSeries": {
        "title": "PublicSeries",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "sortOrder": {
            "type": "number"
          },
          "langs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicSeriesLang"
            }
          },
          "typeId": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "sortOrder"
        ],
        "additionalProperties": false
      },
      "PublicSeriesType": {
        "title": "PublicSeriesType",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "titleCS": {
            "type": "string"
          },
          "titleEN": {
            "type": "string"
          },
          "sortOrder": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "titleCS",
          "titleEN",
          "sortOrder"
        ],
        "additionalProperties": false
      },
      "PublicTagGroup": {
        "title": "PublicTagGroup",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "inventoryId": {
            "type": "string"
          },
          "titleCS": {
            "type": "string"
          },
          "titleEN": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "inventoryId",
          "titleCS",
          "titleEN"
        ],
        "additionalProperties": false
      },
      "PublicTag": {
        "title": "PublicTag",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "parentId": {
            "type": "string"
          },
          "groupId": {
            "type": "string"
          },
          "titleCS": {
            "type": "string"
          },
          "titleEN": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "groupId",
          "titleCS",
          "titleEN"
        ],
        "additionalProperties": false
      },
      "PublicTagAndGroupResponse": {
        "title": "PublicTagAndGroupResponse",
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicTagGroup"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicTag"
            }
          }
        },
        "required": [
          "groups",
          "tags"
        ],
        "additionalProperties": false
      },
      "PublicContact": {
        "title": "PublicContact",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title"
        ],
        "additionalProperties": false
      },
      "ApollonCopySettings": {
        "type": "object",
        "title": "ApollonCopySettings",
        "properties": {
          "inventoryId": {
            "type": "string"
          },
          "s3": {
            "type": "object",
            "properties": {
              "region": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "secret": {
                "type": "string"
              },
              "bucket": {
                "type": "string"
              },
              "path": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "appKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      },
      "appId": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-ID"
      },
      "jwt": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}