{
  "openapi": "3.0.1",
  "info": {
    "title": "Balot API",
    "version": "v1"
  },
  "paths": {
    "/api/Admin/create-user": {
      "post": {
        "tags": [
          "Admin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Admin/{id}": {
      "delete": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Admin/reset-password/{id}": {
      "post": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Admin/update-user/{id}": {
      "put": {
        "tags": [
          "Admin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Auth/register": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Auth/login": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Auth/toggle-2fa": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Toggle2FaRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Toggle2FaRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Toggle2FaRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Auth/login-2fa": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Login2FaRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Login2FaRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Login2FaRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Auth/change-password": {
      "post": {
        "tags": [
          "Auth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Auth/logout": {
      "post": {
        "tags": [
          "Auth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/auth/me": {
      "get": {
        "tags": [
          "AuthInfo"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/auth/must-change-password": {
      "get": {
        "tags": [
          "AuthInfo"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/billing": {
      "get": {
        "tags": [
          "Billing"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Billing"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FarmBillingInfo"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FarmBillingInfo"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FarmBillingInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/billing/method": {
      "patch": {
        "tags": [
          "Billing"
        ],
        "parameters": [
          {
            "name": "method",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/billing/status": {
      "get": {
        "tags": [
          "Billing"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Building/types": {
      "get": {
        "tags": [
          "Building"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Building": {
      "get": {
        "tags": [
          "Building"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BuildingDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BuildingDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BuildingDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Building"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BuildingDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BuildingDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BuildingDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BuildingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildingDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Building/{id}": {
      "get": {
        "tags": [
          "Building"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BuildingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildingDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Building"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BuildingDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BuildingDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BuildingDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Building"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/building-import/preview": {
      "post": {
        "tags": [
          "BuildingImport"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "hasHeaders": {
                    "type": "boolean",
                    "default": true
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                },
                "hasHeaders": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BuildingImportPreviewResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildingImportPreviewResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildingImportPreviewResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/building-import/confirm": {
      "post": {
        "tags": [
          "BuildingImport"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BuildingImportConfirmRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BuildingImportConfirmRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BuildingImportConfirmRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BuildingImportConfirmResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildingImportConfirmResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuildingImportConfirmResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/contact": {
      "post": {
        "tags": [
          "Contact"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/email/confirm-email": {
      "get": {
        "tags": [
          "Email"
        ],
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Farm": {
      "get": {
        "tags": [
          "Farm"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FarmDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FarmDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FarmDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Farm"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFarmRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFarmRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFarmRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FarmDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FarmDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FarmDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Farm/self": {
      "get": {
        "tags": [
          "Farm"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Farm/{id}": {
      "delete": {
        "tags": [
          "Farm"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Farm"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFarmDescriptionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFarmDescriptionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFarmDescriptionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/FarmEvent": {
      "get": {
        "tags": [
          "FarmEvent"
        ],
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "date",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "month",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FarmEventDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FarmEventDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FarmEventDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "FarmEvent"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FarmEventDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FarmEventDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FarmEventDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FarmEventDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FarmEventDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FarmEventDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/FarmEvent/{id}": {
      "get": {
        "tags": [
          "FarmEvent"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FarmEventDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FarmEventDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FarmEventDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "FarmEvent"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FarmEventDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FarmEventDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FarmEventDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "FarmEvent"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/FarmEvent/{id}/complete": {
      "post": {
        "tags": [
          "FarmEvent"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteEventDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteEventDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteEventDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Field": {
      "get": {
        "tags": [
          "Field"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FieldDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FieldDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FieldDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Field"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FieldDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FieldDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FieldDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FieldDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FieldDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FieldDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Field/{id}": {
      "get": {
        "tags": [
          "Field"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FieldDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FieldDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FieldDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Field"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FieldDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FieldDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FieldDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Field"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/field-import/preview": {
      "post": {
        "tags": [
          "FieldImport"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "hasHeaders": {
                    "type": "boolean",
                    "default": true
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                },
                "hasHeaders": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FieldImportPreviewResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FieldImportPreviewResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FieldImportPreviewResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/field-import/confirm": {
      "post": {
        "tags": [
          "FieldImport"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FieldImportConfirmRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FieldImportConfirmRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FieldImportConfirmRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FieldImportConfirmResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FieldImportConfirmResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FieldImportConfirmResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Livestock": {
      "get": {
        "tags": [
          "Livestock"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LivestockDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LivestockDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LivestockDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Livestock"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LivestockDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LivestockDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LivestockDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LivestockDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LivestockDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LivestockDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Livestock/{id}": {
      "get": {
        "tags": [
          "Livestock"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LivestockDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LivestockDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LivestockDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Livestock"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LivestockDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LivestockDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LivestockDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Livestock"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/livestock-import/preview": {
      "post": {
        "tags": [
          "LivestockImport"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "hasHeaders": {
                    "type": "boolean",
                    "default": true
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                },
                "hasHeaders": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LivestockImportPreviewResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LivestockImportPreviewResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LivestockImportPreviewResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/livestock-import/confirm": {
      "post": {
        "tags": [
          "LivestockImport"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LivestockImportConfirmRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LivestockImportConfirmRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LivestockImportConfirmRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LivestockImportConfirmResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LivestockImportConfirmResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LivestockImportConfirmResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Notification/user": {
      "get": {
        "tags": [
          "Notification"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotificationDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotificationDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotificationDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Notification/unread": {
      "get": {
        "tags": [
          "Notification"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotificationDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotificationDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotificationDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Notification/{id}/read": {
      "put": {
        "tags": [
          "Notification"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Notification": {
      "post": {
        "tags": [
          "Notification"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateNotificationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateNotificationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateNotificationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Notification/{id}": {
      "delete": {
        "tags": [
          "Notification"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Notification/warning/task/{taskId}": {
      "post": {
        "tags": [
          "Notification"
        ],
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WarningRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WarningRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WarningRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/PasswordReset/request": {
      "post": {
        "tags": [
          "PasswordReset"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordResetRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordResetRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordResetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/PasswordReset/reset": {
      "post": {
        "tags": [
          "PasswordReset"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/PasswordReset/admin-reset": {
      "post": {
        "tags": [
          "PasswordReset"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminResetPasswordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminResetPasswordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminResetPasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/RecurringTask": {
      "post": {
        "tags": [
          "RecurringTask"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRecurringTaskFromExistingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRecurringTaskFromExistingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRecurringTaskFromExistingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/RecurringTask/{groupId}": {
      "put": {
        "tags": [
          "RecurringTask"
        ],
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskItemDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskItemDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TaskItemDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "RecurringTask"
        ],
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/RecurringTask/{groupId}/add-subtask": {
      "post": {
        "tags": [
          "RecurringTask"
        ],
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSubTaskRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSubTaskRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSubTaskRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/report/daily": {
      "get": {
        "tags": [
          "Report"
        ],
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Resource": {
      "get": {
        "tags": [
          "Resource"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ResourceDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ResourceDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ResourceDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Resource"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Resource/{id}": {
      "get": {
        "tags": [
          "Resource"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Resource"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Resource"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Resource/{id}/adjust": {
      "post": {
        "tags": [
          "Resource"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdjustQuantityRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdjustQuantityRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdjustQuantityRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/resource-import/preview": {
      "post": {
        "tags": [
          "ResourceImport"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "hasHeaders": {
                    "type": "boolean",
                    "default": true
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                },
                "hasHeaders": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceImportPreviewResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceImportPreviewResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceImportPreviewResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/resource-import/confirm": {
      "post": {
        "tags": [
          "ResourceImport"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceImportConfirmRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceImportConfirmRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceImportConfirmRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceImportConfirmResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceImportConfirmResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceImportConfirmResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/logs/resources": {
      "get": {
        "tags": [
          "ResourceLog"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ResourceLogDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ResourceLogDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ResourceLogDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/logs/resources/{id}": {
      "get": {
        "tags": [
          "ResourceLog"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ResourceLogDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ResourceLogDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ResourceLogDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/logs/resources/add": {
      "post": {
        "tags": [
          "ResourceLog"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceLogDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceLogDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceLogDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/settings/farm": {
      "get": {
        "tags": [
          "Settings"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "patch": {
        "tags": [
          "Settings"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FarmSettingsPatchDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FarmSettingsPatchDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FarmSettingsPatchDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/subscription/me": {
      "get": {
        "tags": [
          "Subscription"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/subscription/plan": {
      "put": {
        "tags": [
          "Subscription"
        ],
        "parameters": [
          {
            "name": "newPlan",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SubscriptionPlan"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/subscription/cancel": {
      "delete": {
        "tags": [
          "Subscription"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/support/tickets": {
      "post": {
        "tags": [
          "Support"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSupportTicketRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSupportTicketRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSupportTicketRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Support"
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SupportStatus"
            }
          },
          {
            "name": "priority",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SupportPriority"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SupportCategory"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/support/tickets/my": {
      "get": {
        "tags": [
          "Support"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/support/tickets/{ticketKey}": {
      "get": {
        "tags": [
          "Support"
        ],
        "parameters": [
          {
            "name": "ticketKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/support/tickets/{ticketKey}/status": {
      "patch": {
        "tags": [
          "Support"
        ],
        "parameters": [
          {
            "name": "ticketKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSupportTicketStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSupportTicketStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSupportTicketStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/support/tickets/{ticketKey}/priority": {
      "patch": {
        "tags": [
          "Support"
        ],
        "parameters": [
          {
            "name": "ticketKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSupportTicketPriorityRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSupportTicketPriorityRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSupportTicketPriorityRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/support/tickets/{ticketKey}/close": {
      "patch": {
        "tags": [
          "Support"
        ],
        "parameters": [
          {
            "name": "ticketKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/system-admin/beta-codes": {
      "post": {
        "tags": [
          "SystemAdmin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBetaAccessCodeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBetaAccessCodeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBetaAccessCodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "SystemAdmin"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/system-admin/beta-codes/{id}/deactivate": {
      "put": {
        "tags": [
          "SystemAdmin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/system-admin/notifications/global": {
      "post": {
        "tags": [
          "SystemAdmin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateGlobalNotificationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateGlobalNotificationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateGlobalNotificationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/SystemNotification/to-admins": {
      "post": {
        "tags": [
          "SystemNotification"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/SystemNotification/to-all": {
      "post": {
        "tags": [
          "SystemNotification"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/SystemNotification": {
      "get": {
        "tags": [
          "SystemNotification"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotificationDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotificationDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NotificationDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/TaskHistory/by-task/{taskId}": {
      "get": {
        "tags": [
          "TaskHistory"
        ],
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskHistoryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskHistoryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskHistoryDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/TaskHistory/{id}": {
      "get": {
        "tags": [
          "TaskHistory"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskHistoryDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskHistoryDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskHistoryDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "TaskHistory"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskHistoryDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskHistoryDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TaskHistoryDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "TaskHistory"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/TaskHistory": {
      "post": {
        "tags": [
          "TaskHistory"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskHistoryDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskHistoryDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TaskHistoryDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskHistoryDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskHistoryDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskHistoryDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/TaskItem": {
      "get": {
        "tags": [
          "TaskItem"
        ],
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "date",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "month",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskItemDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskItemDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskItemDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "TaskItem"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskItemDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskItemDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TaskItemDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskItemDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskItemDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskItemDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/TaskItem/{id}": {
      "get": {
        "tags": [
          "TaskItem"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskItemDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskItemDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskItemDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "TaskItem"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskItemDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskItemDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TaskItemDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "TaskItem"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/TaskItem/{taskId}/change-status": {
      "put": {
        "tags": [
          "TaskItem"
        ],
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeTaskStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeTaskStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeTaskStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/TaskItem/assigned": {
      "get": {
        "tags": [
          "TaskItem"
        ],
        "parameters": [
          {
            "name": "entityType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "entityId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "date",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskItemDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskItemDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskItemDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/TaskItem/overdue": {
      "get": {
        "tags": [
          "TaskItem"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        }
      }
    },
    "/api/TaskItem/assigned-to/{userId}": {
      "get": {
        "tags": [
          "TaskItem"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskItemDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskItemDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskItemDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/logs/tasks": {
      "get": {
        "tags": [
          "TaskLog"
        ],
        "parameters": [
          {
            "name": "farmId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskHistoryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskHistoryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskHistoryDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/logs/tasks/{taskId}": {
      "get": {
        "tags": [
          "TaskLog"
        ],
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskHistoryDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskHistoryDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskHistoryDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/logs/tasks/user/{userId}": {
      "get": {
        "tags": [
          "TaskLog"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskHistoryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskHistoryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskHistoryDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/logs/tasks/action": {
      "post": {
        "tags": [
          "TaskLog"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskActionLogDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskActionLogDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TaskActionLogDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Tool": {
      "get": {
        "tags": [
          "Tool"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ToolDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ToolDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ToolDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Tool"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToolDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ToolDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ToolDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ToolDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Tool/{id}": {
      "get": {
        "tags": [
          "Tool"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ToolDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Tool"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToolDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ToolDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ToolDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Tool"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/tool-import/preview": {
      "post": {
        "tags": [
          "ToolImport"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "hasHeaders": {
                    "type": "boolean",
                    "default": true
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                },
                "hasHeaders": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ToolImportPreviewResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolImportPreviewResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolImportPreviewResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/tool-import/confirm": {
      "post": {
        "tags": [
          "ToolImport"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToolImportConfirmRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ToolImportConfirmRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ToolImportConfirmRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ToolImportConfirmResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolImportConfirmResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolImportConfirmResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/all": {
      "get": {
        "tags": [
          "User"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/User/{id}": {
      "get": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UserDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UserDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/User/availability": {
      "get": {
        "tags": [
          "User"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserAvailabilityInfoDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserAvailabilityInfoDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserAvailabilityInfoDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/User/availability/{userId}": {
      "get": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DailyAvailabilityInfoDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DailyAvailabilityInfoDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DailyAvailabilityInfoDto"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DailyAvailabilityInfoDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DailyAvailabilityInfoDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DailyAvailabilityInfoDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/User/absence/{userId}": {
      "post": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlannedAbsenceDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PlannedAbsenceDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PlannedAbsenceDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/User/absence/{id}": {
      "put": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlannedAbsenceDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PlannedAbsenceDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PlannedAbsenceDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/User/absences": {
      "get": {
        "tags": [
          "User"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": { }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": { }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": { }
                }
              }
            }
          }
        }
      }
    },
    "/api/User/absences/{userId}": {
      "get": {
        "tags": [
          "User"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": { }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": { }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": { }
                }
              }
            }
          }
        }
      }
    },
    "/api/user-activity/me": {
      "get": {
        "tags": [
          "UserActivity"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "UserActivity"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserActivityStatusDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UserActivityStatusDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UserActivityStatusDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/user-activity/{id}": {
      "get": {
        "tags": [
          "UserActivity"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/preferences": {
      "get": {
        "tags": [
          "UserPreferences"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "UserPreferences"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserPreferencesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UserPreferencesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UserPreferencesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Weather/all": {
      "get": {
        "tags": [
          "Weather"
        ],
        "parameters": [
          {
            "name": "city",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AdjustQuantityRequest": {
        "type": "object",
        "properties": {
          "changeAmount": {
            "type": "number",
            "format": "double"
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminResetPasswordRequest": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "format": "int32"
          },
          "temporaryPassword": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AppLanguage": {
        "enum": [
          "Polish",
          "English"
        ],
        "type": "string"
      },
      "AssignmentDto": {
        "type": "object",
        "properties": {
          "entityId": {
            "type": "integer",
            "format": "int32"
          },
          "entityType": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BaseUser": {
        "required": [
          "email"
        ],
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 8,
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "email": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string",
            "format": "email"
          },
          "mustChangePassword": {
            "type": "boolean"
          },
          "farmId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "farm": {
            "$ref": "#/components/schemas/Farm"
          },
          "status": {
            "$ref": "#/components/schemas/UserStatus"
          },
          "emailConfirmationToken": {
            "type": "string",
            "nullable": true
          },
          "taskItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskItem"
            },
            "nullable": true
          },
          "name": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "username": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "passwordHash": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "twoFactorEnabled": {
            "type": "boolean"
          },
          "userType": {
            "maxLength": 16,
            "type": "string",
            "nullable": true
          },
          "preferences": {
            "$ref": "#/components/schemas/UserPreferences"
          }
        },
        "additionalProperties": false
      },
      "BillingMethod": {
        "enum": [
          "Trial",
          "Card",
          "Invoice",
          "Contract"
        ],
        "type": "string"
      },
      "Building": {
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 8,
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "maxLength": 127,
            "type": "string",
            "nullable": true
          },
          "type": {
            "maxLength": 63,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "farmId": {
            "type": "integer",
            "format": "int32"
          },
          "farm": {
            "$ref": "#/components/schemas/Farm"
          },
          "livestocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Livestock"
            },
            "nullable": true
          },
          "tools": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tool"
            },
            "nullable": true
          },
          "schedules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Schedule"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BuildingDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "livestockNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "toolNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BuildingImportConfirmRequest": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BuildingImportRowDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BuildingImportConfirmResponse": {
        "type": "object",
        "properties": {
          "createdCount": {
            "type": "integer",
            "format": "int32"
          },
          "failedRows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BuildingImportRowDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BuildingImportPreviewResponse": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BuildingImportRowDto"
            },
            "nullable": true
          },
          "totalRows": {
            "type": "integer",
            "format": "int32"
          },
          "validRows": {
            "type": "integer",
            "format": "int32"
          },
          "invalidRows": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "BuildingImportRowDto": {
        "type": "object",
        "properties": {
          "rowNumber": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isValid": {
            "type": "boolean"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChangePasswordRequest": {
        "required": [
          "newPassword",
          "oldPassword"
        ],
        "type": "object",
        "properties": {
          "oldPassword": {
            "minLength": 1,
            "type": "string"
          },
          "newPassword": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ChangeTaskStatusRequest": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/TaskStatus"
          }
        },
        "additionalProperties": false
      },
      "CompleteEventDto": {
        "type": "object",
        "properties": {
          "actualQuantity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/EventStatus"
          }
        },
        "additionalProperties": false
      },
      "ContactRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateBetaAccessCodeRequest": {
        "type": "object",
        "properties": {
          "maxUses": {
            "type": "integer",
            "format": "int32"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateFarmRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateGlobalNotificationRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateNotificationRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "userIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "targetRole": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/NotificationType"
          }
        },
        "additionalProperties": false
      },
      "CreateRecurringTaskFromExistingRequest": {
        "type": "object",
        "properties": {
          "baseTaskId": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfOccurrences": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "repeatEvery": {
            "type": "integer",
            "format": "int32"
          },
          "repeatUnit": {
            "$ref": "#/components/schemas/RepeatUnit"
          }
        },
        "additionalProperties": false
      },
      "CreateSubTaskRequestDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "assignedUserIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "seriesStartDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "seriesEndDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "repeatCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateSupportTicketRequest": {
        "required": [
          "category",
          "description",
          "subject"
        ],
        "type": "object",
        "properties": {
          "category": {
            "$ref": "#/components/schemas/SupportCategory"
          },
          "priority": {
            "$ref": "#/components/schemas/SupportPriority"
          },
          "subject": {
            "maxLength": 120,
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "maxLength": 8000,
            "minLength": 1,
            "type": "string"
          },
          "contactEmail": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "contactName": {
            "maxLength": 120,
            "type": "string",
            "nullable": true
          },
          "contactPhone": {
            "maxLength": 120,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateUserRequest": {
        "required": [
          "email",
          "name",
          "username",
          "userType"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "username": {
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "minLength": 1,
            "type": "string",
            "format": "email"
          },
          "userType": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "DailyAvailabilityInfoDto": {
        "type": "object",
        "properties": {
          "dayOfWeek": {
            "type": "integer",
            "format": "int32"
          },
          "startHour": {
            "type": "string",
            "format": "date-span"
          },
          "endHour": {
            "type": "string",
            "format": "date-span"
          },
          "isFlexible": {
            "type": "boolean"
          },
          "workingHoursNote": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EventStatus": {
        "enum": [
          "Planned",
          "Completed",
          "Cancelled"
        ],
        "type": "string"
      },
      "EventType": {
        "enum": [
          "General",
          "Delivery",
          "Veterinary",
          "Maintenance",
          "Inspection",
          "Visitor",
          "Other"
        ],
        "type": "string"
      },
      "Farm": {
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 8,
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "maxLength": 63,
            "type": "string",
            "nullable": true
          },
          "ownerId": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Field"
            },
            "nullable": true
          },
          "livestocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Livestock"
            },
            "nullable": true
          },
          "buildings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Building"
            },
            "nullable": true
          },
          "settings": {
            "$ref": "#/components/schemas/FarmSettings"
          },
          "isActive": {
            "type": "boolean"
          },
          "billingInfo": {
            "$ref": "#/components/schemas/FarmBillingInfo"
          }
        },
        "additionalProperties": false
      },
      "FarmBillingInfo": {
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 8,
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "farmId": {
            "type": "integer",
            "format": "int32"
          },
          "farm": {
            "$ref": "#/components/schemas/Farm"
          },
          "billingMethod": {
            "$ref": "#/components/schemas/BillingMethod"
          },
          "accessValidUntil": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "maskedCardNumber": {
            "maxLength": 8,
            "type": "string",
            "nullable": true
          },
          "cardProvider": {
            "maxLength": 32,
            "type": "string",
            "nullable": true
          },
          "paymentProvider": {
            "maxLength": 32,
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "maxLength": 128,
            "type": "string",
            "nullable": true
          },
          "taxId": {
            "maxLength": 32,
            "type": "string",
            "nullable": true
          },
          "addressLine": {
            "maxLength": 128,
            "type": "string",
            "nullable": true
          },
          "city": {
            "maxLength": 64,
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "maxLength": 16,
            "type": "string",
            "nullable": true
          },
          "country": {
            "maxLength": 64,
            "type": "string",
            "nullable": true
          },
          "billingEmail": {
            "maxLength": 128,
            "type": "string",
            "format": "email",
            "nullable": true
          },
          "contractReference": {
            "maxLength": 64,
            "type": "string",
            "nullable": true
          },
          "contractValidUntil": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "paymentStatus": {
            "$ref": "#/components/schemas/PaymentStatus"
          },
          "lastUpdated": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "FarmDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "ownerId": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FarmEventDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "farmId": {
            "type": "integer",
            "format": "int32"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "eventType": {
            "$ref": "#/components/schemas/EventType"
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "format": "date-time"
          },
          "actualTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "plannedQuantity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "actualQuantity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "completionNotes": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/EventStatus"
          },
          "resourceId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FarmSettings": {
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 8,
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "farmId": {
            "type": "integer",
            "format": "int32"
          },
          "farm": {
            "$ref": "#/components/schemas/Farm"
          },
          "language": {
            "$ref": "#/components/schemas/AppLanguage"
          },
          "weatherLocation": {
            "maxLength": 128,
            "type": "string",
            "nullable": true
          },
          "lastUpdated": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "FarmSettingsPatchDto": {
        "type": "object",
        "properties": {
          "language": {
            "$ref": "#/components/schemas/AppLanguage"
          },
          "weatherLocation": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Field": {
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 8,
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "maxLength": 63,
            "type": "string",
            "nullable": true
          },
          "area": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "areaUnit": {
            "maxLength": 15,
            "type": "string",
            "nullable": true
          },
          "cropType": {
            "maxLength": 63,
            "type": "string",
            "nullable": true
          },
          "lastHarvestDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextPlantingDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "description": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "farmId": {
            "type": "integer",
            "format": "int32"
          },
          "farm": {
            "$ref": "#/components/schemas/Farm"
          }
        },
        "additionalProperties": false
      },
      "FieldDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "area": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "areaUnit": {
            "type": "string",
            "nullable": true
          },
          "cropType": {
            "type": "string",
            "nullable": true
          },
          "lastHarvestDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextPlantingDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FieldImportConfirmRequest": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldImportRowDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FieldImportConfirmResponse": {
        "type": "object",
        "properties": {
          "createdCount": {
            "type": "integer",
            "format": "int32"
          },
          "failedRows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldImportRowDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FieldImportPreviewResponse": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldImportRowDto"
            },
            "nullable": true
          },
          "totalRows": {
            "type": "integer",
            "format": "int32"
          },
          "validRows": {
            "type": "integer",
            "format": "int32"
          },
          "invalidRows": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "FieldImportRowDto": {
        "type": "object",
        "properties": {
          "rowNumber": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "area": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "areaUnit": {
            "type": "string",
            "nullable": true
          },
          "cropType": {
            "type": "string",
            "nullable": true
          },
          "lastHarvestDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextPlantingDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isValid": {
            "type": "boolean"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Livestock": {
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 8,
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "name": {
            "maxLength": 63,
            "type": "string",
            "nullable": true
          },
          "gender": {
            "maxLength": 15,
            "type": "string",
            "nullable": true
          },
          "species": {
            "maxLength": 63,
            "type": "string",
            "nullable": true
          },
          "breed": {
            "maxLength": 63,
            "type": "string",
            "nullable": true
          },
          "tagId": {
            "maxLength": 63,
            "type": "string",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "farmId": {
            "type": "integer",
            "format": "int32"
          },
          "farm": {
            "$ref": "#/components/schemas/Farm"
          },
          "buildingId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "building": {
            "$ref": "#/components/schemas/Building"
          },
          "schedules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Schedule"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LivestockDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "gender": {
            "type": "string",
            "nullable": true
          },
          "species": {
            "type": "string",
            "nullable": true
          },
          "breed": {
            "type": "string",
            "nullable": true
          },
          "tagId": {
            "type": "string",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "buildingId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LivestockImportConfirmRequest": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LivestockImportRowDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LivestockImportConfirmResponse": {
        "type": "object",
        "properties": {
          "createdCount": {
            "type": "integer",
            "format": "int32"
          },
          "failedRows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LivestockImportRowDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LivestockImportPreviewResponse": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LivestockImportRowDto"
            },
            "nullable": true
          },
          "totalRows": {
            "type": "integer",
            "format": "int32"
          },
          "validRows": {
            "type": "integer",
            "format": "int32"
          },
          "invalidRows": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "LivestockImportRowDto": {
        "type": "object",
        "properties": {
          "rowNumber": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "gender": {
            "type": "string",
            "nullable": true
          },
          "species": {
            "type": "string",
            "nullable": true
          },
          "breed": {
            "type": "string",
            "nullable": true
          },
          "tagId": {
            "type": "string",
            "nullable": true
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "buildingInput": {
            "type": "string",
            "nullable": true
          },
          "buildingId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isValid": {
            "type": "boolean"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Login2FaRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LoginRequest": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "rememberMe": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "NotificationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "isRead": {
            "type": "boolean"
          },
          "readAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/NotificationType"
          }
        },
        "additionalProperties": false
      },
      "NotificationType": {
        "enum": [
          "Info",
          "Reminder",
          "Warning",
          "Urgent",
          "TaskStatus",
          "System",
          "Error"
        ],
        "type": "string"
      },
      "PasswordResetRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PaymentStatus": {
        "enum": [
          "Active",
          "Pending",
          "Failed",
          "Suspended",
          "Expired"
        ],
        "type": "string"
      },
      "PlannedAbsenceDto": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PresenceStatus": {
        "enum": [
          "OffDuty",
          "Working",
          "OnBreak",
          "OnLeave",
          "BusyWithTask"
        ],
        "type": "string"
      },
      "RegisterRequest": {
        "required": [
          "email",
          "name",
          "password",
          "username"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "username": {
            "minLength": 1,
            "type": "string"
          },
          "password": {
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string",
            "format": "email"
          },
          "betaCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RepeatUnit": {
        "enum": [
          "Day",
          "Month",
          "Year"
        ],
        "type": "string"
      },
      "ResetPasswordRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "newPassword": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResourceDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "quantity": {
            "type": "number",
            "format": "double"
          },
          "unit": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "threshold": {
            "type": "number",
            "format": "double"
          },
          "lastInventoryDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "supplierName": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "farmId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ResourceImportConfirmRequest": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceImportRowDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResourceImportConfirmResponse": {
        "type": "object",
        "properties": {
          "createdCount": {
            "type": "integer",
            "format": "int32"
          },
          "failedRows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceImportRowDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResourceImportPreviewResponse": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceImportRowDto"
            },
            "nullable": true
          },
          "totalRows": {
            "type": "integer",
            "format": "int32"
          },
          "validRows": {
            "type": "integer",
            "format": "int32"
          },
          "invalidRows": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ResourceImportRowDto": {
        "type": "object",
        "properties": {
          "rowNumber": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "quantity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "unit": {
            "type": "string",
            "nullable": true
          },
          "threshold": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lastInventoryDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "supplierName": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "isValid": {
            "type": "boolean"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResourceLogDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "resourceId": {
            "type": "integer",
            "format": "int32"
          },
          "resourceName": {
            "type": "string",
            "nullable": true
          },
          "quantityChange": {
            "type": "number",
            "format": "double"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "taskId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "eventId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "type": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Schedule": {
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 8,
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "taskItemId": {
            "type": "integer",
            "format": "int32"
          },
          "taskItem": {
            "$ref": "#/components/schemas/TaskItem"
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ScheduleDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "SubscriptionPlan": {
        "enum": [
          "None",
          "Basic",
          "Pro",
          "Business"
        ],
        "type": "string"
      },
      "SupportCategory": {
        "enum": [
          "Bug",
          "FeatureRequest",
          "Billing",
          "Account",
          "Technical",
          "Performance",
          "UX",
          "DataIssue",
          "Integration",
          "Security",
          "Other"
        ],
        "type": "string"
      },
      "SupportPriority": {
        "enum": [
          "Low",
          "Normal",
          "High",
          "Urgent"
        ],
        "type": "string"
      },
      "SupportStatus": {
        "enum": [
          "Open",
          "InProgress",
          "WaitingForUser",
          "Resolved",
          "Closed"
        ],
        "type": "string"
      },
      "TaskActionLog": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "taskHistoryId": {
            "type": "integer",
            "format": "int32"
          },
          "taskHistory": {
            "$ref": "#/components/schemas/TaskHistory"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "actionType": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "user": {
            "$ref": "#/components/schemas/BaseUser"
          },
          "plannedEndTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "delay": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TaskActionLogDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "actionType": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "plannedEndTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "delay": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TaskAssignment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "taskItemId": {
            "type": "integer",
            "format": "int32"
          },
          "taskItem": {
            "$ref": "#/components/schemas/TaskItem"
          },
          "entityId": {
            "type": "integer",
            "format": "int32"
          },
          "entityType": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TaskHistory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "taskId": {
            "type": "integer",
            "format": "int32"
          },
          "task": {
            "$ref": "#/components/schemas/TaskItem"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startedById": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "startedBy": {
            "$ref": "#/components/schemas/BaseUser"
          },
          "completedById": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "completedBy": {
            "$ref": "#/components/schemas/BaseUser"
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "string",
            "format": "date-span",
            "nullable": true,
            "readOnly": true
          },
          "delay": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          },
          "wasDelayed": {
            "type": "boolean",
            "readOnly": true
          },
          "logs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskActionLog"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TaskHistoryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "taskId": {
            "type": "integer",
            "format": "int32"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startedBy": {
            "type": "string",
            "nullable": true
          },
          "completedBy": {
            "type": "string",
            "nullable": true
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "delay": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          },
          "logs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskActionLogDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TaskItem": {
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 8,
            "type": "integer",
            "format": "int32"
          },
          "farmId": {
            "type": "integer",
            "format": "int32"
          },
          "farm": {
            "$ref": "#/components/schemas/Farm"
          },
          "name": {
            "maxLength": 63,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/TaskStatus"
          },
          "workPlanId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "users": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BaseUser"
            },
            "nullable": true
          },
          "schedules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Schedule"
            },
            "nullable": true
          },
          "parentTaskId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "parentTask": {
            "$ref": "#/components/schemas/TaskItem"
          },
          "subTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskItem"
            },
            "nullable": true
          },
          "assignments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskAssignment"
            },
            "nullable": true
          },
          "histories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskHistory"
            },
            "nullable": true
          },
          "recurringGroupId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "hasAbsenceConflict": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TaskItemDto": {
        "type": "object",
        "properties": {
          "farmId": {
            "type": "integer",
            "format": "int32"
          },
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/TaskStatus"
          },
          "users": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserDto"
            },
            "nullable": true
          },
          "assignedUserIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "schedules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScheduleDto"
            },
            "nullable": true
          },
          "parentTaskId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "subTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskItemDto"
            },
            "nullable": true
          },
          "assignments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssignmentDto"
            },
            "nullable": true
          },
          "recurringGroupId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "hasAbsenceConflict": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TaskStatus": {
        "enum": [
          "Pending",
          "InProgress",
          "Completed",
          "Cancelled",
          "Warning"
        ],
        "type": "string"
      },
      "ThemeMode": {
        "enum": [
          "Light",
          "Dark",
          "System"
        ],
        "type": "string"
      },
      "Toggle2FaRequest": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Tool": {
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 8,
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "maxLength": 63,
            "type": "string",
            "nullable": true
          },
          "type": {
            "maxLength": 63,
            "type": "string",
            "nullable": true
          },
          "category": {
            "maxLength": 31,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "buildingId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "building": {
            "$ref": "#/components/schemas/Building"
          },
          "farmId": {
            "type": "integer",
            "format": "int32"
          },
          "farm": {
            "$ref": "#/components/schemas/Farm"
          },
          "schedules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Schedule"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ToolDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "buildingId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "buildingName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ToolImportConfirmRequest": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToolImportRowDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ToolImportConfirmResponse": {
        "type": "object",
        "properties": {
          "createdCount": {
            "type": "integer",
            "format": "int32"
          },
          "failedRows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToolImportRowDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ToolImportPreviewResponse": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToolImportRowDto"
            },
            "nullable": true
          },
          "totalRows": {
            "type": "integer",
            "format": "int32"
          },
          "validRows": {
            "type": "integer",
            "format": "int32"
          },
          "invalidRows": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ToolImportRowDto": {
        "type": "object",
        "properties": {
          "rowNumber": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "buildingInput": {
            "type": "string",
            "nullable": true
          },
          "buildingId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isValid": {
            "type": "boolean"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateFarmDescriptionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateSupportTicketPriorityRequest": {
        "type": "object",
        "properties": {
          "priority": {
            "$ref": "#/components/schemas/SupportPriority"
          }
        },
        "additionalProperties": false
      },
      "UpdateSupportTicketStatusRequest": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/SupportStatus"
          }
        },
        "additionalProperties": false
      },
      "UpdateUserRequest": {
        "required": [
          "email",
          "name",
          "username"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "username": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string",
            "format": "email"
          }
        },
        "additionalProperties": false
      },
      "UserActivityStatusDto": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/PresenceStatus"
          },
          "taskItemId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserAvailabilityInfoDto": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "dailyAvailabilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DailyAvailabilityInfoDto"
            },
            "nullable": true
          },
          "nextAbsence": {
            "$ref": "#/components/schemas/PlannedAbsenceDto"
          }
        },
        "additionalProperties": false
      },
      "UserDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "userType": {
            "type": "string",
            "nullable": true
          },
          "mustChangePassword": {
            "type": "boolean",
            "nullable": true
          },
          "farmName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserPreferences": {
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 8,
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "format": "int32"
          },
          "user": {
            "$ref": "#/components/schemas/BaseUser"
          },
          "theme": {
            "$ref": "#/components/schemas/ThemeMode"
          },
          "animatedBackgroundEnabled": {
            "type": "boolean"
          },
          "language": {
            "$ref": "#/components/schemas/AppLanguage"
          },
          "notificationSoundEnabled": {
            "type": "boolean"
          },
          "emailNotificationsEnabled": {
            "type": "boolean"
          },
          "lastUpdated": {
            "type": "string",
            "format": "date-time"
          },
          "dailyReportTime": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          },
          "autoDailyReportEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UserPreferencesDto": {
        "type": "object",
        "properties": {
          "theme": {
            "$ref": "#/components/schemas/ThemeMode"
          },
          "animatedBackgroundEnabled": {
            "type": "boolean"
          },
          "language": {
            "$ref": "#/components/schemas/AppLanguage"
          },
          "notificationSoundEnabled": {
            "type": "boolean"
          },
          "emailNotificationsEnabled": {
            "type": "boolean"
          },
          "autoDailyReportEnabled": {
            "type": "boolean"
          },
          "dailyReportTime": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserStatus": {
        "enum": [
          "PendingEmailConfirmation",
          "Active",
          "Suspended",
          "Deactivated"
        ],
        "type": "string"
      },
      "WarningRequest": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          },
          "shouldChangeStatus": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "Wpisz: Bearer {twój_token}",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": [ ]
    }
  ]
}